/* =========================================================
   LUPMAT — Global Stylesheet
   Used by: landing page (lupmat.sk) + all subdomain pages
   ========================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors */
  --color-black:      #0a0a0a;
  --color-black-soft: #141414;
  --color-gray:       #1e1e1e;
  --color-gray-mid:   #2e2e2e;
  --color-white:      #f5f5f5;
  --color-white-dim:  #b0b0b0;
  --color-red:        #e63131;
  --color-red-dark:   #c0392b;
  --color-red-glow:   rgba(230, 49, 49, 0.18);

  /* Typography */
  --font:             'Inter', sans-serif;
  --fs-xs:            0.75rem;
  --fs-sm:            0.875rem;
  --fs-base:          1rem;
  --fs-lg:            1.25rem;
  --fs-xl:            1.5rem;
  --fs-2xl:           2rem;
  --fs-3xl:           3rem;
  --fs-4xl:           4.5rem;
  --fs-hero:          clamp(3rem, 8vw, 7rem);

  /* Spacing */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   2rem;
  --sp-lg:   4rem;
  --sp-xl:   8rem;

  /* Misc */
  --radius:     6px;
  --transition: 0.3s ease;
  --max-width:  1200px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-mid);
  padding: var(--sp-sm) var(--sp-md);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo: LUPMAT wordmark */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.logo__accent {
  color: var(--color-red);
}

/* Back link on subpages */
.header__back {
  font-size: var(--fs-sm);
  color: var(--color-white-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}

.header__back:hover {
  color: var(--color-red);
}

/* =========================================================
   HERO — Landing
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
  position: relative;
  background: var(--color-black);
  overflow: hidden;
}

/* Diagonal red accent line behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 55%;
  height: 130%;
  background: var(--color-red-glow);
  transform: skewX(-15deg);
  pointer-events: none;
}

/* Decorative corner mark */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--color-red);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--sp-sm);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}

.hero__title span {
  color: var(--color-red);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-white-dim);
  max-width: 560px;
  margin: 0 auto var(--sp-md);
}

.hero__cta {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--fs-base);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition);
}

.hero__cta:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
}

/* Scroll-down arrow */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  color: var(--color-white-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   HERO — Subpage variant
   ========================================================= */
.hero--subpage {
  min-height: 60vh;
  padding: var(--sp-lg) var(--sp-md);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  margin-bottom: var(--sp-lg);
}

.hero--subpage .hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.hero__icon {
  font-size: 4rem;
  margin-bottom: var(--sp-sm);
  display: block;
}

/* =========================================================
   SERVICES SECTION
   ========================================================= */
.services {
  padding: var(--sp-xl) var(--sp-md);
  background: var(--color-black-soft);
}

.services__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--sp-sm);
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: var(--color-red);
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
  line-height: 1.05;
}

.section-title span {
  color: var(--color-red);
}

/* =========================================================
   CARDS GRID
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-md);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-md) calc(var(--sp-md) * 1.2);
  background: var(--color-gray);
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* Red left-border accent */
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--color-red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}

.card:hover {
  border-color: var(--color-red);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--color-red);
}

.card:hover::before {
  transform: scaleY(1);
}

.card__icon {
  font-size: 2.4rem;
  line-height: 1;
}

.card__name {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card__desc {
  font-size: var(--fs-sm);
  color: var(--color-white-dim);
  line-height: 1.5;
  flex: 1;
}

.card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: auto;
  transition: gap var(--transition);
}

.card:hover .card__arrow {
  gap: 0.8rem;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for card children */
[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal]:nth-child(4) { transition-delay: 0.3s; }
[data-reveal]:nth-child(5) { transition-delay: 0.4s; }
[data-reveal]:nth-child(6) { transition-delay: 0.5s; }

/* =========================================================
   CONTENT SECTION (subpages)
   ========================================================= */
.content-section {
  padding: 0 var(--sp-md) var(--sp-xl);
}

.content-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.content-section__text {
  font-size: var(--fs-lg);
  color: var(--color-white-dim);
  line-height: 1.75;
}

.content-section__aside {
  background: var(--color-gray);
  border: 1px solid var(--color-gray-mid);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius);
  padding: var(--sp-md);
}

