/**
 * Rigel custom footer — velika tipografija (desktop + mobitel).
 */

.rigel-site-footer {
  --rf-cream: #f3f0ea;
  --rf-green: #1f2d24;
  --rf-green-mid: #2a3b30;
  --rf-gold: #c9a86a;
  --rf-gold-soft: #d4b87a;
  --rf-text: #f7f5f1;
  --rf-muted: rgba(247, 245, 241, 0.92);
  --rf-max: 1240px;
  --rf-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  font-family: var(--rf-sans);
  font-size: 20px;
  color: var(--rf-text);
  -webkit-text-size-adjust: 100%;
}

.rigel-site-footer *,
.rigel-site-footer *::before,
.rigel-site-footer *::after {
  box-sizing: border-box;
}

/* ── Benefits bar ── */
.rigel-footer-benefits {
  background: var(--rf-cream);
  border-top: 1px solid rgba(31, 45, 36, 0.1);
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(24px, 5vw, 48px);
}

.rigel-footer-benefits__inner {
  max-width: var(--rf-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.rigel-footer-benefit {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1 1 0;
  min-width: 0;
}

.rigel-footer-benefit__icon {
  flex-shrink: 0;
  width: 61px;
  height: 61px;
  border-radius: 50%;
  border: 2px solid var(--rf-gold);
  color: var(--rf-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 106, 0.12);
}

.rigel-footer-benefit__icon svg {
  width: 27px;
  height: 27px;
}

.rigel-footer-benefit__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.rigel-footer-benefit__title {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  color: #1a1c1d;
  line-height: 1.2;
}

.rigel-footer-benefit__desc {
  font-size: clamp(1.1rem, 2.2vw, 1.28rem);
  color: #3d4246;
  line-height: 1.4;
  font-weight: 500;
}

.rigel-footer-benefit__sep {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  min-height: 58px;
  background: rgba(31, 45, 36, 0.18);
}

/* ── Main footer ── */
.rigel-footer-main {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--rf-green-mid) 0%, var(--rf-green) 48%, #18241c 100%);
  padding: clamp(3.5rem, 7vw, 5rem) clamp(24px, 5vw, 48px) clamp(3rem, 6vw, 4rem);
}

.rigel-footer-main__leaf {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(42vw, 400px);
  height: min(55vw, 500px);
  pointer-events: none;
  opacity: 0.14;
  background:
    radial-gradient(ellipse 55% 45% at 70% 40%, rgba(201, 168, 106, 0.35) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' fill='none'%3E%3Cpath d='M100 20c-30 40-55 90-45 140 8 42 35 75 70 95-25-55-20-115 10-165 18-30 45-55 75-70z' fill='%23c9a86a' opacity='.55'/%3E%3Cpath d='M120 50c20 35 28 80 15 120-12 35-38 62-70 78 30-48 38-98 20-145-8-22-22-40-35-53z' fill='%23f7f5f1' opacity='.25'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.rigel-footer-main__inner {
  position: relative;
  z-index: 1;
  max-width: var(--rf-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: clamp(2.25rem, 4.5vw, 3.25rem);
  align-items: start;
}

.rigel-footer-brand__logo {
  display: inline-block;
  margin-bottom: 1.75rem;
}

.rigel-footer-brand__logo img {
  display: block;
  width: auto;
  max-width: min(196px, 29.4vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.rigel-footer-brand__text {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.75;
  color: var(--rf-muted);
  font-weight: 400;
}

.rigel-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rigel-footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(247, 245, 241, 0.5);
  color: var(--rf-text);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rigel-footer-social__link svg {
  width: 26px;
  height: 26px;
}

.rigel-footer-social__link:hover {
  border-color: var(--rf-gold);
  background: rgba(201, 168, 106, 0.18);
  color: var(--rf-gold-soft);
}

.rigel-footer-col__title {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rf-gold);
}

.rigel-footer-col__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rigel-footer-col__list a {
  color: var(--rf-text);
  text-decoration: none;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 500;
  line-height: 1.55;
  transition: color 0.2s ease;
}

.rigel-footer-col__list a:hover {
  color: var(--rf-gold-soft);
}

.rigel-footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rigel-footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.rigel-footer-contact__icon {
  flex-shrink: 0;
  width: 28px;
  margin-top: 0.15rem;
  color: var(--rf-gold);
}

.rigel-footer-contact__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.rigel-footer-contact__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--rf-text);
}

.rigel-footer-contact__body a {
  color: inherit;
  text-decoration: none;
}

.rigel-footer-contact__body a:hover {
  color: var(--rf-gold-soft);
}

.rigel-footer-contact__body small {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: var(--rf-muted);
}

/* ── Bottom bar ── */
.rigel-footer-bar {
  background: var(--rf-green);
  border-top: 2px solid rgba(201, 168, 106, 0.45);
  padding: clamp(1.35rem, 3vw, 1.75rem) clamp(24px, 5vw, 48px);
}

.rigel-footer-bar__inner {
  max-width: var(--rf-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem 2rem;
}

.rigel-footer-bar__copy {
  margin: 0;
  font-size: clamp(1.02rem, 1.9vw, 1.15rem);
  color: var(--rf-muted);
  line-height: 1.55;
}

.rigel-footer-bar__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  font-size: clamp(1.02rem, 1.9vw, 1.15rem);
}

.rigel-footer-bar__legal a {
  color: var(--rf-text);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.rigel-footer-bar__legal a:hover {
  color: var(--rf-gold-soft);
}

.rigel-footer-bar__dot {
  color: var(--rf-gold);
  font-size: 1.25em;
}

.rigel-footer-bar__tagline {
  margin: 0;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(1.02rem, 1.9vw, 1.15rem);
  color: var(--rf-muted);
  text-align: right;
  line-height: 1.55;
}

.rigel-footer-bar__leaf-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--rf-gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2C8 8 5 14 8 20c2 4 6 5 10 2-4-6-2-12 4-16 2-2 4-3 0-4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2C8 8 5 14 8 20c2 4 6 5 10 2-4-6-2-12 4-16 2-2 4-3 0-4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

@media (max-width: 1024px) {
  .rigel-footer-main__inner {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  }

  .rigel-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .rigel-site-footer {
    font-size: 22px;
  }

  .rigel-footer-benefits {
    padding: 2.5rem 22px;
  }

  .rigel-footer-benefits__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
  }

  .rigel-footer-benefit {
    flex: none;
    gap: 1.25rem;
  }

  .rigel-footer-benefit__icon {
    width: 64px;
    height: 64px;
  }

  .rigel-footer-benefit__icon svg {
    width: 29px;
    height: 29px;
  }

  .rigel-footer-benefit__title {
    font-size: 1.55rem;
  }

  .rigel-footer-benefit__desc {
    font-size: 1.25rem;
  }

  .rigel-footer-benefit__sep {
    width: 100%;
    height: 1px;
    min-height: 0;
  }

  .rigel-footer-main {
    padding: 3.25rem 22px 2.75rem;
  }

  .rigel-footer-main__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.75rem;
  }

  .rigel-footer-brand__logo img {
    max-width: 182px;
  }

  .rigel-footer-brand__text {
    font-size: 1.28rem;
    max-width: none;
  }

  .rigel-footer-col__title {
    font-size: 1.12rem;
    margin-bottom: 1.15rem;
  }

  .rigel-footer-col__list a,
  .rigel-footer-contact__body {
    font-size: 1.28rem;
  }

  .rigel-footer-contact__body small {
    font-size: 1.15rem;
  }

  .rigel-footer-social__link {
    width: 58px;
    height: 58px;
  }

  .rigel-footer-bar__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.15rem;
  }

  .rigel-footer-bar__copy,
  .rigel-footer-bar__legal,
  .rigel-footer-bar__tagline {
    font-size: 1.15rem;
  }

  .rigel-footer-bar__tagline {
    justify-self: center;
    text-align: center;
  }

  .rigel-footer-bar__copy {
    order: 1;
  }

  .rigel-footer-bar__legal {
    order: 2;
  }

  .rigel-footer-bar__tagline {
    order: 3;
  }
}

@media (max-width: 520px) {
  .rigel-site-footer {
    font-size: 23px;
  }

  .rigel-footer-main__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .rigel-footer-benefit__title {
    font-size: 1.65rem;
  }

  .rigel-footer-benefit__desc {
    font-size: 1.3rem;
  }

  .rigel-footer-col__list a,
  .rigel-footer-contact__body {
    font-size: 1.35rem;
  }

  .rigel-footer-brand__text {
    font-size: 1.32rem;
  }

  .rigel-footer-bar__copy,
  .rigel-footer-bar__legal,
  .rigel-footer-bar__tagline {
    font-size: 1.18rem;
  }
}
