/*
Theme Name: RHG White Lab
Theme URI: https://redhatgarage.ch
Description: RedHat Garage — Custom One-Page Theme. Clean, Swiss, Bruno-first.
Author: RedHat Garage / Artur Dlugokecki
Version: 1.0.0
Text Domain: rhg-whitelab
*/

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

:root {
  --white:   #FFFFFF;
  --black:   #121212;
  --red:     #CC0000;
  --green:   #16a34a;
  --blue:    #1d4ed8;
  --amber:   #d97706;
  --gray-50: #f9fafb;
  --gray-100:#f3f4f6;
  --gray-200:#e5e7eb;
  --gray-500:#6b7280;
  --font:    'Inter', sans-serif;
  --radius:  8px;
  --shadow:  0 2px 12px rgba(0,0,0,0.08);
  --max-w:   1140px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAV
============================================================ */
#rhg-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#rhg-nav .nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

#rhg-nav .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
#rhg-nav .nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  letter-spacing: 0.03em;
}
#rhg-nav .nav-links a:hover { color: var(--white); }

/* ============================================================
   HERO — full-width background image
============================================================ */
#hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Carousel slides */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.90) 0%,
    rgba(10,10,10,0.48) 45%,
    rgba(10,10,10,0.06) 100%
  );
}

/* Slide texts */
.hero-texts { position: relative; min-height: 160px; }
.hero-text {
  display: none;
  flex-direction: column;
  gap: 16px;
}
.hero-text.active { display: flex; animation: fadeInUp 0.7s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* TikTok badge */
.hero-tt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  width: fit-content;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.hero-tt-badge:hover { background: rgba(0,0,0,0.8); }

/* Per-slide CTA button (mobile only — hidden on desktop) */
.hero-slide-btn {
  display: none;
}

/* Dots */
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 4% 56px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  color: #fff;
}

.hero-content .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-content .sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 560px;
}

/* 3 Action Portals */
.hero-portals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 58%;
}

.portal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: var(--white);
}
.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.portal-card.green  { background: var(--green); }
.portal-card.blue   { background: var(--blue); }
.portal-card.amber  { background: var(--amber); }

.portal-card .portal-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.portal-card .portal-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.portal-card .portal-text span {
  font-size: 0.8rem;
  opacity: 0.85;
}
.portal-card .portal-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* ============================================================
   SECTION BASE
============================================================ */
.rhg-section {
  padding: 96px 24px;
}
.rhg-section.bg-gray { background: var(--gray-50); }
.rhg-section.bg-black { background: var(--black); color: var(--white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================================
   BRAND STRIP
============================================================ */
#brands {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 24px;
  overflow: hidden;
}
#brands .brands-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}
#brands .brands-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
#brands .brand-logo {
  height: 36px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
#brands .brand-logo:hover {
  opacity: 1;
}
#brands .brand-pill {
  padding: 6px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
#brands .brand-pill:hover {
  border-color: var(--black);
  color: var(--black);
}
#brands .brand-pill.more {
  border-style: dashed;
  color: var(--gray-500);
}

/* ============================================================
   SECTION: POZNAJ MNIE (#about)
============================================================ */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
#about .about-bio h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}
#about .about-bio p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 20px;
}
#about .about-tiktok {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}
#about .about-tiktok .tiktok-stat {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--black);
}
#about .about-tiktok .tiktok-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}
.social-btn:hover { opacity: 0.85; }
.social-btn.tt { background: #010101; }
.social-btn.yt { background: #FF0000; }
.social-btn.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.fb { background: #1877F2; }

#about .about-tiktok .btn-tiktok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}
#about .about-tiktok .btn-tiktok:hover { background: #333; }

/* ============================================================
   SECTION: ZADAJ PYTANIE (#contact)
============================================================ */
#contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}

#contact .contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
}
#contact .contact-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.rhg-form .form-group { margin-bottom: 16px; }
.rhg-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rhg-form input,
.rhg-form textarea,
.rhg-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.rhg-form input:focus,
.rhg-form textarea:focus { border-color: var(--black); }
.rhg-form textarea { resize: vertical; min-height: 120px; }
.rhg-form .btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}
.rhg-form .btn-submit:hover { background: #333; }

.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.contact-channels h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.channel-card:hover {
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.channel-card.wa { border-left: 4px solid var(--green); }
.channel-card.email { border-left: 4px solid var(--blue); }

.channel-icon { font-size: 1.8rem; }
.channel-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.channel-info span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ============================================================
   SECTION: POZNAJ WARSZTAT (#workshop)
============================================================ */
#workshop { background: var(--gray-50); }

#workshop .workshop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
}

.workshop-info .info-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
}
.workshop-info .info-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.workshop-info .info-block p,
.workshop-info .info-block ul {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.workshop-info .info-block ul { list-style: none; }
.workshop-info .info-block ul li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

.workshop-map {
  border-radius: 12px;
  overflow: hidden;
  height: 400px;
  background: var(--gray-100);
}
.workshop-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   SECTION: LEAD MAGNET (#leadmagnet)
============================================================ */
#leadmagnet {
  background: var(--black);
  color: var(--white);
}
#leadmagnet .lm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
#leadmagnet .lm-text .tag { color: var(--amber); }
#leadmagnet .lm-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 20px;
}
#leadmagnet .lm-text p { color: rgba(255,255,255,0.65); line-height: 1.7; }

#leadmagnet .lm-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 40px;
}
#leadmagnet .lm-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
#leadmagnet .lm-form p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
#leadmagnet .lm-form input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  margin-bottom: 12px;
}
#leadmagnet .lm-form input::placeholder { color: rgba(255,255,255,0.35); }
#leadmagnet .lm-form input:focus { border-color: var(--amber); }
#leadmagnet .lm-form .btn-submit {
  background: var(--amber);
  color: var(--white);
}
#leadmagnet .lm-form .btn-submit:hover { background: #b45309; }