.content-section__aside h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--color-white-dim);
}

.perks li::before {
  content: '✓';
  color: var(--color-red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* =========================================================
   CTA SECTION (subpages)
   ========================================================= */
.cta-section {
  background: var(--color-gray);
  border-top: 1px solid var(--color-gray-mid);
  padding: var(--sp-xl) var(--sp-md);
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--sp-md));
}

.cta-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.cta-section__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--sp-xs);
}

.cta-section__title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
  align-items: center;
}

/* Primary button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 49, 49, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-gray-mid);
}

.btn--outline:hover {
  border-color: var(--color-white-dim);
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--color-black);
  border-top: 1px solid var(--color-gray-mid);
  padding: var(--sp-md);
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--color-white-dim);
}

.footer__home {
  font-size: var(--fs-xs);
  color: var(--color-white-dim);
  transition: color var(--transition);
}

.footer__home:hover {
  color: var(--color-red);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .content-section__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .hero--subpage {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }
}

@media (max-width: 640px) {
  :root {
    --sp-lg: 3rem;
    --sp-xl: 5rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: var(--fs-2xl);
  }

  .cta-section {
    clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   SUBPAGE — Hero (full viewport, image background)
   ========================================================= */
.sp-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: sp-kenburns 8s ease-out forwards;
}

@keyframes sp-kenburns {
  to { transform: scale(1); }
}

/* Left-heavy dark overlay */
.sp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10, 10, 10, 0.90) 0%,
    rgba(10, 10, 10, 0.55) 50%,
    rgba(10, 10, 10, 0.15) 100%
  );
}

/* Thin red line accent */
.sp-hero__overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-red);
}

.sp-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 7vh, 6rem);
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Animate each child in */
.sp-hero__content > * {
  opacity: 0;
  transform: translateY(28px);
  animation: sp-fade-up 0.65s ease forwards;
}
.sp-hero__eyebrow { animation-delay: 0.1s; }
.sp-hero__title   { animation-delay: 0.25s; }
.sp-hero__desc    { animation-delay: 0.42s; }
.sp-hero__cta     { animation-delay: 0.58s; }

@keyframes sp-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.sp-hero__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
}

.sp-hero__title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--color-white);
}

.sp-hero__desc {
  font-size: var(--fs-lg);
  color: var(--color-white-dim);
  line-height: 1.6;
  max-width: 480px;
}

/* Large decorative icon — top-right */
.sp-hero__deco {
  position: absolute;
  top: 50%;
  right: clamp(2rem, 8vw, 8rem);
  transform: translateY(-50%);
  font-size: clamp(6rem, 16vw, 14rem);
  line-height: 1;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Animated scroll line */
.sp-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-hero__scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--color-red));
  animation: sp-scroll-line 2s ease-in-out infinite;
}

@keyframes sp-scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   SUBPAGE — About (text + perks)
   ========================================================= */
.sp-about {
  padding: var(--sp-xl) var(--sp-md);
  background: var(--color-black-soft);
}

.sp-about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.sp-about__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: var(--sp-sm) 0 var(--sp-md);
}

.sp-about__body {
  font-size: var(--fs-lg);
  color: var(--color-white-dim);
  line-height: 1.8;
}

/* Perks card */
.sp-perks {
  background: var(--color-gray);
  border: 1px solid var(--color-gray-mid);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius);
  padding: var(--sp-md) calc(var(--sp-md) * 1.2);
}

.sp-perks__heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-md);
  color: var(--color-white);
}

.sp-perks__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sp-perks__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: var(--fs-base);
  color: var(--color-white-dim);
  line-height: 1.45;
}

