/* ============================================
   Ján Gábor - Strechy & Izolácie
   Dark & Premium Theme | Slide From Sides
   ============================================ */

/* ---------- Base ---------- */
:root {
  --primary: #d4830a;
  --secondary: #1a1a1a;
  --accent: #e8a634;
  --dark: #0d0d0d;
  --light: #faf5ef;
  --text: #e0ddd8;
  --text-light: #8a8580;
  --surface: #1e1e1e;
  --surface-light: #2a2a2a;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Contain GSAP slide animations within sections */
.about-section,
.services-section,
.features-section,
.contact-section,
.gallery-section,
.cta-section {
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- Navbar ---------- */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(13, 13, 13, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
#navbar.scrolled #nav-logo span:first-child {
  color: #fff;
}

.nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-nav-link:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.7) 0%,
    rgba(13,13,13,0.5) 40%,
    rgba(13,13,13,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,131,10,0.15);
  border: 1px solid rgba(212,131,10,0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212,131,10,0.25);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.section-heading {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.5px;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 560px;
}

/* ---------- About ---------- */
.about-section {
  padding: 100px 0;
  background: var(--dark);
}
.about-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.about-image-wrap:hover img {
  transform: scale(1.04);
}
.about-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--primary);
  border-radius: 16px;
  z-index: -1;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(212,131,10,0.3);
  transform: translateY(-4px);
}
.stat-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ---------- Services Zigzag ---------- */
.services-section {
  padding: 100px 0;
  background: var(--surface);
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.service-row:last-child {
  border-bottom: none;
}
.service-row.reverse .service-content {
  order: 2;
}
.service-row.reverse .service-image-wrap {
  order: 1;
}
.service-number {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 4rem;
  color: rgba(212,131,10,0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.service-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}
.service-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(212,131,10,0.1);
  border: 1px solid rgba(212,131,10,0.2);
  margin-bottom: 1rem;
  color: var(--primary);
}
.service-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.service-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-image-wrap:hover img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-row.reverse .service-content,
  .service-row.reverse .service-image-wrap {
    order: unset;
  }
}

/* ---------- Gallery ---------- */
.gallery-section {
  padding: 100px 0;
  background: var(--dark);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-caption {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.gallery-cat {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 1;
  }
}

/* ---------- Features ---------- */
.features-section {
  padding: 100px 0;
  background: var(--surface);
}
.feature-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--dark);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s ease;
}
.feature-card:hover {
  border-color: rgba(212,131,10,0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-number {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: rgba(212,131,10,0.2);
  line-height: 1;
  flex-shrink: 0;
}
.feature-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- CTA Banner ---------- */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.88);
}
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 100px 0;
  background: var(--dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}
.contact-info-card:hover {
  border-color: rgba(212,131,10,0.2);
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212,131,10,0.1);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-card-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-card-value {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}
.contact-card-value a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-card-value a:hover {
  color: var(--primary);
}
.contact-map {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid rgba(255,255,255,0.05);
}
.contact-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.6) contrast(1.1);
  transition: filter 0.3s ease;
}
.contact-map:hover iframe {
  filter: grayscale(0) contrast(1);
}

/* Contact Form */
.contact-form {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,131,10,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255,255,255,0.2);
}
.form-textarea {
  min-height: 130px;
  resize: vertical;
}
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212,131,10,0.2);
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--secondary);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}
.footer-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.footer-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 360px;
}
.footer-heading {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer-link {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.3rem 0;
}
.footer-contact-item svg,
.footer-contact-item i {
  color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

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

/* ---------- Reduced Motion ---------- */
@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;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ============================================
   RESPONSIVE FIXES
   ============================================ */

/* ---------- Tablets & Small Laptops ≤ 768px ---------- */
@media (max-width: 768px) {
  .about-section,
  .services-section,
  .features-section,
  .gallery-section,
  .contact-section,
  .cta-section {
    padding: 64px 0;
  }
  .footer {
    padding: 40px 0 24px;
  }
  .hero-content {
    padding: 0 1rem;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }
  .contact-form {
    padding: 1.5rem;
  }
  .feature-card {
    padding: 1.25rem;
    gap: 1rem;
  }
  .feature-number {
    font-size: 2rem;
  }
}

/* ---------- Small Phones ≤ 480px ---------- */
@media (max-width: 480px) {
  .stat-card {
    padding: 1rem;
  }
  .stat-value {
    font-size: 1.8rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .service-row {
    padding: 1.5rem 0;
  }
  .service-number {
    font-size: 3rem;
  }
  .service-title {
    font-size: 1.2rem;
  }
  .service-desc {
    font-size: 0.9rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }
  .feature-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  .feature-number {
    font-size: 1.8rem;
  }
  .feature-title {
    font-size: 1rem;
  }
  .feature-desc {
    font-size: 0.85rem;
  }
  .contact-card-value {
    word-break: break-all;
  }
  .contact-form {
    padding: 1.25rem;
  }
  .cta-content {
    max-width: 100%;
  }
  .footer-grid {
    gap: 1.5rem;
  }
}

/* ---------- Very Small Screens < 350px ---------- */
@media (max-width: 350px) {
  .max-w-7xl,
  .max-w-4xl {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  #navbar .max-w-7xl {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  #navbar {
    height: auto;
  }
  #navbar .h-20 {
    height: 3.5rem;
  }
  #nav-logo span:first-child {
    font-size: 1rem;
  }
  .hero-headline {
    font-size: 2rem !important;
    letter-spacing: -0.5px;
  }
  .hero-sub {
    font-size: 0.9rem;
  }
  .hero-badge {
    font-size: 0.6rem;
    padding: 0.35rem 0.75rem;
    letter-spacing: 0.5px;
  }
  .section-heading {
    font-size: 1.5rem !important;
  }
  .section-subheading {
    font-size: 0.9rem;
  }
  .about-image-wrap img {
    max-height: 240px;
  }
  .service-image-wrap {
    max-height: 240px;
  }
  .service-number {
    font-size: 2.5rem;
  }
  .service-title {
    font-size: 1.1rem;
  }
  .contact-form {
    padding: 1rem;
  }
  .contact-info-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .contact-icon {
    width: 36px;
    height: 36px;
  }
  .cta-section {
    padding: 60px 0;
  }
  #scroll-top {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 40px;
    height: 40px;
  }
  .fixed.bottom-20.right-6 {
    right: 0.75rem;
    bottom: 4rem;
    width: 48px;
    height: 48px;
  }
}