﻿@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Nunito+Sans:wght@400;600;700&family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --font-body: 'Nunito Sans', 'Segoe UI', Tahoma, sans-serif;
    --font-heading: 'Merriweather', Georgia, serif;
    --line-height-body: 1.7;
    --letter-spacing-title: 0.2px;
    --letter-spacing-nav: 0.15px;
    --radius-card: 10px;
    --radius-soft: 8px;
    --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.07);
    --shadow-nav: 0 4px 12px rgba(0, 0, 0, 0.14);
}

/* Optional variant: modern technical feel */
body.theme-technical {
    --font-body: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    --font-heading: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    --line-height-body: 1.65;
    --letter-spacing-title: 0.3px;
    --letter-spacing-nav: 0.2px;
}

/* Specifické styly pro stránku AB Electronic */
.ab-page header {
    background-color: #3498db;
    color: #fff;
}

.ab-page aside nav {
    background-color: #2c3e50;
}

.ab-page aside nav a {
    color: #ecf0f1;
}

.ab-page aside nav a:hover {
    background-color: #34495e;
}

.ab-page section h2 {
    border-bottom: 2px solid #3498db;
}

.ab-page section h3 {
    border-bottom: 1px solid #5dade2;
}

.ab-page footer {
    background-color: #2c3e50;
    color: #ecf0f1;
}

body {
    font-family: var(--font-body);
    line-height: var(--line-height-body);
    margin: 0;
    padding: 0;
    color: #2d2d2d;
    background-color: #ffffff;
    background-image: linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)), url("o-nas.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

header {
    background-color: #e8c400;
    color: #2d2d2d;
    padding: 2.8rem 0;
    display: flex;
    align-items: center;
    gap: 2.4rem;
    padding-left: 2.4rem;
    padding-right: 2.4rem;
    min-height: 210px;
    position: relative;
}

header img {
    width: 230px;
    height: auto;
    flex-shrink: 0;
}

header .header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.header-contact {
    position: absolute;
    right: 0.9rem;
    top: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    font-weight: 600;
}

.header-hours-left {
    position: absolute;
    left: 0.9rem;
    top: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #2d2d2d;
    white-space: nowrap;
}

.header-hours-left::before {
    content: "\23F0\FE0E";
    color: #2d2d2d;
    font-size: 0.85em;
    line-height: 1;
}

.header-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #2d2d2d;
    text-decoration: none;
}

.header-contact a[href^="mailto:"]::before {
    content: "\2709";
    font-size: 0.85em;
    line-height: 1;
}

.header-contact a[href^="tel:"]::before {
    content: "\260E";
    font-size: 0.85em;
    line-height: 1;
}

.header-contact a:hover {
    text-decoration: underline;
}

.header-contact span {
    color: rgba(0, 0, 0, 0.7);
}

.language-switcher {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    top: auto;
    transform: none;
    font-size: 0.9rem;
}

.language-switcher a {
    color: #2d2d2d;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: all 0.3s;
}

.language-switcher a:hover {
    color: #333;
}

.language-switcher a.active {
    font-weight: bold;
    color: #2d2d2d;
    border-bottom: 2px solid #2d2d2d;
}

header h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: var(--letter-spacing-title);
    font-size: 2.5rem;
    text-align: center;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.25);
}

header p {
    margin: 0.5rem 0 0;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
}

nav {
    background-color: #2d2d2d;
    padding: 0;
    border-radius: 0 0 var(--radius-soft) var(--radius-soft);
    box-shadow: var(--shadow-nav);
    overflow: hidden;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color: #e8c400;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: var(--letter-spacing-nav);
    padding: 1rem 2rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

nav a:hover {
    background-color: #d4b000;
}

.container {
    display: flex;
    min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
    gap: 0.6rem;
    align-items: flex-start;
}

aside {
    width: 250px;
    background-color: #3a3a3a;
    padding: 1rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-nav);
    margin: 0.8rem 0 0 0.8rem;
}

aside nav {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

aside nav ul {
    flex-direction: column;
    align-items: stretch;
}

aside nav a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #555;
    border-radius: 6px;
}

aside nav a:hover {
    background-color: #505050;
}

/* Submenu styly */
aside nav .submenu {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0;
    display: none;
    flex-direction: column;
    background-color: #484848;
    border-radius: 6px;
    overflow: hidden;
}

aside nav .submenu.active {
    display: flex;
}

aside nav .submenu li {
    margin: 0;
}

aside nav .submenu a {
    display: block;
    padding: 0.5rem 2.5rem;
    border-bottom: 1px solid #555;
    font-size: 0.9rem;
    color: #e8c400;
}

aside nav .submenu a:hover {
    background-color: #505050;
}

aside nav .submenu li:last-child a {
    color: #e8c400;
}