.sp-perks__list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0.1em;
}

/* =========================================================
   SUBPAGE — Stats strip
   ========================================================= */
.sp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-red);
}

.sp-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg) var(--sp-md);
  gap: 0.4rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.sp-stats__item:last-child {
  border-right: none;
}

.sp-stats__num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-white);
  line-height: 1;
}

.sp-stats__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  text-align: center;
}

/* =========================================================
   SUBPAGE — Gallery carousel
   ========================================================= */
.sp-gallery {
  padding: var(--sp-xl) 0;
  background: var(--color-black);
  overflow: hidden;
}

.sp-gallery__header {
  padding: 0 var(--sp-md);
  max-width: var(--max-width);
  margin: 0 auto var(--sp-md);
}

/* Row: [arrow] [track] [arrow] */
.sp-gallery__viewport {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--sp-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.sp-gallery__viewport .carousel__arrow {
  flex-shrink: 0;
}

.sp-gallery__track-wrap {
  flex: 1;
  overflow: hidden;
}

.sp-gallery__track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

.sp-gallery__item {
  flex-shrink: 0;
  /* ~3 visible on desktop */
  width: calc(33.333% - 0.67rem);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.sp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sp-gallery__item:hover img {
  transform: scale(1.04);
}

/* =========================================================
   SUBPAGE — CTA
   ========================================================= */
.sp-cta {
  background: var(--color-gray);
  padding: var(--sp-xl) var(--sp-md);
  border-top: 1px solid var(--color-gray-mid);
  position: relative;
  overflow: hidden;
}

/* Red diagonal shape behind CTA */
.sp-cta::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 45%;
  height: 140%;
  background: var(--color-red-glow);
  transform: skewX(-12deg);
  pointer-events: none;
}

.sp-cta__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.sp-cta__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: var(--sp-sm) 0 var(--sp-md);
}

.sp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
}

/* Larger buttons for CTA section */
.sp-cta .btn {
  font-size: var(--fs-lg);
  padding: 1.1rem 2.5rem;
  gap: 0.75rem;
}

.sp-cta .btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   SUBPAGE — Responsive
   ========================================================= */
@media (max-width: 900px) {
  .sp-about__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .sp-hero__deco {
    display: none;
  }

  .sp-hero__scroll {
    display: none;
  }

  .sp-gallery__item {
    /* ~2 visible on tablet */
    width: calc(50% - 0.5rem);
  }
}

@media (max-width: 640px) {
  .sp-stats {
    grid-template-columns: 1fr;
  }

  .sp-stats__item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: var(--sp-md);
  }

  .sp-stats__item:last-child {
    border-bottom: none;
  }

  .sp-gallery__item {
    /* 1 visible on mobile */
    width: calc(100% - 0rem);
  }

  .sp-hero__content {
    padding: 1.5rem;
    padding-bottom: 3rem;
  }
}

/* =========================================================
   LANDING PAGE — Full-screen carousel, no scroll
   ========================================================= */

/* Lock viewport */
html.landing,
html.landing body {
  height: 100%;
  overflow: hidden;
}

body.landing-page {
  display: flex;
  flex-direction: column;
  height: 100svh; /* svh = small viewport height (handles iOS chrome) */
  height: 100vh;  /* fallback */
  overflow: hidden;
}

/* ----- Landing Header -----------------------------------------*/
.lp-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.75) 0%, transparent 100%);
}

.lp-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-white);
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), background var(--transition);
}

.lp-header__phone:hover {
  border-color: var(--color-red);
  background: rgba(230, 49, 49, 0.12);
}

