/* Responzívne štýly pre THORIN webstránku */

/* ACCESSIBILITY IMPROVEMENTS */

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #299DCA;
  color: white;
  padding: 8px;
  z-index: 10000;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

/* Partners list styling */
.partners-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.partners-list li {
  display: inline-block;
}

.partners-list img {
  max-width: 100px;
  height: auto;
}

/* Improved focus indicators */
a:focus, button:focus {
  outline: 2px solid #299DCA;
  outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Základné responzívne nastavenia */
* {
    box-sizing: border-box;
}

/* Zachovanie pôvodných farieb a základných štýlov */
:root {
    --primary-blue: #299DCA;
    --light-blue: #7DD0F1;
    --gray: #808080;
    --light-gray: #e0e0e0;
    --bg-gray: #f4f4f4;
    --border-gray: #ccc;
    --text-dark: #333;
    --text-light: #669;
    --white: #fff;
    --footer-text: #9b9b9b;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 5px solid var(--light-blue);
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    max-height: 58px;
    width: auto;
}

/* Navigácia */
.navbar {
    flex: 1;
    text-align: right;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
}

.navbar li {
    margin-left: 5px;
    position: relative;
}

.navbar a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding: 15px 20px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

/* Animovaný dolný border efekt */
.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 80%;
}

.navbar a:hover {
    color: var(--primary-blue);
}

/* Aktívna stránka - border vždy zobrazený */
.navbar a.active::after,
.navbar a[aria-current="page"]::after {
    width: 80%;
}

.navbar a.active,
.navbar a[aria-current="page"] {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Focus states pre accessibility */
.navbar a:focus {
    outline: none;
    color: var(--primary-blue);
    background-color: rgba(41, 157, 202, 0.1);
    border-radius: 4px;
}

.navbar a:focus::after {
    width: 80%;
}

/* Main content layout */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.content-left {
    flex: 2;
    min-width: 300px;
}

.content-right {
    flex: 1;
    min-width: 280px;
    background: var(--bg-gray);
    border: 1px solid var(--light-gray);
    padding: 20px;
    height: fit-content;
}

/* Typography */
h1 {
    font: normal 2.4em Georgia, Arial, Sans-Serif;
    margin: 20px 0;
    color: var(--text-dark);
}

h2 {
    font: bold 1.6em Arial, Sans-Serif;
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

h4 {
    color: var(--gray);
    font-weight: normal;
    font-size: 1em;
    margin: 15px 0 10px 0;
}

.blue {
    color: var(--primary-blue);
}

.white {
    color: var(--white);
}

/* Links */
a {
    color: #008aff;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gray);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border: none;
}

.content-image {
    border: 1px solid var(--border-gray);
    padding: 2px;
    float: left;
    margin: 0 15px 10px 0;
    max-width: 180px;
}

/* Kontakt sekcia v pravom paneli */
.contact-section {
    margin-bottom: 30px;
}

.contact-info {
    background: var(--bg-gray);
    border: 1px solid var(--light-gray);
    padding: 15px;
    margin-bottom: 20px;
}

.contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
    min-width: 150px;
}

/* Contact page blocks styling */
.contact-block {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-block h2 {
    color: var(--primary-blue);
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 5px;
}

.contact-block address {
    font-style: normal;
    line-height: 1.6;
}

.contact-block a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-block a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.quick-contact {
    background: var(--light-blue);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.quick-contact h3 {
    color: white;
    margin-bottom: 15px;
}

.phone-highlight, .email-highlight {
    margin: 10px 0;
    font-size: 1.1em;
}

.phone-highlight a, .email-highlight a {
    color: white !important;
    font-weight: bold;
    text-decoration: none;
}

.phone-highlight a:hover, .email-highlight a:hover {
    text-decoration: underline;
}

/* Simplified contact links without boxes */
.contact-links {
    margin-top: 15px;
}

.contact-links h3 {
    color: var(--primary-blue);
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 5px;
}

.phone-link, .email-link {
    margin: 12px 0;
    font-size: 1.1em;
    padding: 8px 0;
}

.phone-link a, .email-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 5px 0;
    border-bottom: 1px transparent;
    transition: all 0.3s ease;
}

.phone-link a:hover, .email-link a:hover {
    color: var(--text-dark);
    border-bottom: 1px solid var(--primary-blue);
}

/* Map section styling */
.map-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
}

.map-section h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-size: 1.4em;
}

