/* =============================================
   ElektroPlus — Design System
   ============================================= */

:root {
  /* Barvy */
  --color-primary: #FFC21F;
  --color-primary-hover: #000000;
  --color-secondary: #FF8717;
  --color-dark: #000000;
  --color-text: #383838;
  --color-text-muted: #666666;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-bg-card: #f3f3f3;
  --color-border: #d3d3d3;
  --color-border-light: rgba(0, 0, 0, 0.1);

  /* Fonty */
  --font-display: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-menu: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Typography scale */
  --fs-hero: clamp(2rem, 4vw, 2.875rem);
  --fs-h1: clamp(1.875rem, 3.5vw, 2.875rem);
  --fs-h2: clamp(1.625rem, 2.8vw, 2.1875rem);
  --fs-h3: 1.25rem;
  --fs-h4: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing & layout */
  --container-max: 1180px;
  --container-padding: 24px;
  --section-padding: 80px;
  --section-padding-sm: 50px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 50px;

  /* Effects */
  --transition: 0.3s ease;
  --transition-fast: 0.2s ease;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text-muted);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* =============================================
   Layout helpers
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.section--sm {
  padding: var(--section-padding-sm) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.text-center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: var(--fs-h2);
  margin-bottom: 12px;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-dark);
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--color-dark);
  color: #fff;
  letter-spacing: 0.05em;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1.0625rem;
}

.btn--secondary {
  background: var(--color-dark);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-dark);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-dark);
  padding: 10px 26px;
}

.btn--outline:hover {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

.btn-with-sub {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.btn-with-sub .btn {
  margin-bottom: 6px;
}

.btn-with-sub__sub {
  font-size: 0.875rem;
  color: var(--color-dark);
  font-weight: 500;
}

.read-more {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.9375rem;
}

.read-more:hover {
  color: var(--color-dark);
}

/* =============================================
   Header
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 100;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid var(--color-border-light);
}

.site-header.is-sticky {
  box-shadow: var(--shadow-header);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-dark);
}

.site-logo:hover {
  color: var(--color-dark);
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.header-social {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}

.header-social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.header-social a:hover {
  color: var(--color-primary);
}

.header-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-bottom {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 12px 0;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-menu);
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 10px 0;
  position: relative;
  font-weight: 400;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-dark);
}

.main-nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.header-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-menu);
  font-size: 0.875rem;
  color: var(--color-text);
}

.header-actions a:hover {
  color: var(--color-primary);
}

.header-actions svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  z-index: 105;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   Inner Hero (subpages)
   ============================================= */
.inner-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(124deg, rgba(255, 255, 255, 0) 50%, var(--color-primary) 50%);
  z-index: -2;
}

.inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/dpes-bg-hero-section.webp') no-repeat;
  background-position: bottom right;
  background-size: 50% auto;
  opacity: 0.85;
  z-index: -1;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.inner-hero__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}

.inner-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 2.875rem);
  margin-bottom: 16px;
}

.inner-hero p {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  max-width: 580px;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--color-bg-alt);
  padding: 70px 0 0;
  margin-top: 80px;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-dark);
  align-items: center;
  gap: 12px;
}

.footer-logo svg {
  width: 36px;
  height: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.footer-col h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 20px;
}

.footer-col ul {
  text-align: center;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.footer-col ul a:hover {
  color: var(--color-primary);
}

.footer-col--contact {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.footer-col--contact a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 24px 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social__label,
.footer-payments__label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-dark);
  font-size: 0.9375rem;
}

.footer-social a {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.footer-social a:hover {
  color: var(--color-primary);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.footer-payments__icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.footer-payments__icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  background: var(--color-dark);
  color: #fff;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.footer-copy {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 18px 0;
  border-top: 1px solid var(--color-border-light);
}

/* =============================================
   Forms
   ============================================= */
.form-field {
  display: block;
  width: 100%;
  padding: 14px 22px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-dark);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 194, 31, 0.15);
}

.form-field--textarea {
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 130px;
}

.form-error {
  display: none;
  color: #d33;
  font-size: 0.875rem;
  margin-top: 6px;
  padding-left: 22px;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  padding: 16px 22px;
  background: #e8f5e9;
  color: #1b5e20;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 500;
}

.form-success.is-visible {
  display: block;
}

/* =============================================
   Animations
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
    --section-padding-sm: 40px;
  }

  .header-top {
    grid-template-columns: 1fr 1fr;
  }
  .header-top .header-search {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
    --section-padding-sm: 30px;
    --container-padding: 16px;
  }

  .header-top {
    grid-template-columns: 1fr auto;
    padding: 12px 0;
  }

  .header-social {
    display: none;
  }

  /* Na mobilu skryjeme normální zobrazení header-bottom, ale main-nav uvnitř ZŮSTÁVÁ jako fixed panel */
  .header-bottom {
    display: contents;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile menu */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 88%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 102;
    padding: 80px 24px 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .main-nav ul li {
    border-bottom: 1px solid var(--color-border-light);
  }

  .main-nav a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
  }

  .main-nav a.is-active::after {
    display: none;
  }

  .main-nav a.is-active {
    color: var(--color-primary);
  }

  /* Backdrop */
  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .menu-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* Inner hero on mobile */
  .inner-hero {
    padding: 50px 0 70px;
  }

  .inner-hero__inner {
    grid-template-columns: 1fr;
  }

  .inner-hero::after {
    background-size: 80% auto;
    opacity: 0.5;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-payments {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}
