/*
Theme Name: ELMONT PLUS spol. s r.o. Theme
Author: Marlotech s.r.o
Description: Moderná priemyselná téma pre elektroinštalačnú firmu.
Version: 1.0.0
Text Domain: elmont-plus-theme
*/

:root {
  --brand-primary: #ffcc01;
  --brand-orange: var(--brand-primary);
  --brand-dark: #050505;
  --brand-light: #f4f4f4;
}

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

ul,
ol {
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--brand-dark);
  color: #e5e7eb;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Global Responsive Fixes */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

a {
  text-decoration: none;
  color: var(--brand-orange);
}

@keyframes elmontReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    text-shadow: 0 0 0 rgba(220, 38, 38, 0);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
  }
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  animation: elmontReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.hero-fade {
  display: inline-block;
  opacity: 0;
  animation: titleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-e {
  animation-delay: 0.1s;
}
.delay-l {
  animation-delay: 0.25s;
}
.delay-m {
  animation-delay: 0.4s;
}
.delay-o {
  animation-delay: 0.55s;
}
.delay-n {
  animation-delay: 0.7s;
}
.delay-t {
  animation-delay: 0.85s;
}

.delay-plus {
  animation-delay: 1.1s;
}
.delay-sro {
  animation-delay: 1.3s;
}

/* Kontakt Page Styles */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}

.contact-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
}

.icon-wrapper {
  transition:
    background-color 0.4s ease,
    transform 0.4s ease;
}
.contact-card:hover .icon-wrapper {
  background-color: rgba(220, 38, 38, 0.15);
  transform: scale(1.1);
}

.map-container iframe {
  filter: invert(90%) hue-rotate(180deg) grayscale(100%) contrast(100%);
  transition: filter 0.5s ease;
}
.map-container:hover iframe {
  filter: invert(90%) hue-rotate(180deg) grayscale(50%) contrast(110%);
}

/* Certifikáty Page Styles */
.cert-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.cert-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.cert-delay-1 {
  transition-delay: 0.08s;
}
.cert-delay-2 {
  transition-delay: 0.18s;
}
.cert-delay-3 {
  transition-delay: 0.28s;
}
.cert-delay-4 {
  transition-delay: 0.38s;
}

.cert-frame {
  position: relative;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
}
.cert-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(234, 88, 12, 0.3),
    0 0 40px rgba(234, 88, 12, 0.08);
}
.cert-inner-border {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}
.cert-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 3;
  pointer-events: none;
}
.cert-corner::before,
.cert-corner::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, #b8860b, #daa520, #b8860b);
}
.cert-corner-tl {
  top: 12px;
  left: 12px;
}
.cert-corner-tl::before {
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
}
.cert-corner-tl::after {
  top: 0;
  left: 0;
  width: 2px;
  height: 28px;
}
.cert-corner-tr {
  top: 12px;
  right: 12px;
}
.cert-corner-tr::before {
  top: 0;
  right: 0;
  width: 28px;
  height: 2px;
}
.cert-corner-tr::after {
  top: 0;
  right: 0;
  width: 2px;
  height: 28px;
}
.cert-corner-bl {
  bottom: 12px;
  left: 12px;
}
.cert-corner-bl::before {
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
}
.cert-corner-bl::after {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 28px;
}
.cert-corner-br {
  bottom: 12px;
  right: 12px;
}
.cert-corner-br::before {
  bottom: 0;
  right: 0;
  width: 28px;
  height: 2px;
}
.cert-corner-br::after {
  bottom: 0;
  right: 0;
  width: 2px;
  height: 28px;
}

.cert-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  z-index: 4;
  pointer-events: none;
}
.cert-frame:hover .cert-shine {
  transform: translateX(100%);
}

.cert-zoom-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 5;
}
.cert-frame:hover .cert-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.4s ease;
}
.lightbox-overlay.active {
  background: rgba(0, 0, 0, 0.92);
  pointer-events: all;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.85);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
  object-fit: contain;
}
.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
  opacity: 1;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    background 0.2s ease;
}
.lightbox-overlay.active .lightbox-close,
.lightbox-overlay.active .lightbox-nav {
  opacity: 1;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.15);
}
.lightbox-close {
  top: 24px;
  right: 24px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: 24px;
}
.lightbox-next {
  right: 24px;
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
}
.lightbox-overlay.active .lightbox-caption {
  opacity: 1;
}

/* Modern Form Elements */
.modern-input {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--border-charcoal);
  border-radius: 12px;
  outline: none;
  font-size: 0.95rem;
  background-color: var(--bg-deep-charcoal);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.modern-input::placeholder {
  color: #555555;
  font-size: 0.85rem;
}
.modern-input:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-card-charcoal);
  box-shadow:
    0 0 0 4px rgba(0, 123, 255, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  letter-spacing: 0.025em;
  transition: color 0.3s ease;
}
.modern-input:focus + .modern-label,
.modern-label:has(+ .modern-input:focus) {
  color: var(--color-primary);
}
.modern-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem top 50%;
  background-size: 0.65rem auto;
  padding-right: 3rem;
}
.modern-input option {
  background-color: #0f172a;
  color: #ffffff;
  font-weight: 500;
  padding: 0.5rem;
}

/* Additional Shared Animations */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-4 {
  transition-delay: 0.26s;
}
.stagger-5 {
  transition-delay: 0.33s;
}
.stagger-6 {
  transition-delay: 0.4s;
}
.stagger-7 {
  transition-delay: 0.47s;
}
.stagger-8 {
  transition-delay: 0.54s;
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(234, 88, 12, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.6);
  }
}
.glow-icon {
  animation: glow-pulse 3s ease-in-out infinite;
}

.service-card {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 60px rgba(234, 88, 12, 0.15),
    0 0 1px rgba(234, 88, 12, 0.3);
}

@keyframes spin-slow {
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(405deg);
  }
}
.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}