/* ============================================================
   FOOTER
============================================================ */
#rhg-footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
#rhg-footer .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
#rhg-footer .footer-brand .logo {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 8px;
}
#rhg-footer .footer-brand .logo span { color: var(--red); }
#rhg-footer .footer-brand p { font-size: 0.85rem; line-height: 1.7; }

#rhg-footer h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
#rhg-footer ul { list-style: none; }
#rhg-footer ul li { margin-bottom: 8px; }
#rhg-footer ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
#rhg-footer ul a:hover { color: var(--white); }

#rhg-footer .footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
#rhg-footer .footer-bottom strong { color: rgba(255,255,255,0.85); }
#rhg-footer .footer-bottom small { font-size: 0.75rem; }

/* Reviews carousel */
.reviews-carousel {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
}
.reviews-track {
  display: flex;
  position: relative;
  min-height: 200px;
}
.review-card {
  display: none;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  animation: rcFadeIn 0.5s ease both;
}
.review-card.rc-active { display: flex; }
@keyframes rcFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.review-stars { color: #f59e0b; font-size: 1.2rem; letter-spacing: 3px; }
.review-text { font-size: 1rem; color: #374151; line-height: 1.8; font-style: italic; flex: 1; }
.review-author { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.review-author strong { font-size: 0.9rem; color: var(--black); }
.review-author span { font-size: 0.8rem; color: var(--gray-500); }

.rc-prev, .rc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.rc-prev { left: 0; }
.rc-next { right: 0; }
.rc-prev:hover, .rc-next:hover { background: var(--gray-100); }

.rc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.rc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.rc-dot.active { background: var(--red); transform: scale(1.3); }

/* Announcement bar */
#rhg-announce {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 10px 48px 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  line-height: 1.4;
}
#rhg-announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#rhg-announce .ann-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  #hero {
    min-height: 88vh;
    justify-content: flex-start;
  }
  .hero-content {
    padding: 72px 16px 28px;
    gap: 14px;
  }
  .hero-slide img {
    object-position: 60% center !important;
  }
  .hero-slide .hero-gradient {
    background: linear-gradient(
      to bottom,
      rgba(10,10,10,0.82) 0%,
      rgba(10,10,10,0.5) 45%,
      rgba(10,10,10,0.1) 75%,
      transparent 100%
    );
  }
  /* Mobile: hide 3-button portals, show single slide button */
  .hero-portals { display: none; }
  .hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    width: fit-content;
    margin-top: 4px;
  }
  .hero-slide-btn.green { background: #16a34a; }
  .hero-slide-btn.blue  { background: #1d4ed8; }
  .hero-slide-btn.amber { background: #d97706; }
  .hero-texts { min-height: 260px; }

  #about .about-grid,
  #contact .contact-grid,
  #workshop .workshop-grid,
  #leadmagnet .lm-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  #rhg-footer .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  #rhg-footer .footer-bottom { flex-direction: column; gap: 16px; }
  .review-card { padding: 28px 20px; }
  .rc-prev, .rc-next { display: none; }
  #rhg-announce { font-size: 0.78rem; padding: 10px 40px 10px 12px; }
  .nav-hamburger { display: flex; }
  #rhg-nav { height: 64px; overflow: visible; flex-wrap: wrap; align-items: center; padding: 0 20px; }
  #rhg-nav .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 16px 0 20px;
    gap: 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 99;
  }
  #rhg-nav .nav-links.open { display: flex; }
  #rhg-nav .nav-links a { padding: 12px 24px; display: block; font-size: 1rem; color: rgba(255,255,255,0.8); }
  #rhg-footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
