/* assets/css/shared.css */
:root {
    --bg-color: #121212; --section-bg: #1e1e1e; --text-color: #e0e0e0;
    --text-muted: #a0a0a0; --primary-color: #FFD700; --accent-color: #ff9800;
    --border-color: #333; --white: #ffffff; --shadow: 0 4px 6px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}
[data-theme="light"] {
    --bg-color: #f4f7f6; --section-bg: #ffffff; --text-color: #333333;
    --text-muted: #666666; --primary-color: #FFD700; --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; overflow-x: hidden; transition: var(--transition); }
h1, h2, h3, h4 { color: var(--white); margin-bottom: 1rem; font-weight: 700; }
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] h4 { color: #000; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn, button[type="submit"], .button { display: inline-block; padding: 12px 24px; background-color: var(--primary-color); color: #000 !important; border-radius: 4px; font-weight: bold; border: none; cursor: pointer; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.7), inset 0 -4px 0 rgba(0,0,0,0.25); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.btn:hover, button[type="submit"]:hover, .button:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,0.9), inset 0 -4px 0 rgba(0,0,0,0.25); opacity: 0.95; }
.btn:active, button[type="submit"]:active, .button:active { transform: translateY(2px); box-shadow: 0 2px 5px rgba(0,0,0,0.8), inset 0 -1px 0 rgba(0,0,0,0.25); }
section { padding: 80px 0; border-bottom: 1px solid var(--border-color); }

/* HEADER & LOGO */
header { background-color: var(--section-bg); position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.5); border-bottom: none; }
[data-theme="light"] header { background-color: var(--primary-color); border-bottom: none; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.15); }
.navbar { display: flex; justify-content: space-between; align-items: center; min-height: 80px; padding: 10px 0; }
.logo-wrapper { display: flex; align-items: center; gap: 15px; }
.site-logo { max-height: 60px; width: auto; transition: var(--transition); }
.logo-text { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }

/* START LOGO SWITCH */
.logo-black { display: none; }
.logo-white { display: inline-block; }
[data-theme="light"] .logo-white { display: none; }
[data-theme="light"] .logo-black { display: inline-block; }
[data-theme="light"] .logo-text { color: #000; }
/* END LOGO SWITCH  */

/* MENU */
.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-link { font-weight: 500; font-size: 1.15rem !important; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link.active { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.hamburger { display: none; cursor: pointer; background: none; border: none; font-size: 1.5rem; color: var(--text-color); z-index: 1001; position: relative; }

/* MOBILE MENU OVERLAY */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--section-bg);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: var(--transition);
    z-index: 1002;
    padding: 70px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow-y: auto;
}
.menu-overlay.active { right: 0; }

/* Close X button inside menu */
.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1003;
    padding: 5px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-close-btn:hover { color: var(--primary-color); }

.menu-overlay .nav-link {
    font-size: 1.2rem;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
    display: block;
}

.mobile-action-btns {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-bottom: 10px;
}
.mobile-action-btns .btn {
    width: 100%;
    text-align: center;
}

/* Backdrop for closing menu on outside click */
.menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}
.menu-backdrop.active { display: block; }