/* AB ELECTRONIC modrý text */
aside nav li:last-child a {
    color: #0066cc;
}

aside nav li:last-child a:hover {
    color: #0052a3;
}

main {
    flex: 1;
    padding: 1.9rem 1.9rem 1.9rem 1.1rem;
}

section {
    background-color: #ffffff;
    margin-bottom: 2rem;
    padding: 2.1rem;
    border-radius: var(--radius-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-soft);
}

section h2 {
    color: #2d2d2d;
    font-family: var(--font-heading);
    font-weight: 700;
    border-bottom: 2px solid #e8c400;
    padding-bottom: 0.5rem;
}

section h3 {
    color: #2d2d2d;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 2rem;
    border-bottom: 1px solid #d4b000;
    padding-bottom: 0.25rem;
}

section p,
section li {
    color: #1b1b1b;
}

section p {
    max-width: 76ch;
}

.module-gallery {
    margin: 0.9rem 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 760px;
}

.module-gallery img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.module-gallery img:nth-child(2),
.module-gallery img:nth-child(3) {
    height: 182px;
    object-position: center;
}

.special-gallery {
    margin: 0.9rem 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 760px;
}

.special-gallery img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.indicator-image {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0.75rem 0 1.1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#contact > div {
    align-items: flex-start;
}

#contact iframe {
    display: block;
    width: 100%;
    max-width: 350px;
}

.contact-cta {
    margin-top: 1.8rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 9px;
    background-color: #fffbe0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-cta p {
    margin: 0;
    font-weight: 600;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background-color: #111111;
    color: #f0d500;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid #111111;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
    background-color: #f0d500;
    color: #111111;
}

.social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    transition: filter 0.2s ease;
}

.social-link svg {
    width: 14px;
    height: 14px;
    display: block;
}

.social-link.linkedin {
    color: #0a66c2;
    background-color: #eaf3ff;
    border-color: #cfe3ff;
}

.social-link.facebook {
    color: #1877f2;
    background-color: #eaf2ff;
    border-color: #cddfff;
}

.social-link:hover {
    filter: brightness(0.96);
}

/* Team members section */
.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-member {
    background-color: #fafafa;
    padding: 1.4rem;
    border-radius: 9px;
    border-left: 4px solid #e8c400;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.team-member h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

#about {
    background-color: #fff;
}

footer {
    background-color: #2d2d2d;
    color: #e8c400;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    body {
        background-color: #ffffff;
        background-image: none;
        background-attachment: scroll;
        overflow-x: hidden;
    }

    #contact > div {
        flex-direction: column;
    }

    #contact iframe {
        max-width: 100%;
        width: 100%;
    }

    header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
        padding: 1.15rem 0.75rem 1.25rem;
        min-height: 0;
    }

    header img {
        order: 1;
        width: 175px;
        flex: 0 0 auto;
    }

    header .header-title {
        order: 3;
        width: 100%;
        position: static;
        transform: none;
        text-align: center;
        margin: 0.5rem 0;
    }

    .header-hours-left {
        order: 4;
        position: static;
        width: 50%;
        font-size: 0.78rem;
        margin-top: 0.2rem;
        white-space: nowrap;
    }

    .header-contact {
        order: 5;
        position: static;
        width: 50%;
        justify-content: flex-end;
        margin-top: 0.2rem;
        font-size: 0.78rem;
    }

    .language-switcher {
        order: 2;
        position: static;
        margin-left: auto;
        right: auto;
        top: auto;
        transform: none;
        white-space: nowrap;
    }

    header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    header p {
        font-size: 1rem;
        margin-top: 0.25rem;
    }

    .container {
        flex-direction: column;
        gap: 0;
    }

    aside {
        width: 100%;
        order: -1; /* Menu at top on mobile */
        padding: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    aside nav ul {
        flex-direction: column;
        justify-content: flex-start;
    }

    aside nav a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        word-break: break-word;
    }

    aside nav .submenu a {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1.3rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }

    .contact-cta {
        padding: 1rem;
    }

    .cta-button {
        width: 100%;
    }

    footer {
        margin-top: 1rem;
        padding: 0.8rem 0.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0.6rem 1.05rem;
    }

    header img {
        width: 140px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .language-switcher {
        font-size: 0.8rem;
    }

    .language-switcher a {
        padding: 0.2rem 0.35rem;
        margin: 0 0.1rem;
    }

    .module-gallery {
        grid-template-columns: 1fr;
    }

    .module-gallery img {
        height: auto;
    }

    .special-gallery {
        grid-template-columns: 1fr;
    }

    .special-gallery img {
        height: auto;
    }

    .header-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        font-size: 0.72rem;
        justify-content: flex-start;
    }

    .header-contact a {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .header-hours-left {
        font-size: 0.72rem;
    }

    .header-contact > span {
        display: none;
    }
}



