/* ============================================================
   Telenet.cz — Hlavní styl
   Barvy: Oranžová (#e65100) + Tmavě modrá (#1a237e)
   Font: Space Grotesk
   ============================================================ */

:root {
  --primary: #e65100;
  --primary-dark: #bf360c;
  --primary-light: #ff8f00;
  --secondary: #1a237e;
  --secondary-light: #283593;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-dark: #1a1a2e;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --white: #ffffff;
  --border: #e0e0e0;
  --success: #2e7d32;
  --error: #c62828;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --transition: .25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--secondary);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  padding: .35rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; gap: 1.5rem; }
.topbar-link { color: rgba(255,255,255,.7); font-weight: 500; }
.topbar-link:hover { color: var(--white); }

/* ---- HEADER ---- */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
}
.logo-text strong { font-size: 1.15rem; display: block; line-height: 1.2; color: var(--secondary); }
.logo-text small { font-size: .65rem; color: var(--text-muted); letter-spacing: .5px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.nav-item > a {
  padding: .55rem .85rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: block;
}
.nav-item > a:hover,
.nav-item.active > a {
  color: var(--primary);
  background: rgba(230,81,0,.05);
}
.nav-item.has-sub { position: relative; }
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: .4rem 0;
  z-index: 50;
  border: 1px solid var(--border);
}
.nav-item.has-sub:hover .sub-menu { display: block; }
.sub-menu a {
  display: block;
  padding: .5rem 1rem;
  font-size: .82rem;
  color: var(--text);
  transition: var(--transition);
}
.sub-menu a:hover {
  background: rgba(230,81,0,.05);
  color: var(--primary);
}
.sub-item.has-sub2 { position: relative; }
.sub-menu2 {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .4rem 0;
  border: 1px solid var(--border);
}
.sub-item.has-sub2:hover .sub-menu2 { display: block; }

/* ---- BREADCRUMB ---- */
.breadcrumb-bar {
  background: var(--bg-alt);
  padding: .5rem 0;
  font-size: .78rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-bar a { color: var(--text-light); }
.breadcrumb-bar a:hover { color: var(--primary); }
.bc-sep { margin: 0 .4rem; }
.bc-current { color: var(--primary); font-weight: 600; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #0d1642 100%);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: .8;
  margin-bottom: 2rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  font-size: .88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }

/* ---- SECTIONS ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 2rem;
  text-align: center;
}

/* ---- CARDS ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: .6rem;
}
.card p {
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.card-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---- TWO COL ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.stat {
  text-align: center;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 3.5rem 0;
}
.cta-section h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.cta-section p { opacity: .85; margin-bottom: 1.5rem; }
.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.cta-section .btn-primary:hover {
  background: rgba(255,255,255,.9);
}

/* ---- PAGE CONTENT ---- */
.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
}
.page-content {
  font-size: .95rem;
  line-height: 1.8;
}
.page-content h2 { font-size: 1.3rem; color: var(--secondary); margin: 2rem 0 .8rem; font-weight: 700; }
.page-content h3 { font-size: 1.1rem; color: var(--primary); margin: 1.5rem 0 .6rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin: .8rem 0 1rem 1.5rem; }
.page-content li { margin-bottom: .3rem; }

/* ---- PRODUCTS ---- */
.product-block {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.product-name { font-size: 1.4rem; color: var(--secondary); margin-bottom: .5rem; }
.product-desc { color: var(--text-light); margin-bottom: 1.5rem; font-style: italic; }
.product-img { border-radius: var(--radius); margin-bottom: 1.5rem; max-height: 400px; object-fit: cover; }

/* Spec table */
.spec-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.spec-table th {
  background: var(--secondary);
  color: var(--white);
  padding: .6rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.spec-table td {
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--border);
}
.spec-table tr:nth-child(even) { background: rgba(0,0,0,.02); }
.spec-table tr:hover { background: rgba(230,81,0,.03); }
.spec-label { font-weight: 600; color: var(--text); }
.features-list { margin: 1rem 0 0 1.5rem; }
.features-list li { margin-bottom: .4rem; color: var(--text-light); }
.features-list li::marker { color: var(--primary); }
.product-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(230,81,0,.06), rgba(26,35,126,.06));
  border-radius: var(--radius);
  text-align: center;
}
.product-cta p { margin-bottom: .5rem; }

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white);
  padding: 1rem .8rem .6rem;
  font-size: .78rem;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.lightbox.open { display: flex; flex-direction: column; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-caption { color: rgba(255,255,255,.7); margin-top: 1rem; font-size: .85rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
}
.contact-card {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.contact-card h3 { font-size: .95rem; color: var(--secondary); margin-bottom: .5rem; }
.contact-card p { font-size: .88rem; margin-bottom: .2rem; }
.contact-card a { color: var(--primary); }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: .3rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  transition: border var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,81,0,.1);
}
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .88rem;
}
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid rgba(46,125,50,.2); }
.alert-error { background: #ffebee; color: var(--error); border: 1px solid rgba(198,40,40,.2); }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: .75rem;
  font-weight: 700;
}
.footer p { font-size: .82rem; margin-bottom: .3rem; line-height: 1.6; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .35rem; }
.footer a { color: rgba(255,255,255,.7); font-size: .82rem; }
.footer a:hover { color: var(--primary-light); }
.footer-bottom {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .72rem;
  text-align: center;
  color: rgba(255,255,255,.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav-item > a { padding: .65rem .5rem; }
  .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: block;
  }
  .sub-menu2 { position: static; display: block; padding-left: 1rem; box-shadow: none; border: none; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 3rem 0; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .topbar-left { flex-direction: column; gap: .2rem; font-size: .7rem; }
  .oh-grid { grid-template-columns: 1fr !important; }
  .oh-widget { flex-direction: column; }
}

/* ============ Opening Hours Widget ============ */
.oh-section { padding: 1.5rem 0; background: #fff; border-bottom: 1px solid #e0e0e0; }
.oh-widget { display: flex; gap: 2rem; align-items: flex-start; }
.oh-status { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.5rem; border-radius: 12px; min-width: 220px; flex-direction: column; text-align: center; }
.oh-open { background: #e8f5e9; border: 1px solid #a5d6a7; }
.oh-closed { background: #ffebee; border: 1px solid #ef9a9a; }
.oh-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.oh-open .oh-dot { background: #4caf50; box-shadow: 0 0 8px rgba(76,175,80,.6); animation: pulse-green 2s infinite; }
.oh-closed .oh-dot { background: #ef5350; box-shadow: 0 0 8px rgba(239,83,80,.6); }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 4px rgba(76,175,80,.4)} 50%{box-shadow:0 0 12px rgba(76,175,80,.8)} }
.oh-status-text { font-size: 1.4rem; font-weight: 800; color: #333; }
.oh-detail { font-size: .82rem; color: #777; }
.oh-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; flex: 1; }
.oh-day { background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 8px; padding: .6rem .5rem; text-align: center; transition: .2s; }
.oh-day:hover { background: #eeeeee; border-color: #bdbdbd; }
.oh-today { background: #fff3e0 !important; border: 2px solid #e65100 !important; }
.oh-day-name { display: block; font-size: .7rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .3rem; }
.oh-time { display: block; font-size: .85rem; font-weight: 600; color: #333; }
.oh-time.oh-off { color: #bbb; font-size: .75rem; }
.oh-notices { margin-top: .5rem; flex-basis: 100%; }
.oh-notice { font-size: .78rem; color: #666; padding: .3rem .6rem; background: #fff8e1; border-radius: 6px; margin-bottom: .3rem; border-left: 3px solid #ff9800; }