.lp-header__phone svg {
  width: 15px;
  height: 15px;
  stroke: var(--color-red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- Carousel wrapper --------------------------------------*/
.carousel {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

/* ----- Slides track ------------------------------------------*/
.carousel__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ----- Individual slide --------------------------------------*/
.carousel__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image with Ken Burns zoom */
.slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s ease-out;
  will-change: transform;
}

.carousel__slide.is-active .slide__bg {
  transform: scale(1);
}

/* Dark gradient overlay — readable text on left, image visible on right */
.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.65) 45%,
    rgba(10, 10, 10, 0.20) 100%
  );
}

/* Thin red diagonal accent stripe */
.slide__overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 42%;
  width: 2px;
  height: 100%;
  background: var(--color-red);
  opacity: 0.35;
  transform: skewX(-6deg);
}

/* ----- Slide text content ------------------------------------*/
.slide__content {
  position: relative;
  z-index: 2;
  padding-left: clamp(2rem, 8vw, 8rem);
  padding-top: 5rem; /* clear the header */
  max-width: 54%;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* Children animate in when parent gains .is-active */
.slide__content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.carousel__slide.is-active .slide__content > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.carousel__slide.is-active .slide__eyebrow { transition-delay: 0.15s; }
.carousel__slide.is-active .slide__title   { transition-delay: 0.30s; }
.carousel__slide.is-active .slide__desc    { transition-delay: 0.46s; }
.carousel__slide.is-active .slide__cta     { transition-delay: 0.62s; }

.slide__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
}

.slide__title {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--color-white);
}

.slide__desc {
  font-size: var(--fs-lg);
  color: var(--color-white-dim);
  line-height: 1.55;
  max-width: 380px;
}

.slide__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--fs-base);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.slide__cta:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230, 49, 49, 0.45);
}

.slide__cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.slide__cta:hover svg {
  transform: translateX(4px);
}

/* ----- Decorative slide number + icon (right side) ----------*/
.slide__deco {
  position: absolute;
  right: clamp(2rem, 6vw, 7rem);
  bottom: clamp(5rem, 12vh, 10rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}

.carousel__slide.is-active .slide__deco {
  opacity: 1;
}

/* Giant background number — decorative only */
.slide__num {
  font-size: clamp(7rem, 16vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  user-select: none;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.slide__icon {
  font-size: 3rem;
  line-height: 1;
}

/* ----- Bottom control bar ------------------------------------*/
.carousel__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: linear-gradient(to top, rgba(10,10,10,0.80) 0%, transparent 100%);
}

/* Slide counter  01 / 03 */
.carousel__counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
  min-width: 70px;
}

.carousel__counter-sep {
  width: 24px;
  height: 1px;
  background: var(--color-red);
  flex-shrink: 0;
}

.carousel__counter-total {
  color: var(--color-white-dim);
}

/* Nav: arrows + dots */
.carousel__nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.carousel__arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.carousel__arrow:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  transform: scale(1.1);
}

.carousel__arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dots */
.carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition), width var(--transition);
}

.carousel__dot.is-active {
  background: var(--color-red);
  width: 24px;
  border-radius: 4px;
  transform: none;
}

/* Copyright in the bar */
.carousel__copy {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.35);
  min-width: 70px;
  text-align: right;
}

/* ----- Auto-play progress line at very bottom ----------------*/
.carousel__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 11;
}

.carousel__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-red);
  border-radius: 0 2px 2px 0;
}

/* ----- Landing responsive ------------------------------------*/
@media (max-width: 900px) {
  .slide__content {
    max-width: 75%;
    padding-left: clamp(1.5rem, 5vw, 4rem);
  }

  .slide__overlay::after {
    display: none;
  }

  .slide__deco {
    display: none;
  }

  .lp-header {
    padding: 1.2rem 1.5rem;
  }

  .carousel__bar {
    padding: 0 1.5rem;
  }
}

@media (max-width: 600px) {
  .slide__content {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .slide__title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .lp-header__phone span {
    display: none; /* hide phone number text on very small screens */
  }

  .carousel__copy {
    display: none;
  }

  .carousel__counter {
    min-width: auto;
  }
}