.map-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.map-container iframe {
    transition: opacity 0.3s ease;
}

.map-container iframe:hover {
    opacity: 0.95;
}

.map-address {
    color: var(--gray);
    font-size: 14px;
    margin: 10px 0 0 0;
}

.map-address strong {
    color: var(--text-dark);
}

.map-address small {
    color: var(--light-blue);
    font-style: italic;
}

.contact-details strong {
    font-size: 18px;
    color: var(--text-dark);
}

/* Fotogaléria */
.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
}

.gallery li {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-gray);
    padding: 8px;
    transition: transform 0.3s ease;
}

.gallery li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid var(--border-gray);
    padding: 4px;
}

.gallery .photo {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 31px;
    height: 30px;
    background: url(../images/icons-photo_31x30.png) no-repeat;
}

/* Tabs - responzívny dizajn */
.tabs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #999;
    background: var(--white);
}

.tabs li {
    flex: 1;
    min-width: 150px;
    background: var(--light-gray);
    border: 1px solid #999;
    border-bottom: none;
}

.tabs li.active {
    background: var(--white);
    border-bottom: 1px solid var(--white);
}

.tabs a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #000;
    font-size: 1.1em;
    text-align: center;
    transition: background 0.3s ease;
}

.tabs a:hover {
    background: var(--border-gray);
}

.tabs li.active a:hover {
    background: var(--white);
}

.tab-container {
    border: 1px solid #999;
    border-top: none;
    background: var(--white);
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tabuľky */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
    border: 1px solid var(--border-gray);
}

.price-table th {
    background: var(--bg-gray);
    border: 1px solid var(--border-gray);
    padding: 12px 8px;
    font-size: 14px;
    text-align: left;
}

.price-table td {
    border: 1px solid var(--border-gray);
    padding: 10px 8px;
    color: var(--text-light);
}

.price-table tbody tr:hover {
    background: #f9f9f9;
}

.price-table tfoot td {
    font-style: italic;
    background: var(--bg-gray);
    font-size: 12px;
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-gray);
    padding: 20px 0;
    margin-top: 40px;
    color: var(--footer-text);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-menu a {
    color: var(--gray);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #000;
}

/* Responzívne breakpointy */

/* Tablet */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .navbar {
        text-align: center;
        width: 100%;
    }
    
    .navbar ul {
        justify-content: center;
    }
    
    .navbar li {
        margin: 0 10px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .content-left,
    .content-right {
        flex: none;
        width: 100%;
    }
    
    .contact-header {
        justify-content: center;
        text-align: center;
    }
    
    .contact-block {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .contact-block h2 {
        font-size: 1.2em;
    }
    
    .quick-contact {
        margin-top: 15px;
        padding: 15px;
    }
    
    .contact-links {
        margin-top: 10px;
    }
    
    .phone-link, .email-link {
        font-size: 1em;
        margin: 8px 0;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tabs li {
        flex: none;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    body {
        font-size: 12px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .navbar a {
        display: block;
        padding: 15px;
        text-align: center;
        border-radius: 0;
    }
    
    /* Mobile: border efekt na spodku stránky */
    .navbar a::after {
        bottom: -1px;
        width: 0;
    }
    
    .navbar a.active::after,
    .navbar a[aria-current="page"]::after {
        width: 100%;
        bottom: -1px;
    }
    
    .navbar a:hover::after {
        width: 100%;
    }
    
    .content-image {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
    }
    
    .contact-header {
        flex-direction: column;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 10px auto;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .footer-menu {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .price-table {
        font-size: 12px;
    }
    
    .price-table th,
    .price-table td {
        padding: 8px 4px;
    }
}

/* Utility classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Skrytie elementov na mobiloch */
@media (max-width: 480px) {
    .hide-mobile {
        display: none;
    }
}