/*
Theme Name:         Autocentral V2 VIBE
Theme URI:          http://foundationpress.olefredrik.com
Github Theme URI:   https://github.com/olefredrik/FoundationPress
Description:        FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb
Version:            5.5.1
Author:             Ole Fredrik Lie
Author URI:         http://olefredrik.com/

License:            MIT License
License URI:        http://www.opensource.org/licenses/mit-license.php
*/

/* ============================================================
   CSS PREMENNÉ – farebná schéma
   ============================================================ */
:root {
  --yellow:        #F0B429;
  --yellow-hover:  #D99A10;
  --yellow-light:  rgba(240, 180, 41, 0.12);
  --dark:          #1C1C1C;
  --dark2:         #2A2A2A;
  --dark3:         #3A3A3A;
  --gray:          #6B7280;
  --gray-light:    #F3F4F6;
  --border:        #E5E7EB;
  --white:         #FFFFFF;
  --text:          #1F2937;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.10);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.13);
  --shadow-lg:     0 10px 40px rgba(0,0,0,0.18);
  --radius:        6px;
  --t:             0.25s ease;
}

/* ============================================================
   ZÁKLADNÉ ŠTÝLY
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  color: var(--text);
  background: var(--gray-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--yellow);
  transition: color var(--t);
}
a:hover { color: var(--yellow-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Segeto UI', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

/* ============================================================
   WRAPPER / POZADIE
   ============================================================ */
.off-canvas-wrap,
.inner-wrap {
  background: var(--gray-light);
}

/* ============================================================
   HEADER – logo + vyhľadávanie
   ============================================================ */
