/*
Theme Name: Avitona
Theme URI: https://avitona.cz
Author: Avitona s.r.o.
Author URI: https://avitona.cz
Description: Profesionální dark theme pro AVITONA – AV Technika & Elektroinstalace. Verze 1.0.0.
Version: 1.5.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://avitona.cz
Text Domain: avitona
Tags: dark, business, one-page, responsive
*/

/* ─────────────────────────────────────────
   AVITONA THEME v1.0.0
   ───────────────────────────────────────── */

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

:root {
  --bg: #0a0a0b;
  --bg2: #111114;
  --bg3: #18181d;
  --accent: #e8b84b;
  --accent2: #c9973a;
  --text: #e8e8e4;
  --muted: #888880;
  --border: #2a2a30;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CENTROVANÝ WRAPPER 1200px ── */
.site-wrap {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  /* Jemný okraj aby bylo vidět že je stránka centrovaná */
  box-shadow: 0 0 0 1px var(--border);
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── NAV ── */
nav,
.site-header nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 110px;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  nav, .site-header nav { height: 72px; }
}

.site-logo,
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  height: 98px;
  width: auto;
  display: block;
}

/* ── DVOUVRSTVÉ LOGO ── */
.site-logo__layers {
  position: relative;
  display: block;
  height: 98px;
  width: 260px; /* 720/272 * 70 = 185px */
}
.site-logo__layers img {
  position: absolute !important;
  top: 0; left: 0;
  height: 98px !important;
  width: auto !important;
  display: block;
}
/* Zlatá vrstva – reaguje na color picker */
.site-logo__gold {
  filter: var(--logo-filter, none);
  transition: filter .3s;
}

@media (max-width: 900px) {
  .site-logo img { height: 53px; }
  .site-logo__layers { height: 53px; width: 140px; }
  .site-logo__layers img { height: 53px !important; }
}
/* fallback text logo (pokud není obrázek) */
.site-logo span,
.logo span { color: var(--accent); }

/* WP nav menu */
.primary-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.primary-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .2s;
}
.primary-menu a:hover { color: var(--accent); }

/* CTA nav item – přidejte CSS class "nav-cta" v menu WP */
.nav-cta > a,
.menu-item-cta > a {
  background: var(--accent) !important;
  color: #0a0a0b !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 2px;
  font-weight: 700 !important;
  transition: background .2s !important;
}
.nav-cta > a:hover,
.menu-item-cta > a:hover {
  background: var(--accent2) !important;
  color: #0a0a0b !important;
}

/* ── HERO ── */
#hero,
.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,184,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,184,75,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(232,184,75,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  max-width: 900px;
  position: relative;
}

.hero-title .line2 {
  color: var(--accent);
  display: block;
}

.hero-sub {
  margin-top: 2.5rem;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); color: #0a0a0b; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ── SECTION GENERIC ── */
section { padding: 100px 5%; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.section-tag::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  max-width: 700px;
}

/* ── O NÁS ── */
#o-nas {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-top: 4rem;
}

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-visual { position: relative; }

.about-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,184,75,0.06) 0%, transparent 60%);
}

.img-placeholder {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--border);
  letter-spacing: 0.1em;
  user-select: none;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--accent);
  color: #0a0a0b;
  padding: 1.2rem 1.6rem;
  border-radius: 2px;
  z-index: 2;
}
.about-badge .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}
.about-badge .lbl {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── SLUŽBY ── */
#sluzby { background: var(--bg); }

.services-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.services-intro p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg2);
  padding: 2.8rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background .3s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height .4s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { background: var(--bg3); }

.service-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  color: var(--accent);
  transition: border-color .3s, background .3s, color .3s;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}
.service-card:hover .service-icon {
  border-color: var(--accent);
  background: rgba(232,184,75,0.08);
  color: var(--accent);
}

.service-num {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--border);
  line-height: 1;
  transition: color .3s;
}
.service-card:hover .service-num { color: rgba(232,184,75,0.12); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}
.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── REFERENCE ── */
#reference {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ref-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.ref-card {
  background: var(--bg3);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}