.btn-call { background-color: #4CAF50; color: white !important; }
.btn-email { background-color: var(--accent-color); color: white !important; }
.btn-form { background-color: var(--primary-color); color: #000 !important; }

/* GLOBAL COMPONENTS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.service-card { background-color: var(--section-bg); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); transition: var(--transition); }
.service-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: var(--shadow); }
.service-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; margin-top: 40px; }
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
input, select, textarea { width: 100%; padding: 15px; background-color: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-color); border-radius: 4px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-color); }
textarea { grid-column: 1 / -1; resize: vertical; }
main { padding-top: 80px; min-height: calc(100vh - 200px); }

.hero-banner { margin-top: -80px; padding-top: 120px !important; }

/* FOOTER */
footer { background-color: #0a0a0a; color: #888; padding: 50px 0 20px 0; font-size: 0.9rem; border-top: 1px solid #222; }
[data-theme="light"] footer { background-color: #e0e0e0; color: #333; border-top-color: #ccc; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-section h4 { color: var(--white); margin-bottom: 15px; font-size: 1.1rem; }
[data-theme="light"] .footer-section h4 { color: #000; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #222; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
[data-theme="light"] .footer-bottom { border-top-color: #ccc; }
.theme-switch-wrapper { display: flex; align-items: center; gap: 10px; }
.theme-switch { display: inline-block; height: 24px; position: relative; width: 50px; }
.theme-switch input { display:none; }
.slider { background-color: #333; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; border-radius: 34px; }
.slider:before { background-color: var(--white); bottom: 4px; content: ""; height: 16px; left: 4px; position: absolute; transition: .4s; width: 16px; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(26px); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .site-logo { max-height: 55px; }
    .contact-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .navbar { min-height: 60px; padding: 5px 0; }
    .nav-menu { display: none; }
    .hamburger { display: block; }
    .site-logo { max-height: 50px; }
    .logo-text { font-size: 1.2rem; }
    section { padding: 60px 0; }
    .form-group { grid-template-columns: 1fr; }
    main { padding-top: 60px; }
    .hero-banner { margin-top: -60px; padding-top: 100px !important; }
}

.marquee__inner {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__part {
  display: inline-block;
  padding: 0 20px;
  animation: scroll 10s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}


/* FORMSPREE Základný dizajn podľa predlohy */
 /* Základný dizajn */
  /* .dark-form-container { */
    /* background-color: #0d0d0d; */
    /* padding: 20px; */
    /* border-radius: 4px; */
    /* font-family: sans-serif; */
    /* max-width: 600px; */
  /* } */
  /* .dark-form-container input,  */
  /* .dark-form-container select,  */
  /* .dark-form-container textarea { */
    /* width: 100%; */
    /* padding: 12px; */
    /* margin-bottom: 15px; */
    /* background-color: #1a1a1a; */
    /* border: 1px solid #333; */
    /* color: #fff; */
    /* border-radius: 4px; */
    /* box-sizing: border-box; */
  /* } */
  /* .dark-form-container input::placeholder,  */
  /* .dark-form-container textarea::placeholder { */
    /* color: #666; */
  /* } */
  /* .dark-form-container select:focus,  */
  /* .dark-form-container input:focus,  */
  /* .dark-form-container textarea:focus { */
    /* border-color: #FFD700; */
    /* outline: none; */
  /* } */
  /* .dark-form-container button { */
    /* padding: 8px 16px; */
    /* background-color: #fff; */
    /* color: #000; */
    /* border: none; */
    /* cursor: pointer; */
    /* font-weight: bold; */
    /* border-radius: 2px; */
  /* } */
  /* .dark-form-container button:hover { */
    /* background-color: #ccc; */
  /* } */
  /* .dark-form-container button:disabled { */
    /* background-color: #666; */
    /* cursor: not-allowed; */
  /* } */
  /* Predvolene skryté správy */
  /* .form-msg {  */
    /* display: none;  */
    /* margin-bottom: 15px;  */
    /* font-weight: bold;  */
  /* } */

/* Modal Contact Form Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}
.modal-content {
    background: var(--card-bg);
    padding: 25px 25px 15px 25px;
    border-radius: 12px;
    width: 95%;
    max-width: 400px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    max-height: 95vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.modal-close:hover {
    color: var(--primary-color);
}
/* Compact form inside modal */
.modal-content .form-field {
    margin-bottom: 12px;
}
.modal-content input, 
.modal-content textarea {
    padding: 10px 12px !important;
    margin-bottom: 0 !important;
}
.modal-content textarea {
    min-height: 70px !important;
}
.modal-content .buttons {
    margin-top: 15px;
    text-align: center;
}
.modal-content .btn-form {
    width: 100%;
}