.ac-middle-header {
  background: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

.ac-logo {
  display: flex;
  align-items: center;
}

.ac-logo img {
  max-height: 56px;
  width: auto;
  transition: opacity var(--t);
}
.ac-logo img:hover { opacity: 0.82; }

/* ============================================================
   ŽLTÁ AKCENTOVÁ LINKA
   ============================================================ */
.ac-blue-gradient,
.ac-header-line {
  background: linear-gradient(90deg, var(--yellow), #E8A000 50%, var(--yellow));
  height: 3px;
  border: none;
}

/* ============================================================
   HLAVNÁ NAVIGÁCIA – desktopová
   ============================================================ */
.ac-main-navigation-bar-container {
  background: var(--dark);
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  position: relative;
  z-index: 9;
  margin-bottom: 0 !important;
}

.top-bar,
.top-bar-section,
.top-bar > ul {
  background: var(--dark) !important;
  border: none !important;
}

.top-bar {
  height: 50px !important;
  line-height: 50px !important;
}

.top-bar-section ul li > a,
.top-bar-section ul li > a:not(.button) {
  color: rgba(255,255,255,0.82) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  padding: 0 18px !important;
  line-height: 50px !important;
  height: 50px !important;
  background: transparent !important;
  transition: background var(--t), color var(--t) !important;
}

.top-bar-section ul li > a:hover,
.top-bar-section li.active > a:not(.button),
.top-bar-section li:hover > a:not(.button) {
  background: var(--yellow) !important;
  color: var(--dark) !important;
}

/* Dropdown */
.top-bar-section ul.dropdown {
  background: var(--dark2) !important;
  border-top: 2px solid var(--yellow) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
}

.top-bar-section ul.dropdown li a {
  background: var(--dark2) !important;
  color: rgba(255,255,255,0.80) !important;
  border-bottom: 1px solid var(--dark3) !important;
  font-size: 13px !important;
  line-height: 44px !important;
  height: 44px !important;
}

.top-bar-section ul.dropdown li a:hover {
  background: var(--yellow) !important;
  color: var(--dark) !important;
}

/* Hamburger / toggle icon */
.top-bar .toggle-topbar.menu-icon a span,
.top-bar .toggle-topbar.menu-icon a span::after,
.top-bar .toggle-topbar.menu-icon a span::before {
  box-shadow: 0 0 0 1px var(--white),
              0 7px 0 1px var(--white),
              0 14px 0 1px var(--white) !important;
}

/* ============================================================
   MOBILNÁ NAVIGÁCIA – tab-bar + off-canvas
   ============================================================ */
.tab-bar,
nav.tab-bar.ac-off-canvas {
  background: var(--dark) !important;
  height: 50px !important;
  line-height: 50px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tab-bar h1.title {
  font-size: 17px !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  margin: 0;
    margin-left: 50px;
  line-height: 50px !important;
}

.tab-bar .left-small a,
.tab-bar .menu-icon a {
  color: var(--white) !important;
}

.tab-bar .menu-icon span::after {
  box-shadow: 0 0 0 1px var(--white), 0 7px 0 1px var(--white), 0 14px 0 1px var(--white) !important;
}

/* Off-canvas drawer */
.left-off-canvas-menu {
  background: var(--dark2) !important;
}

.off-canvas-list li label {
  background: #111 !important;
  color: var(--yellow) !important;
  font-size: 10px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 8px 16px !important;
}

.off-canvas-list li a {
  color: rgba(255,255,255,0.82) !important;
  border-bottom: 1px solid var(--dark3) !important;
  font-size: 14px !important;
  transition: background var(--t), padding-left var(--t), color var(--t) !important;
}

.off-canvas-list li a:hover {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  padding-left: 24px !important;
}

/* Sociálne ikony v mobilnom tab-bare */
.ac-tab-bar-social .button-group {
  margin: 0;
}
.ac-tab-bar-social .button-group li a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 18px !important;
  line-height: 50px !important;
  padding: 0 10px !important;
  background: transparent !important;
  transition: color var(--t) !important;
}
.ac-tab-bar-social .button-group li a:hover {
  color: var(--yellow) !important;
}

/* ============================================================
   HLAVNÝ OBSAH – wrapper
   ============================================================ */
section.container {
  background: var(--white);
  min-height: 60vh;
  padding-bottom: 40px;
}

/* ============================================================
   HOME PAGE – slider
   ============================================================ */
.home-slider {
  overflow: hidden;
  background: var(--dark);
}

.home-slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   HOME PAGE – info boxy
   ============================================================ */
.home-info {
  background: var(--gray-light);
  padding: 40px 0 20px;
  margin: 0 auto !important;
  border-top: 3px solid var(--yellow);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.home-info .columns {
  animation: fadeInUp 0.55s ease both;
}
.home-info .columns:nth-child(1) { animation-delay: 0.05s; }
.home-info .columns:nth-child(2) { animation-delay: 0.18s; }
.home-info .columns:nth-child(3) { animation-delay: 0.31s; }

.home-info .panel {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-top: 3px solid transparent !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 30px 24px 24px !important;
  margin-bottom: 24px !important;
  transition: transform var(--t), box-shadow var(--t), border-top-color var(--t) !important;
  position: relative;
  overflow: hidden;
}

.home-info .panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
  border-top-color: var(--yellow) !important;
}

.home-info-sticker {
  width: 58px;
  height: 58px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 26px;
  color: var(--dark);
  line-height: 1;
}

.home-info-sticker i {
  display: block;
  line-height: 58px;
  width: 58px;
  text-align: center;
}

.home-info h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.home-info p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 6px;
}

.home-info-button {
  margin-top: 20px;
}

.home-info-button a {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark) !important;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.home-info-button a:hover {
  background: var(--yellow-hover);
  color: var(--dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(240,180,41,0.42);
}

/* ============================================================
   VŠEOBECNÉ PANELY (Foundation .panel)
   ============================================================ */
.panel {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 20px !important;
}

/* ============================================================
   TLAČIDLÁ
   ============================================================ */
.button,
button:not(.left-off-canvas-toggle):not(.exit-off-canvas),
input[type="submit"],
input[type="button"] {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
  border: none !important;
  letter-spacing: 0.3px !important;
  transition: background var(--t), transform var(--t), box-shadow var(--t) !important;
  cursor: pointer;
}

.button:hover,
button:not(.left-off-canvas-toggle):not(.exit-off-canvas):hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--yellow-hover) !important;
  color: var(--dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(240,180,41,0.38) !important;
}

.button.secondary {
  background: var(--dark) !important;
  color: var(--white) !important;
}
.button.secondary:hover {
  background: var(--dark2) !important;
  color: var(--white) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ============================================================
   FORMULÁRE
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea,
select {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: var(--white) !important;
  color: var(--text) !important;
  font-family: inherit !important;
  transition: border-color var(--t), box-shadow var(--t) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 3px rgba(240,180,41,0.18) !important;
  outline: none !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  padding-left: 20px;
}

#sidebar .widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}

#sidebar .widget-title,
#sidebar h2,
#sidebar h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow);
  margin-bottom: 14px;
}

#sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar ul li a {
  color: var(--gray);
  font-size: 14px;
  display: block;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t), padding-left var(--t);
}

#sidebar ul li a:hover {
  color: var(--yellow);
  padding-left: 6px;
}

/* ============================================================
   OBSAH STRÁNOK / PRÍSPEVKOV
   ============================================================ */
.entry-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  line-height: 1.3;
}

.entry-content {
  line-height: 1.75;
  color: #374151;
  font-size: 15px;
}

.entry-content h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.entry-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 24px;
  margin-bottom: 10px;
}