.ref-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  z-index: 1;
  opacity: 0.7;
  transition: opacity .3s;
}
.ref-card:hover::before { opacity: 1; }

.ref-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.ref-card:hover img { transform: scale(1.07); }

.ref-card-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  transform: translateY(6px);
  transition: transform .35s ease;
}
.ref-card:hover .ref-card-inner { transform: translateY(0); }
.ref-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
  display: block;
}
.ref-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.ref-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border);
  opacity: 0.5;
  transition: transform .5s ease, opacity .3s;
}
.ref-card:hover .ref-bg {
  transform: scale(1.05);
  opacity: 0.3;
}

/* ── PROCESS / SERVIS ── */
#servis { background: var(--bg); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.process-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background .3s;
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--bg2); }

.process-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── PARTNEŘI ── */
#partneri {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding-top: 60px;
  padding-bottom: 60px;
}
.partners-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.partners-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.partner-logo {
  padding: 1.6rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--border);
  transition: color .2s;
  white-space: nowrap;
}
.partner-logo:last-child { border-right: none; }
.partner-logo:hover { color: var(--muted); }

.partner-logo-img { background: transparent; }
.partner-logo-img img {
  display: block;
  height: 34px;
  width: auto;
  max-width: none;
  opacity: 0.45;
  transition: opacity .3s, filter .3s;
  filter: var(--logo-filter, none);
}
.partner-logo-img:hover img { opacity: 0.75; }

/* ── KONTAKT ── */
#kontakt {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  color: var(--accent);
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}
.contact-item-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.contact-item-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-item-val {
  font-size: 1rem;
  font-weight: 500;
}

/* WP Contact Form 7 styling */
.contact-form,
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label,
.wpcf7-form label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  transition: border-color .2s;
  outline: none;
  resize: vertical;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--accent);
}
.form-group textarea,
.wpcf7-form textarea { min-height: 120px; }

.wpcf7-submit {
  background: var(--accent) !important;
  color: #0a0a0b !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 0.9rem 2.2rem !important;
  border: none !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  align-self: flex-start;
  transition: background .2s !important;
}
.wpcf7-submit:hover { background: var(--accent2) !important; }

/* ── FOOTER ── */
.site-footer,
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 5% 0;
}
.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo img {
  height: 74px;
  width: auto;
  display: block;
}
/* footer dvouvrstvé logo */
.footer-logo .site-logo__layers {
  height: 74px;
  width: 196px;
}
.footer-logo .site-logo__layers img {
  height: 74px !important;
}
@media (max-width: 900px) {
  .footer-logo img { height: 43px; }
  .footer-logo .site-logo__layers { height: 43px; width: 114px; }
  .footer-logo .site-logo__layers img { height: 43px !important; }
}
.footer-logo span { color: var(--accent); }

