/* ========================================
   Main Styles — inzateplení s.r.o.
   Mobile-first, responsive layout
   ======================================== */

/* --- View Transitions (2026 MPA cross-page animations) --- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 200ms ease;
}

::view-transition-new(root) {
  animation: fade-in-vt 200ms ease;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fade-in-vt {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- CTA sekce (tmavé proužky) --- */
.section-cta {
  background: var(--color-dark-section);
  text-align: center;
}

/* --- Skip to content (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #FFFFFF;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: var(--fw-semibold);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Section shared styles --- */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gradient);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 2px 8px rgba(224, 0, 20, 0.4);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #FFFFFF;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-white {
  background: #FFFFFF;
  color: #1A1A2E;
}

.btn-white:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: 0 2px 20px var(--color-header-shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Page header for inner pages (not hero) */
.page-header {
  background: var(--color-dark-section);
  padding: var(--space-4xl) 0 var(--space-3xl);
  padding-top: calc(72px + var(--space-4xl));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF7C1B' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: var(--fs-lg);
  color: #D1D5DB;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-sm);
  color: #9CA3AF;
}

.breadcrumb a {
  color: #9CA3AF;
  transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
  color: #6B7280;
}

/* Desktop navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gradient);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header actions (theme toggle + CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme toggle button */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Sun icon hidden in light mode, moon hidden in dark mode */
.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* Hamburger animation when open */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.header-cta {
  display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-dark-section);
  overflow: hidden;
  padding-top: 72px;
}

/* Background pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF7C1B' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid rgba(255, 124, 27, 0.3);
  border-radius: var(--radius-full);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  color: #FFFFFF;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--color-primary);
}

.hero-desc {
  font-size: var(--fs-lg);
  color: #D1D5DB;
  line-height: var(--lh-loose);
  margin-bottom: var(--space-2xl);
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Stats bar at bottom of hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.hero-stat-text {
  font-size: var(--fs-sm);
  color: #9CA3AF;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  gap: var(--space-3xl);
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Accent corner decoration */
.about-image::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 80px;
  height: 80px;
  border-bottom: 4px solid var(--color-primary);
  border-right: 4px solid var(--color-primary);
  border-radius: 0 0 var(--radius-lg) 0;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.about-feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 124, 27, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.about-feature h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

.about-feature p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.service-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 124, 27, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery {
  background: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  background: var(--color-bg-alt);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* Overlay on hover */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 36, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.gallery-overlay i {
  color: #FFFFFF;
  width: 32px;
  height: 32px;
}

/* Make first and last items span 2 columns on larger screens */
.gallery-item.featured {
  grid-column: span 1;
}

/* ========================================
   PROJECTS / REFERENCES SECTION
   ======================================== */
.projects {
  background: var(--color-bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.project-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

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

.project-image {
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: var(--space-xl);
}

.project-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.project-info h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.project-info p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xl);
}

.contact-form-wrapper {
  width: 100%;
  max-width: 700px;
}

.contact-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  width: 100%;
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  flex: 1 1 200px;
  max-width: 260px;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 124, 27, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.contact-item h3 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

.contact-item p,
.contact-item a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

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

/* Contact form */
.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 124, 27, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Contact form submit: solid color instead of gradient */
.contact-form .btn-primary {
  background: var(--color-primary-dark);
  border-color: transparent;
  color: #FFFFFF;
}


.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--color-footer-text);
  max-width: 300px;
}

.footer-heading {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: #FFFFFF;
  margin-bottom: var(--space-lg);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--color-footer-text);
  transition: color var(--transition-fast);
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
}

.footer-contact i {
  color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-xs);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-footer-text);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #1A1A2E;
}

/* ========================================
   SCROLL ANIMATIONS
   CSS scroll-driven animations (2026) with JS fallback
   ======================================== */