.entry-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.entry-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  height: auto;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  text-decoration: none;
}

.entry-content ul,
.entry-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.entry-content li {
  margin-bottom: 6px;
}

.entry-content blockquote {
  border-left: 4px solid var(--yellow);
  background: var(--yellow-light);
  margin: 20px 0;
  padding: 14px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.entry-content table th {
  background: var(--dark);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.entry-content table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.entry-content table tr:nth-child(even) td {
  background: var(--gray-light);
}

.entry-content table tr:hover td {
  background: var(--yellow-light);
  transition: background var(--t);
}

/* ============================================================
   PÄTIČKA
   ============================================================ */
footer.footer {
  background: var(--dark) !important;
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px !important;
  margin-top: 0 !important;
  border-top: 3px solid var(--yellow);
}

footer.footer h2 {
  color: var(--yellow) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--dark3) !important;
}

footer.footer p {
  color: rgba(255,255,255,0.65) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  margin-bottom: 6px !important;
}

footer.footer a {
  color: rgba(255,255,255,0.65) !important;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
  transition: color var(--t) !important;
}

footer.footer a:hover {
  color: var(--yellow) !important;
}

footer.footer i {
  color: var(--yellow);
  margin-right: 5px;
}

.footer-part {
  padding-bottom: 20px;
}

/* ============================================================
   COPYRIGHT BAR
   ============================================================ */
.my-copywrite-wrapper {
  background: #111 !important;
  border-top: 1px solid #222;
  padding: 14px 0;
}

.my-copywrite p {
  color: rgba(255,255,255,0.45) !important;
  font-size: 13px !important;
  margin: 6px 0 !important;
}

.my-copywrite .button-group {
  margin: 0;
}

.my-copywrite .button-group li a.button {
  background: transparent !important;
  color: rgba(255,255,255,0.45) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 5px 11px !important;
  margin: 2px !important;
  letter-spacing: 0.2px !important;
  transition: background var(--t), color var(--t), border-color var(--t) !important;
  transform: none !important;
  box-shadow: none !important;
}

.my-copywrite .button-group li a.button:hover {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  border-color: var(--yellow) !important;
  transform: none !important;
}

/* ============================================================
   GALÉRIA
   ============================================================ */
.my-gallery-wrapper {
  padding: 10px 0;
}

.my-gallery-thumbnail {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--dark);
  transition: transform var(--t), box-shadow var(--t);
}

.my-gallery-thumbnail:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-md);
}

.my-gallery-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity var(--t);
}

.my-gallery-thumbnail:hover img {
  opacity: 0.9;
}

/* ============================================================
   COOKIES / GDPR
   ============================================================ */
.cookies-button,
.cookies-button:visited {
  color: #fff;
  background-color: #c0392b;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin: 1rem 0 2rem 0;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--t);
}
.cookies-button:hover {
  color: #fff;
  background-color: #a93226;
}

/* ============================================================
   RECAPTCHA
   ============================================================ */
.grecaptcha-badge { visibility: collapse !important; }

/* ============================================================
   PAGINÁCIA
   ============================================================ */
.pagination-centered .pagination li a,
.pagination-centered .pagination li.current a,
.pagination-centered .pagination li.unavailable a {
  border-radius: 4px !important;
  margin: 0 2px !important;
  transition: background var(--t), color var(--t) !important;
  font-size: 13px !important;
}

.pagination-centered .pagination li.current a,
.pagination-centered .pagination li a:hover {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  border-color: var(--yellow) !important;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  background: var(--gray-light);
  border: none !important;
  border-radius: var(--radius);
  padding: 8px 14px !important;
  margin-bottom: 20px !important;
  font-size: 13px;
}

.breadcrumbs a { color: var(--yellow); }

/* ============================================================
   VYHĽADÁVANIE
   ============================================================ */
.search-form {
  display: flex;
  gap: 0;
}
.search-form input[type="search"] {
  border-radius: var(--radius) 0 0 var(--radius) !important;
  flex: 1;
}
.search-form button[type="submit"],
.search-form input[type="submit"] {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
}

/* ============================================================
   ANIMÁCIE
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Jemná animácia obsahu stránky */
section.container {
  animation: fadeIn 0.4s ease both;
}

/* ============================================================
   RESPONSIVE ÚPRAVY
   ============================================================ */
@media (max-width: 640px) {
  .entry-title {
    font-size: 22px;
  }
  .home-info {
    padding: 24px 0 8px;
  }
  footer.footer {
    padding: 32px 0 20px !important;
  }
  .my-copywrite .button-group li a.button {
    font-size: 10px !important;
    padding: 4px 8px !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .footer-medium-clear {
    clear: left;
  }
}
