﻿/* Scroll reveal */
.spi-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.spi-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.spi-header {
  padding-top: 18px;
  padding-bottom: 10px;
}

.spi-header .wp-block-site-logo {
  margin-bottom: 8px;
}

.spi-header .wp-block-site-logo img {
  max-height: 84px;
  width: auto;
}

.spi-header .wp-block-navigation {
  margin-top: 2px;
}

.spi-header .wp-block-navigation a {
  display: inline-block;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 120ms ease;
}

.spi-header .wp-block-navigation a:hover,
.spi-header .wp-block-navigation a:focus {
  background-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

.spi-header .wp-block-navigation a:active {
  background-color: rgba(0, 0, 0, 0.24);
  transform: translateY(0);
}

.spi-header .wp-block-navigation a[aria-current="page"],
.spi-header .wp-block-navigation .current-menu-item > a,
.spi-header .wp-block-navigation .current-menu-ancestor > a,
.spi-header .wp-block-navigation .wp-block-navigation-item.is-active > a {
  background-color: rgba(0, 0, 0, 0.20);
}

/* Buttons */
.wp-block-button__link {
  transition: transform 120ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.wp-block-button__link:active {
  filter: brightness(0.97);
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.14);
}

.wp-block-buttons .wp-block-button {
  margin-right: 8px;
}

/* Footer */
.spi-footer {
  text-align: center;
}

.spi-footer p {
  text-align: center;
}

.spi-divider {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.spi-footer .spi-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 10px;
  width: 100%;
}

.spi-footer .spi-legal-links a {
  text-decoration: none;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background-color: #e3e3e3;
  color: var(--wp--preset--color--charcoal);
  padding: 4px 12px;
  border-radius: 999px;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.spi-footer .spi-legal-links a:hover,
.spi-footer .spi-legal-links a:focus {
  background-color: #d6d6d6;
  border-color: rgba(17, 17, 17, 0.26);
}

.spi-footer .spi-legal-links a:active {
  background-color: #cccccc;
}

/* Home overview panel */
.spi-quick-panel {
  display: none;
  border: 1px solid rgba(17, 17, 17, 0.1);
}

.spi-quick-panel.is-open {
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Premium home sections */
.spi-home-hero {
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 16px;
  padding-left: 20px;
  padding-right: 20px;
  background: linear-gradient(135deg, #f8f8f8 0%, #efefef 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.spi-home-hero h1 {
  letter-spacing: 0.01em;
}

.spi-home-pillars .wp-block-column {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  padding: 16px 14px;
  background-color: #fafafa;
}

.spi-home-offers {
  border-top: 1px solid rgba(17, 17, 17, 0.10);
}

.spi-home-cta {
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 14px;
}

/* Mobile */
@media (max-width: 640px) {
  .spi-header {
    padding-top: 14px;
    padding-bottom: 6px;
  }

  .spi-header .wp-block-site-logo img {
    max-height: 64px;
  }

  .spi-header .wp-block-navigation {
    justify-content: center;
  }
}