/* Native CSS scroll-driven animation (modern browsers) */
@supports (animation-timeline: view()) {
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: scroll-fade-in ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  @keyframes scroll-fade-in {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* JS fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  min-height: calc(100dvh - 72px);
  background: var(--color-bg);
  z-index: var(--z-overlay);
  padding: var(--space-2xl);
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

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

/* ========================================
   RESPONSIVE — Tablet (768px+)
   ======================================== */
@media (min-width: 640px) {
  /* Footer: 2 sloupce od 640px (brand + navigace ve 2 řadách) */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item.featured {
    grid-column: span 2;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials: 2 sloupce na tabletu (3 by byly příliš úzké) */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ========================================
   RESPONSIVE — Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .hamburger {
    display: none !important;
  }

  .nav-list {
    display: flex !important;
  }

  .header-cta {
    display: inline-flex;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials: 3 sloupce až od 1024px (ne od 768px) */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* form-row: 2 sloupce až od 1024px — na tabletu je formulář příliš úzký */
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer: plný 4-sloupcový layout */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ========================================
   RESPONSIVE — Mobile adjustments
   ======================================== */
@media (max-width: 1023px) {
  .nav-list {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 767px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  /* Hero label: menší font a padding na mobilu aby se nevlamoval */
  .hero-label {
    font-size: 0.7rem;
    padding: var(--space-xs) var(--space-sm);
    letter-spacing: 0.08em;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .gallery-item.featured {
    grid-column: span 1;
  }

  .contact-form {
    padding: var(--space-xl);
  }
}

/* ========================================
   HERO TWO-COLUMN LAYOUT
   Na velkých obrazovkách: text vlevo, karta vpravo
   ======================================== */

/* hero-inner: na mobilu jen blok (nic se nemění) */
.hero-inner {
  width: 100%;
}

/* hero-right: na mobilu průhledný obal */
.hero-right {
  width: 100%;
}

/* Na velkých obrazovkách (1100px+): flex row */
@media (min-width: 1100px) {
  .hero-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4xl);
  }

  /* Levý sloupec: text */
  .hero-content {
    flex: 1;
    max-width: 680px;
  }

  /* Pravý sloupec: karta se stats a badges */
  .hero-right {
    flex: 0 0 360px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(8px);
  }

  /* Stats v kartě: 2x2 mřížka, bez top marginu */
  .hero-right .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  /* Trust badges v kartě: 2x2 mřížka */
  .hero-right .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ========================================
   TRUST BADGES (hero section)
   ======================================== */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #D1D5DB;
  font-size: var(--fs-sm);
}

.trust-badge svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Trust badges: zůstávají 2x2 na mobilu/tabletu.
   Na 1100px+ přecházejí do hero-right karty (tam jsou také 2x2). */

/* ========================================
   HERO PROMISE (sub-CTA text)
   ======================================== */
.hero-promise {
  font-size: var(--fs-sm);
  color: #9CA3AF;
  margin-top: var(--space-md);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  background: var(--color-bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #FBBF24;
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
}


/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--color-text-muted);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
}

/* ========================================
   PHONE HEADER ICON (mobile)
   ======================================== */
.header-phone {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.header-phone:hover {
  background: rgba(255, 124, 27, 0.1);
}

@media (max-width: 1023px) {
  .header-phone {
    display: flex;
  }
}

/* ========================================
   PHONE CTA (contact page)
   ======================================== */
.phone-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 124, 27, 0.1);
  border: 1px solid rgba(255, 124, 27, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-md);
}

.phone-cta svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.phone-cta-label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.phone-cta-number {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.phone-cta-number:hover {
  opacity: 0.8;
}

.phone-cta-sub {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.form-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.form-trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.form-trust-badge svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.form-promise {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-xl);
}

/* ========================================
   RESPONSIVE — Small phones (< 480px)
   Very narrow screens: 320px–479px
   ======================================== */
@media (max-width: 479px) {
  /* Gallery: 1 column so images aren't tiny */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery featured items: no spanning on tiny screens */
  .gallery-item.featured {
    grid-column: span 1;
  }

  /* Section header: reduce bottom margin */
  .section-header {
    margin-bottom: var(--space-2xl);
  }

  /* Hero stats: slightly smaller numbers */
  .hero-stat-number {
    font-size: var(--fs-xl);
  }

  /* Trust badges: tighter gap */
  .trust-badges {
    gap: var(--space-sm);
  }

  /* Trust badge text: prevent overflow */
  .trust-badge {
    font-size: var(--fs-xs);
  }

  /* Testimonial card: reduce padding */
  .testimonial-card {
    padding: var(--space-xl);
  }

  /* Contact form: reduce padding */
  .contact-form {
    padding: var(--space-md);
  }

  /* Page header: reduce top spacing */
  .page-header {
    padding-top: calc(72px + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  /* Phone CTA: stack vertically on very small screens */
  .phone-cta {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }
}

/* ========================================
   RESPONSIVE — Medium phones (480px–767px)
   Phones with more horizontal space
   ======================================== */
@media (min-width: 480px) and (max-width: 767px) {
  /* Services: 2 columns earlier (instead of waiting for 768px) */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About features: 2 columns */
  .about-features {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   RESPONSIVE — Large screens (1440px+)
   Wide monitors and large desktops
   ======================================== */
@media (min-width: 1440px) {
  /* Slightly wider container for very large screens */
  :root {
    --container-max: 1400px;
  }

  /* Hero content: allow more width */
  .hero-content {
    max-width: 800px;
  }

  /* Section description: wider max-width */
  .section-desc {
    max-width: 700px;
  }

  /* Footer: more breathing room */
  .footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
  }
}

/* Select fields (form) */
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 124, 27, 0.15);
}