.footer-col--menu { text-align: right; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  align-items: flex-end;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-col--logo { flex-shrink: 0; }
.footer-right {
  display: flex;
  gap: 5rem;
  align-items: start;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.footer-col--contact .contact-item {
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}
.footer-col--contact .contact-item-val { font-size: 0.85rem; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  width: 100%;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  width: 100%;
}

@media (max-width: 900px) {
  .site-footer, footer { padding: 3rem 5% 0; }
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .footer-right { flex-direction: column; gap: 2rem; width: 100%; }
  .footer-col--menu { text-align: left; }
  .footer-col--menu .footer-links { align-items: flex-start; }
}

/* ── SCROLL FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── WP CORE ── */
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
p { margin-bottom: 1rem; }
.wp-block-image { margin: 2rem 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 2rem; }
.alignright { float: right; margin-left: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav, .site-header nav { height: 72px; }
  .site-logo img { height: 44px; }
  .footer-logo img { height: 36px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-bottom: 1px solid var(--border); }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
  .primary-menu { display: none; }
  .site-footer, footer { flex-direction: column; align-items: flex-start; }
  .partners-row {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr; /* všechny řádky stejné výšky */
  }
  .partner-logo {
    border-bottom: 1px solid var(--border);
    min-height: 110px; /* stejná výška každé buňky */
    padding: 1.2rem;
  }
  .partner-logo:nth-child(2n) { border-right: none; }
  .partner-logo:nth-last-child(-n+2) { border-bottom: none; }

  /* Všechna loga – stejná maximální výška, šířka se přizpůsobí podle poměru stran */
  .partner-logo-img img {
    width: auto;
    height: auto;
    max-height: 40px;
    max-width: 70%;
    object-fit: contain;
  }
  section { padding: 60px 5%; }
  #partneri { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 600px) {
  .ref-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .partner-logo {
    padding: 1rem;
    font-size: 1.1rem;
    min-height: 90px;
  }
  .partner-logo-img img {
    max-height: 34px;
    max-width: 70%;
  }
  .services-intro { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════
   MOBILE MENU  (v1.2.0)
   ═══════════════════════════════════════════════════ */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  flex-shrink: 0;
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1098;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(4px);
}
.mobile-menu-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 1099;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__inner {
  padding: 100px 2rem 2rem;
}

.mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}
.mobile-nav li:first-child { border-top: 1px solid var(--border); }

.mobile-nav a {
  display: block;
  padding: 1.1rem 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  transition: color .2s, padding-left .2s;
}
.mobile-nav a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* CTA položka v mobilním menu */
.mobile-nav .nav-cta a,
.mobile-nav .menu-item-cta a {
  color: var(--accent) !important;
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
}

/* ═══════════════════════════════════════════════════
   GDPR COOKIE BANNER  (v1.2.0)
   ═══════════════════════════════════════════════════ */

#avitona-gdpr {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 1.2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform .4s ease;
}
#avitona-gdpr.is-hidden { transform: translateY(110%); }

#avitona-gdpr p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
#avitona-gdpr a { color: var(--accent); }

.gdpr-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

#gdpr-accept {
  background: var(--accent);
  color: #0a0a0b;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
}
#gdpr-accept:hover { background: var(--accent2); }

#gdpr-decline {
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
#gdpr-decline:hover { border-color: var(--muted); color: var(--text); }

@media (max-width: 600px) {
  #avitona-gdpr { padding: 1rem 1.2rem; }
  .gdpr-actions { width: 100%; }
  #gdpr-accept, #gdpr-decline { flex: 1; text-align: center; }
}

/* ═══════════════════════════════════════════════════
   MOBILE MENU  (v1.2.0)
   ═══════════════════════════════════════════════════ */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  flex-shrink: 0;
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1098;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(4px);
}
.mobile-menu-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 1099;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__inner {
  padding: 100px 2rem 2rem;
}

.mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}
.mobile-nav li:first-child { border-top: 1px solid var(--border); }

.mobile-nav a {
  display: block;
  padding: 1.1rem 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  transition: color .2s, padding-left .2s;
}
.mobile-nav a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* CTA položka v mobilním menu */
.mobile-nav .nav-cta a,
.mobile-nav .menu-item-cta a {
  color: var(--accent) !important;
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
}

/* ═══════════════════════════════════════════════════
   GDPR COOKIE BANNER  (v1.2.0)
   ═══════════════════════════════════════════════════ */

#avitona-gdpr {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 1.2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform .4s ease;
}
#avitona-gdpr.is-hidden { transform: translateY(110%); }

#avitona-gdpr p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
#avitona-gdpr a { color: var(--accent); }

.gdpr-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

#gdpr-accept {
  background: var(--accent);
  color: #0a0a0b;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
}
#gdpr-accept:hover { background: var(--accent2); }

#gdpr-decline {
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
#gdpr-decline:hover { border-color: var(--muted); color: var(--text); }

@media (max-width: 600px) {
  #avitona-gdpr { padding: 1rem 1.2rem; }
  .gdpr-actions { width: 100%; }
  #gdpr-accept, #gdpr-decline { flex: 1; text-align: center; }
}

