/* =========================================
   Cehal Group · Real Website Theme
   ========================================= */

:root {
  --bg: #f5f5f5;
  --white: #ffffff;
  --hero-bg: #4a4a4a;
  --accent: #e85d04;
  --accent-hover: #cf5203;
  --text-dark: #0f0f0f;
  --text-mid: #555555;
  --text-light: #f5f5f5;
  --line: #e0e0e0;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Scroll-reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-height);
}

.nav__logo img {
  width: 40px;
  height: 40px;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  transition: color 0.25s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav__link:hover {
  color: var(--accent);
}
.nav__link:hover::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--hero-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* CG watermark */
.hero::before {
  content: 'CG';
  position: absolute;
  font-family: var(--font-heading);
  font-size: clamp(20rem, 50vw, 56rem);
  letter-spacing: 20px;
  color: white;
  opacity: 0.05;
  top: 50%;
  right: -5%;
  transform: translateY(-50%) rotate(-15deg);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 100px 56px;
  border-left: 10px solid var(--accent);
  margin-left: 10%;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 12vw, 10rem);
  letter-spacing: 16px;
  color: var(--text-light);
  line-height: 1;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  letter-spacing: 4px;
  color: var(--text-light);
  opacity: 0.6;
  margin-top: 16px;
}

.hero__cta {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 40px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  transition: background 0.3s ease, color 0.3s ease;
}
.hero__cta:hover {
  background: transparent;
  color: var(--accent);
}

/* ===== SECTION HEADING ===== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.section-heading__bar {
  display: block;
  width: 6px;
  height: 40px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-heading__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 4px;
  color: var(--text-dark);
}

/* ===== O NÁS ===== */
.about {
  padding: 100px 32px;
}
.about__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.about__text > p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 700px;
  margin-bottom: 48px;
}
.about__strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.about__strength {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.about__strength h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.about__strength p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ===== SLUŽBY ===== */
.services {
  padding: 100px 32px;
  background: var(--white);
}
.services__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.services__card {
  background: var(--bg);
  padding: 36px 28px;
  border-top: 4px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.services__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.services__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}
.services__card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.services__card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ===== KONTAKT ===== */
.contact {
  padding: 100px 32px;
}
.contact__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.contact__info {
  max-width: 500px;
}
.contact__company {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.contact__detail {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-mid);
}
.contact__link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.25s ease;
}
.contact__link:hover {
  opacity: 0.7;
}
.contact__legal {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #999;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--hero-bg);
  color: var(--text-light);
  padding: 40px 32px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy {
  font-size: 0.95rem;
}
.footer__legal {
  font-size: 0.8rem;
  opacity: 0.6;
}
.footer__email a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.25s ease;
}
.footer__email a:hover {
  opacity: 0.7;
}

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

/* Tablet */
@media (max-width: 900px) {
  .about__strengths {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .hero__content {
    padding: 80px 40px;
    margin-left: 6%;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --nav-height: 60px;
  }

  /* Hamburger visible */
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav__links.open {
    transform: translateX(0);
  }
  .nav__link {
    font-size: 1.1rem;
  }

  .hero__content {
    padding: 60px 24px;
    margin-left: 16px;
    border-left-width: 6px;
  }
  .hero__title {
    letter-spacing: 6px;
  }

  .about,
  .services,
  .contact {
    padding: 64px 20px;
  }

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

  .section-heading {
    margin-bottom: 32px;
  }
}
