html {
	scroll-behavior: smooth;
}

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

:root {
    --primary-color: #4a5fa8;
    --secondary-color: #4a5fa8;
    --accent-color: #ffff99;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #ffffff;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
	/*font-family: 'Futura', 'Trebuchet MS', 'Arial', sans-serif; */
	font-family: 'Roboto', 'Open Sans', 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f5f5f5;
    font-weight: normal;
}

/* ==================== SITE HEADER + TOPBAR ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar {
    background-color: #253470;
    font-size: 0.75rem;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.3rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.topbar-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.1rem 0.2rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.topbar-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.topbar-cart {
    color: #fff;
    font-size: 0.9375rem; /* 0.75rem × 1.25 — 25% larger than other topbar links */
}

.topbar-active {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.topbar-sep {
    display: inline-block;
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .topbar-inner {
        justify-content: center;
        flex-wrap: wrap;
        padding: 0.3rem 1rem;
        gap: 0.4rem;
    }
}


.navbar {
    background-color: #4a5fa8;
    color: var(--white);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 180px;
  }

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    flex-wrap: nowrap;            /* never wrap to a second line */
    list-style: none;
    gap: 1.25rem;                 /* was 2rem — gives us breathing room */
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu .nav-link {
    white-space: nowrap;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 0 0 transparent;
    padding: 0.25rem 0.1rem;
}

.nav-link:hover,
.nav-link.active {
    color: #ffff99;
    transform: scale(1.08);
    text-shadow:
        0 0 10px rgba(255, 255, 153, 0.8),
        0 0 20px rgba(255, 255, 153, 0.6),
        0 0 30px rgba(255, 255, 153, 0.4);
    filter: brightness(1.2);
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.hero {
    position: relative;
    background: linear-gradient(135deg, #4a5fa8 0%, #4a5fa8 100%);
    color: var(--white);
    padding: 100px 2rem;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--white);
    border-radius: 50%;
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: #ffff99;
    border-radius: 20px;
    bottom: -100px;
    right: -100px;
    transform: rotate(45deg);
}

.shape-3 {
    width: 250px;
    height: 250px;
    border: 3px solid var(--white);
    top: 50%;
    right: 10%;
    border-radius: 10px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: normal;
}

.cta-button {
    display: inline-block;
    background-color: #4a5fa8;
    color: #ffff99;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(255, 255, 153, 0.5), var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.12);
    box-shadow: 0 0 30px rgba(255, 255, 153, 0.8), 0 0 60px rgba(255, 255, 153, 0.4), 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: glowPulse 1.5s ease-in-out infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features {
    background-color: var(--bg-light);
    padding: 60px 2rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #4a5fa8;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #4a5fa8;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-weight: normal;
}

.page-content {
    min-height: 600px;
    padding: 60px 2rem;
    background-color: #f5f5f5;
}

.page-content h1 {
    font-size: 2.5rem;
    color: #4a5fa8;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.services-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #4a5fa8;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.service-item h2 {
    font-size: 1.5rem;
    color: #4a5fa8;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.service-item p {
    position: relative;
    z-index: 2;
    font-weight: normal;
}

.solar-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.solar-info h2 {
    font-size: 1.8rem;
    color: #4a5fa8;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

.solar-info h2:first-of-type {
    margin-top: 0;
}

.solar-info h3 {
    font-size: 1.3rem;
    color: #4a5fa8;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.solar-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-weight: normal;
}

.benefits-list,
.services-list {
    list-style-position: inside;
    color: var(--text-light);
}

.benefits-list li,
.services-list li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    font-weight: normal;
}

.benefits-list li:before,
.services-list li:before {
    content: "✓ ";
    color: #ffff99;
    font-weight: 600;
    margin-right: 0.5rem;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.reference-card {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid #4a5fa8;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reference-card h3 {
    position: relative;
    z-index: 2;
    color: #4a5fa8;
    font-weight: 600;
}

.reference-card p {
    position: relative;
    z-index: 2;
    font-weight: normal;
}

.reference-card strong {
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info,
.contact-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.5rem;
    color: #4a5fa8;
    margin-bottom: 2rem;
    font-weight: 600;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-size: 1.1rem;
    color: #4a5fa8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    font-weight: normal;
}

.info-item a {
    color: #4a5fa8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: normal;
}

.info-item a:hover {
    color: #3a4f8f;
    text-decoration: underline;
}

/* Contact map: responsive, capped height */
.contact-map-wrapper {
  margin-top: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.contact-map-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 200px;   /* <-- main control: lower this to shrink further */
  display: block;
  border: 0;
}

/* Slightly taller on wide screens (optional) */
@media (min-width: 1024px) {
  .contact-map-iframe { max-height: 260px; }
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-weight: normal;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a5fa8;
    box-shadow: 0 0 0 3px rgba(74, 95, 168, 0.1);
}

.submit-button {
    background-color: #4a5fa8;
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 0 15px rgba(74, 95, 168, 0.4);
    position: relative;
}

.submit-button:hover {
    background-color: #3a4f8f;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 25px rgba(74, 95, 168, 0.8), 0 0 50px rgba(74, 95, 168, 0.4), 0 6px 20px rgba(0, 0, 0, 0.2);
    animation: glowPulse 1.5s ease-in-out infinite;
}

.footer {
    background-color: #4a5fa8;
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-weight: normal;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: normal;
}

.footer-links a:hover {
    color: #ffff99;
    transform: scale(1.1);
}

.footer-login-link {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 153, 0.1);
    border: 1px solid #ffff99;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-login-link:hover {
    background-color: #ffff99;
    color: #4a5fa8 !important;
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0.5rem 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #4a5fa8;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: 99;
    }

    .nav-menu.active li { width: 100%; }

    .nav-menu.active .nav-link {
        display: block;
        padding: 0.9rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .hamburger {
        display: flex;
    }

    /* nice-to-have: animate hamburger to an X when open */
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


    .hero h1 {
        font-size: 2rem;
        font-weight: 600;
    }

    .hero p {
        font-size: 1.1rem;
        font-weight: normal;
    }

    .features h2 {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .page-content h1 {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .services-detail,
    .references-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-auth { margin-left: 0; width: 100%; }

    .nav-menu.active .nav-link.nav-login,
    .nav-menu.active .nav-link.nav-admin,
    .nav-menu.active .nav-link.nav-logout {
        border: none;
        border-radius: 0;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo-img {
        display: block;
        height: 50px;
        width: auto;
        max-width: 250px;
    }

    .logo-text {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .hero {
        padding: 60px 1rem;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .hero p {
        font-size: 0.95rem;
        font-weight: normal;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .container {
        padding: 0 1rem;
    }

    .features {
        padding: 40px 1rem;
    }

    .features h2 {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .page-content {
        padding: 40px 1rem;
    }

    .page-content h1 {
        font-size: 1.3rem;
        font-weight: 600;
    }
}

/* ==================== PARALLAX ANIMATION STYLES ==================== */

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.parallax-layer-1 {
    animation-delay: 0s;
    background-attachment: fixed;
    animation: parallax-zoom 30s ease-in-out infinite;
}

.parallax-layer-2 {
    animation-delay: 2s;
    opacity: 0.1;
    animation: parallax-float 25s ease-in-out infinite;
}

.parallax-layer-3 {
    animation-delay: 4s;
    opacity: 0.08;
    animation: parallax-float 20s ease-in-out infinite;
}

@keyframes parallax-float {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-20px) scale(1.02);
        opacity: 0.18;
    }
    50% {
        transform: translateY(-40px) scale(1.04);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-20px) scale(1.02);
        opacity: 0.12;
    }
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.15;
    }
}

@keyframes parallax-zoom {
    0% {
        transform: scale(1) translateX(0);
    }
    50% {
        transform: scale(1.05) translateX(10px);
    }
    100% {
        transform: scale(1) translateX(0);
    }
}

/* Responsive parallax */
@media (max-width: 768px) {
    .parallax-layer {
        opacity: 0.08;
    }

    .parallax-layer-2 {
        opacity: 0.05;
    }
}

/* ==================== PAGE HEADER STYLES ==================== */

.page-header {
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;     /* was: fixed */
    background-repeat: no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-header-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
}

.page-header h1 {
    font-size: 3rem;
    color: #ffffff;
    font-weight: 600;
    font-family: 'Futura', 'Trebuchet MS', 'Arial', sans-serif;
    margin: 0;
}

/* Ultra-wide monitors (1920px+) - Showcase the image with taller header */
@media (min-width: 1920px) {
    .page-header {
        height: 550px;
    }

    .page-header h1 {
        font-size: 3.5rem;
    }

    .page-header-overlay {
        padding: 50px;
    }
}

/* Large desktops (1200px - 1920px) - Balanced moderate increase */
@media (min-width: 1200px) and (max-width: 1919px) {
    .page-header {
        height: 480px;
    }

    .page-header h1 {
        font-size: 3.2rem;
    }

    .page-header-overlay {
        padding: 45px;
    }
}

/* Standard desktops (768px - 1200px) - Keep current or slight adjustment */
@media (min-width: 768px) and (max-width: 1199px) {
    .page-header {
        height: 420px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header-overlay {
        padding: 40px;
    }
}

/* Tablets (480px - 768px) - Keep good mobile-friendly size */
@media (min-width: 480px) and (max-width: 767px) {
    .page-header {
        height: 320px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header-overlay {
        padding: 30px;
    }
}

/* Small phones (< 480px) - Optimize for tiny screens */
@media (max-width: 479px) {
    .page-header {
        height: 260px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header-overlay {
        padding: 20px;
    }
}

/* Background images for service items */
.service-elektrikal {
    background-image: url('images/elektrikal.jpg');
}

.service-rozvadzac {
    background-image: url('images/rozvadzac.jpg');
}

.service-solar {
    background-image: url('images/solar.jpg');
}

/* Background images for reference cards */
.ref-bratislava {
    background-image: url('images/elektrikal.jpg');
}

.ref-kosice {
    background-image: url('images/rozvadzac.jpg');
}

.ref-bystrica {
    background-image: url('images/solar.jpg');
}

.ref-zilina {
    background-image: url('images/elektrikal.jpg');
}


/* ==================== GALLERY STYLES ==================== */

.gallery {
    background-color: var(--bg-light);
    padding: 60px 2rem;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #4a5fa8;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 250px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(74, 95, 168, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay p {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery h2 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery {
        padding: 40px 1rem;
    }

    .gallery h2 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .gallery-item {
        height: 150px;
    }

    .gallery-overlay p {
        font-size: 1rem;
    }
}


/* Logo text styling - hide it */
.logo-text {
    display: none;
}

/* Service item hover magnification */
.service-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(74, 95, 168, 0.25);
}

/* Solar benefits and services cards styling */
.solar-info {
    max-width: 1000px;
    margin: 0 auto;
}

.solar-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(74, 95, 168, 0.05) 0%, rgba(74, 95, 168, 0.02) 100%);
    border-radius: 10px;
    border-left: 4px solid #4a5fa8;
}

.solar-intro h2 {
    font-size: 2rem;
    color: #4a5fa8;
    margin-bottom: 1rem;
    font-weight: 600;
}

.solar-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.solar-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.solar-section h3 {
    font-size: 1.5rem;
    color: #4a5fa8;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solar-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.solar-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.solar-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.solar-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.solar-card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.solar-card-text {
    flex-grow: 1;
}

.solar-card-text p {
    color: var(--text-light);
    font-weight: normal;
    line-height: 1.6;
}

.solar-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.solar-cta-button {
    display: inline-block;
    background-color: #4a5fa8;
    color: var(--white);
    padding: 15px 50px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(74, 95, 168, 0.5), var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.solar-cta-button:hover {
    background-color: #3a4f8f;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(74, 95, 168, 0.8), 0 0 60px rgba(74, 95, 168, 0.4), 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: glowPulse 1.5s ease-in-out infinite;
}


@media (max-width: 768px) {
    .solar-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==================== CAROUSEL AND ABOUT US ANIMATIONS ==================== */

.about-us {
    background-color: var(--bg-light);
    padding: 60px 2rem;
}

.about-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #4a5fa8;
    font-weight: 600;
}

.about-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.about-us-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-us-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-us-stats .stat {
    text-align: center;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-top: 3px solid #4a5fa8;
}

.about-us-stats .stat h4 {
    font-size: 2rem;
    color: #4a5fa8;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.about-us-stats .stat p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.carousel-container {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide.fade-in-slide {
    display: block;
    animation: fadeInSlide 0.8s ease-in-out forwards;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes parallaxSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.about-us-cta {
    text-align: center;
    margin-top: 2rem;
}

/* About section content styling */
.about-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.about-intro h2 {
    font-size: 2.5rem;
    color: #4a5fa8;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
    border-radius: 10px;
    border-left: 4px solid #4a5fa8;
    animation: slideInFromBottom 0.6s ease-out;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #4a5fa8;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1rem;
}

.about-history {
    margin-bottom: 3rem;
}

.about-history h2 {
    font-size: 2rem;
    color: #4a5fa8;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.history-timeline {
    display: grid;
    gap: 1.5rem;
}

.timeline-item {
    padding: 1.5rem;
    background-color: #f9fafb;
    border-left: 4px solid #4a5fa8;
    border-radius: 5px;
    transition: all 0.3s ease;
    animation: slideInFromLeft 0.6s ease-out;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    background-color: #ffffff;
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a5fa8;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.about-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.mission-item {
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 10px;
    border-top: 4px solid #4a5fa8;
    transition: all 0.3s ease;
    animation: slideInFromRight 0.6s ease-out;
}

.mission-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: #ffffff;
}

.mission-item h3 {
    font-size: 1.3rem;
    color: #4a5fa8;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mission-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.about-team {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.about-team h2 {
    font-size: 2rem;
    color: #4a5fa8;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-team > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.team-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.team-role {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.team-role:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.team-role h4 {
    color: #4a5fa8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-role p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.why-choose-us {
    margin-bottom: 3rem;
}

.why-choose-us h2 {
    font-size: 2rem;
    color: #4a5fa8;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.reason-card {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #4a5fa8;
    animation: parallaxSlide 0.6s ease-out;
}

.reason-card:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.reason-icon {
    font-size: 2rem;
    color: #4a5fa8;
    margin-bottom: 1rem;
    font-weight: 700;
}

.reason-card h4 {
    color: #4a5fa8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.reason-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.achievements {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.achievements h2 {
    font-size: 2rem;
    color: #4a5fa8;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-item {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4a5fa8;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.achievement-item h4 {
    color: #4a5fa8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.achievement-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.about-cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.about-cta h2 {
    font-size: 1.8rem;
    color: #4a5fa8;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-cta p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-us-content {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        height: 300px;
    }

    .company-stats {
        grid-template-columns: 1fr;
    }

    .about-us-stats {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .achievements-list {
        grid-template-columns: 1fr;
    }

    .team-roles {
        grid-template-columns: 1fr;
    }

    .mission-item {
        animation: fadeInSlide 0.6s ease-out;
    }
}

@media (max-width: 480px) {
    .about-us h2 {
        font-size: 1.8rem;
    }

    .about-intro h2 {
        font-size: 1.8rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .carousel-container {
        height: 250px;
    }

    .reason-card,
    .mission-item {
        padding: 1.5rem;
    }

    .about-us-text p {
        font-size: 1rem;
    }
}

/* ==================== LOOPING IMAGE CAROUSEL ==================== */

.image-carousel-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
    position: relative;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
}

.carousel-dot:hover {
    background-color: #cccccc;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .image-carousel {
        height: 350px;
    }

    .carousel-caption {
        font-size: 1rem;
        padding: 10px 20px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .image-carousel {
        height: 250px;
    }

    .carousel-caption {
        font-size: 0.9rem;
        padding: 8px 15px;
        margin-bottom: 10px;
    }

    .carousel-controls {
        bottom: 10px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* ==================== BUTTON GLOW ANIMATIONS ==================== */

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 30px rgba(74, 95, 168, 0.8), 0 0 60px rgba(74, 95, 168, 0.4), 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(74, 95, 168, 1), 0 0 80px rgba(74, 95, 168, 0.6), 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 30px rgba(74, 95, 168, 0.8), 0 0 60px rgba(74, 95, 168, 0.4), 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}

/* Button active/focus states */
.cta-button:active,
.submit-button:active,
.solar-cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

.cta-button:focus,
.submit-button:focus,
.solar-cta-button:focus {
    outline: none;
    box-shadow: 0 0 40px rgba(74, 95, 168, 1), 0 0 80px rgba(74, 95, 168, 0.6);
}

/* Adjust admin-container top padding when navbar is present */
body > .admin-container {
    padding-top: 1rem;
}


/* ==================== FORM FEEDBACK MESSAGES ==================== */

.form-feedback {
    display: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid transparent;
}

.form-feedback.show {
    display: flex;
}

.form-feedback.visible {
    opacity: 1;
}

/* Success message styling */
.form-feedback-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.form-feedback-success .feedback-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

/* Error message styling */
.form-feedback-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #f5365c;
}

.form-feedback-error .feedback-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f5365c;
}

.feedback-message {
    flex: 1;
    line-height: 1.5;
}

/* Loading state for submit button */
.submit-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .form-feedback {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .form-feedback .feedback-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .page-header {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;   /* ← keep this */
    }
    .service-item,
    .reference-card,
    .parallax-layer-1 {
        background-attachment: scroll;
    }
}


/* ==================== HEADER AUTH LINKS (desktop) ==================== */
/* 13"–14" laptops: tighten the navbar so it fits one line */
@media (min-width: 769px) and (max-width: 1280px) {
    .nav-menu {
        gap: 0.9rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .nav-link.nav-login,
    .nav-link.nav-admin,
    .nav-link.nav-logout {
        padding: 0.3rem 0.6rem;
        font-size: 0.82rem;
    }

    .logo-img {
        height: 36px;
    }
}

/* Don't enlarge/glow auth pills on hover/active — keep them tidy */
@media (min-width: 769px) {
    .nav-link.nav-login.active,
    .nav-link.nav-admin.active,
    .nav-link.nav-logout.active,
    .nav-link.nav-login:hover,
    .nav-link.nav-admin:hover,
    .nav-link.nav-logout:hover {
        transform: none;
        text-shadow: none;
        filter: none;
        color: #ffffff;
    }
}

@media (min-width: 769px) {
    .nav-auth {
        margin-left: 0.25rem;
    }

    .nav-link.nav-login,
    .nav-link.nav-admin,
    .nav-link.nav-logout {
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        font-size: 0.88rem;
        border: 1px solid rgba(255, 255, 255, 0.4);
        transition: background 0.25s ease, transform 0.25s ease;
        white-space: nowrap;
    }

    .nav-link.nav-login:hover,
    .nav-link.nav-admin:hover,
    .nav-link.nav-logout:hover {
        background: rgba(255, 255, 255, 0.18);
        transform: translateY(-1px);
    }

    .nav-link.nav-logout {
        border-color: rgba(255, 200, 200, 0.55);
    }
}


/* ==================== LOGOUT TOAST ==================== */
.logout-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-weight: 500;
    transition: opacity 0.4s ease;
}


/* ==================== TITLE / HEADING SHADOWS ==================== */

/* Default shadow for all headings on light backgrounds */
h1, h2, h3, h4, h5, h6 {
    text-shadow:
        0 2px 6px  rgba(0, 0, 0, 0.18),
        0 6px 20px rgba(0, 0, 0, 0.10);
}

/* Hero (homepage) — bigger, softer halo so it feels cinematic */
.hero h1 {
    text-shadow:
        0 2px 8px  rgba(0, 0, 0, 0.45),
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 60px   rgba(74, 95, 168, 0.40);   /* brand-blue glow */
}

.hero p {
    text-shadow:
        0 2px 6px  rgba(0, 0, 0, 0.45),
        0 4px 16px rgba(0, 0, 0, 0.30);
}

/* Page headers (O Firme, Čo Robíme, etc.) — strong shadow for legibility on photos */
.page-header h1 {
    text-shadow:
        0 3px 8px  rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 0 40px   rgba(0, 0, 0, 0.25);
}

/* Section titles inside content (Naše Služby, Naša Galéria, etc.) */
.features h2,
.about-us h2,
.gallery h2,
.page-content h1,
.page-content h2 {
    text-shadow:
        0 2px 4px  rgba(74, 95, 168, 0.18),
        0 6px 18px rgba(74, 95, 168, 0.12);
}

/* Card titles — subtler, since cards are small */
.feature-card h3,
.service-item h3,
.reference-card h3,
.about-us-stats .stat h4 {
    text-shadow:
        0 1px 3px  rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Slight lift on hover for hero/page-header titles */
.hero h1,
.page-header h1 {
    transition: text-shadow 0.4s ease, transform 0.4s ease;
}

.hero h1:hover,
.page-header h1:hover {
    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.55),
        0 12px 32px rgba(0, 0, 0, 0.45),
        0 0 80px   rgba(255, 255, 153, 0.35);  /* brand-yellow halo */
}

/* Don't shadow nav links — they already have their own glow */
.nav-link,
.logo-text {
    text-shadow: none;
}

/* ==================== GALLERIES LIST PAGE ==================== */
.galleries-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gallery-card-body { padding: 1rem 1.25rem; }
.gallery-card-body h3 { margin: 0 0 .25rem; }
.gallery-card-body small { color: #6b7280; }

.gallery-back { margin: 1rem 0; }
.gallery-desc { margin-bottom: 2rem; color: #4b5563; }

/* ==================== ADMIN UI ==================== */
.admin-form { display: grid; gap: 1rem; max-width: 640px; }
.admin-form label { display: block; font-weight: 500; }
.admin-form input[type=text],
.admin-form textarea,
.admin-form select,
.admin-form input[type=file] {
    width: 100%; padding: .6rem; border: 1px solid #d1d5db; border-radius: 6px; margin-top: .25rem;
}
.admin-flash { background:#d1fae5; color:#065f46; padding:.75rem 1rem; border-radius:6px; margin:1rem 0; }
.admin-list { list-style: none; padding: 0; }
.admin-list li { padding: .5rem 0; border-bottom: 1px solid #e5e7eb; }
.link-danger {
    background: none; border: none; color: #b91c1c; cursor: pointer; padding: 0 .5rem;
}
.link-danger:hover { text-decoration: underline; }
.admin-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.admin-thumb {
    background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:.5rem;
    text-align: center;
}
.admin-thumb img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
.admin-thumb small { display:block; font-size:.75rem; color:#6b7280; word-break: break-all; margin: .25rem 0; }

/* PhotoSwipe caption */
.pswp__caption,
.pswp .pswp__custom-caption {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: .5rem 1rem;
    border-radius: 6px;
    font-size: .95rem;
    max-width: 90vw;
    text-align: center;
}

/* Make the gallery thumbs feel clickable */
.gallery-item { cursor: zoom-in; position: relative; }
.gallery-item:hover img { transform: scale(1.03); transition: transform .35s ease; }
.gallery-item img { transition: transform .35s ease; }

/* ==================== ADMIN / SECONDARY BAR ==================== */
.admin-bar-label {
    opacity: 0.9;
    white-space: nowrap;
}

.admin-bar-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-bar-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px) {
    .admin-bar {
        position: static;     /* don't compete with the hamburger drawer */
    }
    .admin-bar-inner {
        padding: 0.5rem 1rem;
        justify-content: center;
    }
    .admin-bar-label {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 0.25rem;
    }
}

/* ==================== NAVBAR ADMIN/LOGIN INLINE ==================== */
.nav-sep {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 .25rem;
    list-style: none;
}

.nav-link.nav-secondary {
    opacity: 0.85;
}

.nav-link.nav-secondary:hover {
    opacity: 1;
}

/* On mobile drawer, hide the visual divider — items just stack */
@media (max-width: 768px) {
    .nav-sep {
        display: none;
    }
}

/* ==================== URGENT SITE BANNER ==================== */
.site-banner {
    position: relative;
    z-index: 200;             /* above sticky navbar */
    color: #fff;
    transition: opacity .25s ease;
}

.site-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .65rem 2.5rem .65rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-banner-text { flex: 1; line-height: 1.4; }

.site-banner-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

.site-banner-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .25rem;
    opacity: .85;
}
.site-banner-close:hover { opacity: 1; }

/* Severity colors */
.site-banner-info     { background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%); }
.site-banner-success  { background: linear-gradient(90deg, #16a34a 0%, #166534 100%); }
.site-banner-warning  { background: linear-gradient(90deg, #f59e0b 0%, #b45309 100%); color: #1f2937; }
.site-banner-warning .site-banner-link,
.site-banner-warning .site-banner-close { color: #1f2937; }
.site-banner-danger   { background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%); }

@media (max-width: 600px) {
    .site-banner-inner { padding: .55rem 1rem; }
    .site-banner-close { position: absolute; top: .25rem; right: .5rem; }
}

/* ==================== GALLERY HEADER MOSAIC ==================== */
.page-header-mosaic {
    background: #2a3a6e;
    overflow: hidden;
    position: relative;
}

.mosaic-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    z-index: 0;
}

.mosaic-tile {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 6s ease-in-out;
    animation: mosaic-pan 18s ease-in-out infinite alternate;
}

.mosaic-tile-0 { animation-delay: 0s;   }
.mosaic-tile-1 { animation-delay: 1.5s; }
.mosaic-tile-2 { animation-delay: 3s;   }
.mosaic-tile-3 { animation-delay: 4.5s; }
.mosaic-tile-4 { animation-delay: 6s;   }

@keyframes mosaic-pan {
    0%   { transform: scale(1.05) translateY(0); }
    100% { transform: scale(1.12) translateY(-8px); }
}

/* Dark gradient veil so the title stays readable on any photo */
.mosaic-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%),
        radial-gradient(ellipse at center, rgba(74,95,168,0.15) 0%, rgba(58,77,143,0.55) 100%);
}

.page-header-mosaic .page-header-overlay {
    position: relative;
    z-index: 2;
}

/* On narrow screens, drop to 3 tiles (5 looks too cramped on phones) */
@media (max-width: 640px) {
    .mosaic-bg { grid-template-columns: repeat(3, 1fr); }
    .mosaic-tile-3, .mosaic-tile-4 { display: none; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .mosaic-tile { animation: none; transform: scale(1.05); }
}


/* ================================================================
   E-SHOP STYLES
   ================================================================ */

/* ── Topbar cart & user ───────────────────────────────────────── */
.topbar-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    vertical-align: middle;
    margin-left: 2px;
}
.topbar-user {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0 4px;
}

/* ── Floating cart button ─────────────────────────────────────── */
.floating-cart-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, background 0.2s;
}
.floating-cart-btn:hover { background: #3a4f98; transform: translateY(-2px); }
.floating-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    padding: 0 5px;
}

/* ── Shop hero ────────────────────────────────────────────────── */
.eshop-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d3e7a 100%);
    color: #fff;
    padding: 56px 0 40px;
    text-align: center;
}
.eshop-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}
.eshop-hero-sub {
    font-size: 1.05rem;
    opacity: 0.88;
    max-width: 600px;
    margin: 0 auto 16px;
}
.eshop-cart-link {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.eshop-cart-link:hover { background: rgba(255,255,255,0.28); }

/* ── Category filters ─────────────────────────────────────────── */
.shop-filters-section {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.shop-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-btn {
    padding: 7px 20px;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(74,95,168,0.25);
}

/* ── Info / alert banners ─────────────────────────────────────── */
.shop-info-banner {
    background: #eef1fb;
    border: 1px solid #c5cff0;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #2d3e7a;
}
.shop-info-banner a { color: var(--primary-color); font-weight: 600; }
.shop-alert { border-radius: 8px; padding: 12px 18px; margin-bottom: 24px; font-size: 0.9rem; }
.shop-alert-error { background: #fff0f0; border: 1px solid #f5c6c6; color: #b91c1c; }

/* ── Products grid ────────────────────────────────────────────── */
.shop-section { padding-top: 36px; padding-bottom: 60px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

/* ── Product card ─────────────────────────────────────────────── */
.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.product-badge-bestseller { background: #fee2e2; color: #b91c1c; }
.product-badge-akcia       { background: #fef9c3; color: #92400e; }
.product-badge-nove        { background: #d1fae5; color: #065f46; }

.product-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #eef1fb;
    border-radius: 50%;
    margin-bottom: 4px;
}
.product-icon { font-size: 2.2rem; line-height: 1; }
.product-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    font-weight: 600;
}
.product-name { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin: 0; line-height: 1.35; }
.product-desc { font-size: 0.875rem; color: var(--text-light); line-height: 1.5; flex: 1; }
.product-pricing { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.product-price { font-size: 1.35rem; font-weight: 700; color: var(--primary-color); }
.product-unit  { font-size: 0.8rem; color: var(--text-light); }

.add-to-cart-form { margin-top: 8px; }
.atc-row { display: flex; gap: 8px; align-items: center; }
.qty-input {
    width: 62px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-dark);
    background: #fafafa;
}
.qty-input:focus { outline: none; border-color: var(--primary-color); background: #fff; }
.add-to-cart-btn {
    flex: 1;
    padding: 9px 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
    white-space: nowrap;
}
.add-to-cart-btn:hover  { background: #3a4f98; transform: translateY(-1px); }
.add-to-cart-btn:active { transform: translateY(0); }

.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;
}

/* ── Cart page ────────────────────────────────────────────────── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
    margin-top: 8px;
}
.cart-empty { text-align: center; padding: 72px 24px; max-width: 480px; margin: 0 auto; }
.cart-empty-icon { font-size: 4rem; margin-bottom: 16px; display: block; }
.cart-empty h2 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 10px; }
.cart-empty p  { color: var(--text-light); margin-bottom: 24px; }

.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cart-table th {
    text-align: left; padding: 10px 12px;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--text-light); font-weight: 600;
}
.cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.cart-row:last-child td { border-bottom: none; }

.cart-product-cell { display: flex; align-items: center; gap: 12px; }
.cart-product-icon { font-size: 1.6rem; }
.cart-product-name { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.cart-product-cat  { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }

.qty-form { display: inline-block; }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-update-btn {
    width: 30px; height: 30px;
    background: #eef1fb; border: 1px solid #c5cff0;
    border-radius: 6px; cursor: pointer;
    font-size: 1rem; color: var(--primary-color); font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.qty-update-btn:hover { background: #d8dff5; }

.remove-btn {
    width: 30px; height: 30px;
    background: #fff0f0; border: 1px solid #f5c6c6;
    border-radius: 6px; cursor: pointer;
    font-size: 0.85rem; color: #b91c1c; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.remove-btn:hover { background: #fee2e2; }

.cart-summary {
    background: #fff; border-radius: 12px; padding: 24px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow);
    position: sticky; top: 20px;
}
.cart-summary-title {
    font-size: 1.1rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color);
}
.cart-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 0.95rem; color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}
.cart-grand-total {
    font-size: 1.1rem; font-weight: 700; color: var(--primary-color);
    border-bottom: none; margin-top: 8px; padding-top: 8px;
    border-top: 2px solid var(--border-color);
}
.shipping-free { color: #065f46; font-weight: 600; }
.shipping-hint { font-size: 0.8rem; color: var(--text-light); margin: 6px 0 12px; line-height: 1.4; }

.cart-checkout-btn {
    display: block; text-align: center; text-decoration: none;
    margin-top: 20px; padding: 12px;
    background: var(--primary-color); color: #fff;
    border-radius: 8px; font-weight: 600; font-size: 1rem;
    transition: background 0.18s; border: none; cursor: pointer; width: 100%;
}
.cart-checkout-btn:hover { background: #3a4f98; }
.login-hint { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 8px; }
.cart-continue-link { display: block; text-align: center; margin-top: 14px; font-size: 0.88rem; color: var(--text-light); text-decoration: none; }
.cart-continue-link:hover { color: var(--primary-color); }

/* ── Checkout page ────────────────────────────────────────────── */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 36px;
    align-items: start;
    margin-top: 8px;
}
.checkout-section-title {
    font-size: 1.15rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color);
}
.checkout-summary {
    background: #fff; border-radius: 12px; padding: 28px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow);
    position: sticky; top: 20px;
}
.checkout-item-list { list-style: none; margin-bottom: 20px; }
.checkout-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px 12px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-icon  { font-size: 1.4rem; }
.checkout-item-name  { color: var(--text-dark); font-weight: 500; }
.checkout-item-qty   { color: var(--text-light); white-space: nowrap; font-size: 0.85rem; }
.checkout-item-price { font-weight: 600; color: var(--primary-color); white-space: nowrap; }
.checkout-totals     { margin-top: 16px; }
.checkout-total-row  {
    display: flex; justify-content: space-between;
    padding: 7px 0; font-size: 0.95rem; color: var(--text-dark); border-bottom: 1px solid #f0f0f0;
}
.checkout-grand-total {
    font-size: 1.1rem; font-weight: 700; color: var(--primary-color);
    border-bottom: none; border-top: 2px solid var(--border-color);
    margin-top: 4px; padding-top: 10px;
}
.cart-back-link { display: inline-block; margin-top: 16px; font-size: 0.88rem; color: var(--text-light); text-decoration: none; }
.cart-back-link:hover { color: var(--primary-color); }

.order-form-wrap {
    background: #fff; border-radius: 12px; padding: 28px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow);
}
.order-form .form-row { display: grid; grid-template-columns: 1fr 120px; gap: 16px; }
.input-error   { border-color: #e53e3e !important; background: #fff5f5 !important; }
.input-readonly { background: #f5f5f5 !important; color: var(--text-light) !important; cursor: not-allowed; }
.req      { color: #e53e3e; margin-left: 2px; }
.optional { color: var(--text-light); font-size: 0.8rem; font-weight: normal; }
.checkout-submit-btn { width: 100%; padding: 14px; font-size: 1rem; margin-top: 8px; cursor: pointer; }
.checkout-legal { font-size: 0.78rem; color: var(--text-light); margin-top: 12px; text-align: center; line-height: 1.4; }

/* ── Thank-you page ───────────────────────────────────────────── */
.thankyou-box {
    max-width: 560px; margin: 48px auto; text-align: center;
    background: #fff; border-radius: 16px; padding: 48px 36px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-color);
}
.thankyou-icon  { font-size: 3.5rem; margin-bottom: 16px; display: block; }
.thankyou-box h2 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 16px; }
.thankyou-order-id { font-size: 1rem; color: var(--text-dark); margin-bottom: 8px; }
.thankyou-email { font-size: 0.95rem; color: var(--text-light); margin-bottom: 16px; }
.thankyou-msg   { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 28px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; order: 2; }
    .order-form-wrap  { order: 1; }
}
@media (max-width: 768px) {
    .cart-layout     { grid-template-columns: 1fr; }
    .cart-summary    { position: static; }
    .products-grid   { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .cart-table th.col-price, .cart-table td.col-price { display: none; }
    .floating-cart-btn { bottom: 16px; right: 14px; padding: 10px 16px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .eshop-hero    { padding: 36px 0 28px; }
    .thankyou-box  { padding: 32px 20px; }
    .cart-table th.col-subtotal, .cart-table td.col-subtotal { display: none; }
    .checkout-grid { gap: 20px; }
    .order-form .form-row { grid-template-columns: 1fr; }
}

/* ── Product icon tints per category ─────────────────────────── */
.product-card[data-cat="Svietidlá"]        .product-icon-wrap { background: #fefce8; }
.product-card[data-cat="Elektroinštalácia"] .product-icon-wrap { background: #f0fdf4; }
.product-card[data-cat="Káble"]             .product-icon-wrap { background: #fff7ed; }
.product-card[data-cat="Batérie"]           .product-icon-wrap { background: #fef2f2; }

/* ── Product card image variant ──────────────────────────────── */
.product-img-wrap {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
    background: #f3f4f6;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.product-card:hover .product-img {
    transform: scale(1.04);
}