/* ═══════════════════════════════════════════════════
   WORDPRESS VLASTNÍ LOGO (.custom-logo)  v1.2.1
   Když klient nahraje logo přes Přizpůsobit → Identita webu → Logo,
   WP vygeneruje <a class="custom-logo-link"><img class="custom-logo"></a>
   Toto CSS zajistí že logo sedí přesně na stejné místo jako výchozí.
   ═══════════════════════════════════════════════════ */

/* Nav – WP logo link */
.site-logo .custom-logo-link,
.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

/* Nav – WP logo image – stejná výška jako naše výchozí logo */
.site-logo .custom-logo,
.site-header .custom-logo {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Footer – WP logo image */
.footer-logo .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo .custom-logo {
  height: 53px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Mobil – WP logo */
@media (max-width: 900px) {
  .site-logo .custom-logo,
  .site-header .custom-logo { height: 44px; }
  .footer-logo .custom-logo { height: 36px; }
}

/* ═══════════════════════════════════════════════════
   LAYOUT MÓDY  (v1.3.3)
   ═══════════════════════════════════════════════════ */

/* ── MÓD: CELÁ ŠÍŘKA (výchozí, nic nového) ── */
body.layout-full .site-wrap { max-width: none; box-shadow: none; }
body.layout-full nav,
body.layout-full .site-header nav {
  position: fixed;
  top: 0; left: 0; right: 0;
}
body.layout-full #hero { padding-top: 120px; }

/* Footer v módu "celá šířka" – pozadí přes celou šířku, obsah centrovaný 1200px */
body.layout-full .site-footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.layout-full .site-footer .av-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5%;
  padding-right: 5%;
  box-sizing: border-box;
}

/* ── MÓD: BOX 1200px ── */
body.layout-box .site-wrap {
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--border);
}
body.layout-box nav,
body.layout-box .site-header nav {
  position: sticky;
  top: 0;
}
body.layout-box #hero { padding-top: 80px; }

/* ── MÓD: KONTEJNER (sekce full, obsah 1200px) ── */
body.layout-container .site-wrap { max-width: none; box-shadow: none; }

/* Nav fixed, ale obsah centrovaný */
body.layout-container nav,
body.layout-container .site-header nav {
  position: fixed;
  top: 0; left: 0; right: 0;
}
body.layout-container #hero { padding-top: 120px; }

/* Kontejner uvnitř každé sekce */
body.layout-container .av-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Sekce s barevným pozadím – pozadí na celou šířku, obsah centrovaný */
body.layout-container #o-nas .av-container,
body.layout-container #reference .av-container,
body.layout-container #partneri .av-container,
body.layout-container #servis .av-container,
body.layout-container #kontakt .av-container,
body.layout-container #sluzby .av-container,
body.layout-container #hero .av-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Padding sekcí přesunout na kontejner v container módu */
body.layout-container section {
  padding-left: 0;
  padding-right: 0;
}
body.layout-container .av-container {
  padding-left: 5%;
  padding-right: 5%;
}
body.layout-container #hero {
  padding-left: 0;
  padding-right: 0;
}
body.layout-container #hero .av-container {
  padding-left: 5%;
  padding-right: 5%;
}
body.layout-container #partneri {
  padding-left: 0;
  padding-right: 0;
}
body.layout-container #partneri .av-container {
  padding: 60px 5%;
}

body.layout-container .site-footer {
  padding-left: 0;
  padding-right: 0;
}
body.layout-container .site-footer .av-container {
  padding-left: 5%;
  padding-right: 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   NOVÝ FOOTER S KONTAKTEM  (v1.3.4)
   ═══════════════════════════════════════════════════ */


/* ── FORMULÁŘ PLNÁ ŠÍŘKA ── */
.contact-form-wrap {
  width: 100%;
  margin-top: 3rem;
}

/* ── RESPONSIVITA FOOTER ── */
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-right {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
  .site-footer { padding: 3rem 5% 0; }
  .footer-bottom { margin: 0 -5%; width: calc(100% + 10%); }
}

/* container mód – footer */
body.layout-container .site-footer {
  padding-left: 0;
  padding-right: 0;
}
body.layout-container .site-footer .av-container {
  padding: 4rem 5% 0;
  display: block;
}
