/* ============================================
   Pohrebníctvo Padarasová — style.css
   ============================================ */

/* --- Font --- */
@font-face {
  font-family: 'Neulis alt';
  src: url('../fonts/NeulisAlt-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neulis alt';
  src: url('../fonts/NeulisAlt-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Neulis alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  color: #1e293b;
  line-height: 1.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: 'Neulis alt', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
  justify-content: center;
}

.btn:hover {
  animation: btnFloat 1s ease-in-out infinite;
}

.btn--dark {
  background: #000;
  color: #fff;
  border-color: #fff;
}

.btn--green {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
  font-size: 1.1rem;
  padding: 14px 32px;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

@keyframes btnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav__links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav__link {
  color: #555;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav__link:hover {
  color: #000;
  background: #f1f5f9;
}

.nav__phone-mobile {
  display: none;
  color: #16a34a;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  pointer-events: none;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-menu__inner {
  padding: 80px 24px 40px;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 30px;
}

.mobile-menu__link {
  display: block;
  padding: 12px 16px;
  color: #1e293b;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu__link:hover {
  background: #f1f5f9;
}

.mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mobile-menu__address {
  margin-top: 10px;
}

/* Mobile overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hero --- */
.hero {
  margin-top: 64px;
  display: flex;
  align-items: stretch;
  min-height: 480px;
  overflow: visible;
  background: #fff;
  position: relative;
}

.hero__side {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  background: #fff;
  position: relative;
  z-index: 3;
}

.hero__side--left {
  margin-right: -60px;
}

.hero__side--right {
  margin-left: -60px;
}

.hero__side-img {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hero__side--left .hero__side-img {
  transform: rotate(8deg);
}

.hero__side--right .hero__side-img {
  transform: rotate(-8deg);
}

.hero__video-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__triangle {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
}

.hero__triangle--top {
  top: 0;
  transform: rotate(180deg);
}

.hero__triangle--bottom {
  bottom: 0;
}

/* --- Animated Headline --- */
.headline {
  padding: 60px 0 40px;
  text-align: center;
}

.headline__h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #1e293b;
}

.headline__rotating {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.3em;
  width: 280px;
  text-align: left;
}

.headline__word {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: #16a34a;
  font-weight: 900;
  opacity: 0;
  transform: translateY(100%);
  animation: wordRotate 7.5s infinite;
}

.headline__word:nth-child(1) { animation-delay: 0s; }
.headline__word:nth-child(2) { animation-delay: 2.5s; }
.headline__word:nth-child(3) { animation-delay: 5s; }

@keyframes wordRotate {
  0%   { opacity: 0; transform: translateY(100%); }
  5%   { opacity: 1; transform: translateY(0); }
  28%  { opacity: 1; transform: translateY(0); }
  33%  { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(-100%); }
}

/* --- CTA Bar --- */
.cta {
  padding: 40px 0;
  text-align: center;
  background: #F0F5FA;
}

.cta__heading {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta__address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 0.95rem;
  padding: 10px 20px;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  transition: background 0.2s;
}

.cta__address:hover {
  background: rgba(0,0,0,0.03);
}

.cta__address--light {
  color: #ccc;
  border-color: #333;
}

.cta__address--light:hover {
  background: rgba(255,255,255,0.05);
}

.cta__icon {
  flex-shrink: 0;
}

/* --- Pricing --- */
.pricing {
  padding: 60px 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing__card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pricing__img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.pricing__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing__body {
  padding: 24px 20px;
  text-align: center;
}

.pricing__title {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.pricing__price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #16a34a;
  margin-bottom: 12px;
}

.pricing__divider {
  height: 1px;
  background: #D1D5DB;
  margin-bottom: 12px;
}

.pricing__desc {
  color: #555;
  font-size: 0.9rem;
}

.pricing__list {
  color: #555;
  font-size: 0.9rem;
  text-align: left;
  display: inline-block;
}

.pricing__list li {
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.pricing__list li::before {
  content: "–";
  position: absolute;
  left: 0;
}

.pricing__btn {
  margin-top: 16px;
  width: 100%;
}

/* --- Section Divider --- */
.divider {
  padding: 40px 0;
}

.divider__line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider__line::before,
.divider__line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #D1D5DB;
}

.divider__text {
  padding: 0 24px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #1e293b;
  white-space: nowrap;
  text-align: center;
}

/* --- Blog + Opustili nás --- */
.blog-opustili {
  padding: 40px 0 60px;
}

.blog-opustili__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.blog-opustili__heading {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 20px;
}

/* Blog Card */
.blog-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.blog-card--small {
  min-height: 240px;
}

.blog-card__overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 30px 24px 24px;
  width: 100%;
  color: #fff;
}

.blog-card__title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.blog-card__title--small {
  font-size: 1rem;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Memorial Card */
.memorial__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.memorial__card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memorial__card--small {
  min-height: 140px;
}

.memorial__overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  gap: 4px;
}

.memorial__age {
  font-size: 0.85rem;
  opacity: 0.9;
}

.memorial__date {
  font-size: 0.85rem;
  opacity: 0.9;
}

.memorial__name {
  font-size: 0.95rem;
  font-weight: 900;
  margin-top: 4px;
}

.memorial__btn {
  width: 100%;
}

/* --- Services --- */
.services {
  padding: 40px 0 60px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.services__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s;
}

.services__card:hover {
  transform: translateY(-4px);
}

.services__overlay {
  width: 100%;
  padding: 40px 24px 24px;
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.85));
}

.services__title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.services__cta {
  text-align: center;
}

/* --- About --- */
.about {
  padding: 60px 0;
  background: #F0F5FA;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about__img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 20px;
}

.about__text {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

/* --- Reviews --- */
.reviews {
  margin-bottom: 30px;
  position: relative;
}

.reviews__slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.reviews__track {
  display: flex;
  transition: transform 0.4s ease;
}

.reviews__card {
  flex: 0 0 50%;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.reviews__name {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: #1e293b;
}

.reviews__text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

.reviews__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.reviews__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  background: rgba(255,255,255,0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  color: #1e293b;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reviews__arrow svg {
  width: 28px;
  height: 28px;
}

.reviews__arrow--prev {
  margin-left: -24px;
}

.reviews__arrow--next {
  margin-right: -24px;
}

.reviews__arrow:hover {
  background: #fff;
  border-color: #999;
  transform: scale(1.1);
}

/* --- Gallery --- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  pointer-events: none;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.05);
}

/* --- Footer --- */
.footer {
  position: relative;
  margin-top: 0;
}

.footer__triangle {
  display: block;
  width: 100%;
  height: 100px;
}

.footer__inner {
  background: #111;
  padding: 60px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__heading {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.footer__subheading {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  margin-top: 10px;
}

.footer__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__social-btn {
  justify-content: center;
}

.footer__logo {
  max-width: 180px;
  margin-top: 16px;
}

.footer__memorial {
  margin-top: 10px;
}

.footer__credit {
  background: #000;
  text-align: center;
  padding: 16px;
  color: #666;
  font-size: 0.85rem;
}

.footer__credit a {
  color: #999;
  text-decoration: underline;
}

.footer__credit a:hover {
  color: #fff;
}

/* --- Animate on Scroll --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in-right {
  transform: translateX(40px);
}

.animate-on-scroll.fade-in-left {
  transform: translateX(-40px);
}

.animate-on-scroll.fade-in-up {
  transform: translateY(30px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.hero__side--left.animate-on-scroll.visible .hero__side-img {
  transform: rotate(8deg);
}

.hero__side--right.animate-on-scroll.visible .hero__side-img {
  transform: rotate(-8deg);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__phone-mobile,
  .nav__hamburger {
    display: flex;
  }

  .nav__logo-img {
    display: none;
  }

  .hero {
    flex-direction: column;
    min-height: auto;
    overflow: hidden;
  }

  .hero__side {
    flex: none;
    padding: 20px;
  }

  .hero__side--left,
  .hero__side--right {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__side-img {
    max-width: 200px;
    margin: 0 auto;
  }

  .hero__video-wrap {
    min-height: 300px;
  }

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

  .blog-opustili__grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .headline__h1 {
    font-size: 1.6rem;
  }

  .headline__rotating {
    width: 200px;
  }
}

@media (max-width: 640px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .reviews__card {
    flex: 0 0 100%;
  }

  .headline__h1 {
    font-size: 1.3rem;
  }

  .headline__rotating {
    display: block;
    width: 100%;
    text-align: center;
    height: 1.4em;
  }

  .hero__side {
    display: none;
  }

  .hero__video-wrap {
    min-height: 250px;
  }

  .divider__text {
    font-size: 0.95rem;
  }
}
