/* ═══════════════════════════════════════════════════════════════════
   SITE PAGES — About, Printing, Contact, Import/Export
   Premium brand aesthetic with luxury animations (Marcellus / Figtree)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --sp-dark: #1a1216;
  --sp-cream: #f5efe9;
  --sp-cream-sec: #d8c9d0;
  --sp-magenta: #A62D8B;
  --sp-light-bg: #faf6f1;
  --sp-gray: #5c4d52;
  --sp-gray-light: #a99aa0;
}

/* Animations */
@keyframes sp-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Base */
.sp-page { background: var(--sp-light-bg); font-family: 'Figtree', sans-serif; color: var(--sp-dark); }
.sp-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }

/* Typography */
.sp-label { font-size: 12.5px; letter-spacing: 0.28em; color: var(--sp-magenta); font-weight: 500; text-transform: uppercase; }
.sp-label-cream { color: #e9c9dd; }
.sp-h1 { font-family: 'Marcellus', Georgia, serif; font-weight: 500; font-size: clamp(32px, 4.4vw, 74px); line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.sp-h2 { font-family: 'Marcellus', Georgia, serif; font-weight: 500; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; margin: 0; }
.sp-h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 500; font-size: 20px; margin: 0; }
.sp-body { font-size: 16px; line-height: 1.8; color: var(--sp-gray); }
.sp-body-light { color: var(--sp-cream-sec); }

/* Scroll Reveal */
.sp-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.sp-reveal.sp-in { opacity: 1; transform: translateY(0); }
.sp-reveal.sp-stagger { transition-delay: calc(var(--sp-index, 0) * 0.1s); }

/* Hero Sections */
.sp-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64vh;
  overflow: hidden;
  background: var(--sp-dark);
}

.sp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.sp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 18, 22, 0.95) 20%, rgba(26, 18, 22, 0.55) 100%);
}

.sp-hero__content {
  position: relative;
  z-index: 2;
  color: var(--sp-cream);
}

.sp-hero__title {
  color: var(--sp-cream);
  margin: 22px 0 24px;
  max-width: 820px;
}

.sp-hero__subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: var(--sp-cream-sec);
  max-width: 620px;
  margin: 0;
}

/* Stats Strip */
.sp-stats {
  background: var(--sp-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  background-size: 1px 100%;
  background-repeat: repeat-x;
}

.sp-stat {
  background: var(--sp-dark);
  padding: 44px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-stat:last-child { border-right: none; }

.sp-stat__num {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 38px;
  color: #e9c9dd;
  margin-bottom: 8px;
}

.sp-stat__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--sp-gray-light);
  text-transform: uppercase;
}

/* Grid Sections */
.sp-grid {
  display: grid;
  gap: 24px;
}

.sp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sp-grid--6 { grid-template-columns: repeat(6, 1fr); }

/* Cards */
.sp-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(26, 18, 22, 0.18);
}

.sp-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 18, 22, 0.15) 30%, rgba(26, 18, 22, 0.92) 100%);
}

.sp-card__content {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: var(--sp-cream);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sp-card__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.sp-card__title {
  font-family: 'Marcellus', Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 10px;
}

.sp-card__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--sp-cream-sec);
  margin: 0;
}

/* Dark Sections */
.sp-section--dark {
  background: var(--sp-dark);
  color: var(--sp-cream);
}

.sp-section--dark .sp-h2 { color: var(--sp-cream); }

/* Form */
.sp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sp-dark);
}

.sp-form__input,
.sp-form__select,
.sp-form__textarea {
  padding: 16px 18px;
  border: 1px solid rgba(26, 18, 22, 0.15);
  background: #fff;
  font-size: 14px;
  font-family: 'Figtree', sans-serif;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sp-form__input:focus,
.sp-form__select:focus,
.sp-form__textarea:focus {
  border-color: var(--sp-magenta);
  box-shadow: 0 0 0 3px rgba(143, 42, 114, 0.1);
}

.sp-form__textarea { resize: vertical; min-height: 100px; }

.sp-form__submit {
  background: var(--sp-dark);
  color: var(--sp-cream);
  border: none;
  padding: 17px;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sp-form__submit:hover {
  background: var(--sp-magenta);
}

/* Contact Info Card */
.sp-contact-card {
  background: var(--sp-dark);
  border-radius: 6px;
  padding: 40px;
  color: var(--sp-cream);
}

.sp-contact-card__section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sp-contact-card__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-contact-card__label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: #e9c9dd;
  text-transform: uppercase;
}

.sp-contact-card__value {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--sp-cream-sec);
}

.sp-contact-card__link {
  color: var(--sp-cream);
  text-decoration: none;
  transition: color 0.25s ease;
}

.sp-contact-card__link:hover {
  color: var(--sp-magenta);
}

.sp-contact-card__socials {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.sp-contact-card__social {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.sp-contact-card__social:hover {
  border-color: var(--sp-magenta);
  background: rgba(143, 42, 114, 0.1);
}

.sp-contact-card__social img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* Tabs */
.sp-tabs {
  position: sticky;
  top: 120px;
  z-index: 40;
  background: rgba(250, 246, 241, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 18, 22, 0.08);
  padding: 22px 40px;
}

.sp-tabs__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sp-tabs__button {
  background: transparent;
  color: var(--sp-dark);
  border: 1px solid var(--sp-dark);
  padding: 13px 34px;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sp-tabs__button.active {
  background: var(--sp-magenta);
  color: var(--sp-cream);
  border-color: var(--sp-magenta);
}

/* Accordion */
.sp-accordion { display: flex; flex-direction: column; gap: 16px; }

.sp-accordion__item {
  border: 1px solid rgba(26, 18, 22, 0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.sp-accordion__item.open {
  box-shadow: 0 8px 24px -8px rgba(26, 18, 22, 0.12);
}

.sp-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 28px;
  background: #fff;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--sp-dark);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.sp-accordion__item.open .sp-accordion__trigger {
  background: var(--sp-dark);
  color: var(--sp-cream);
}

.sp-accordion__trigger:hover {
  background: #f5f1ed;
}

.sp-accordion__item.open .sp-accordion__trigger:hover {
  background: var(--sp-magenta);
}

.sp-accordion__icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.sp-accordion__item.open .sp-accordion__icon {
  transform: rotate(180deg);
}

.sp-accordion__content {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.sp-accordion__item.open .sp-accordion__content {
  max-height: 1000px;
  padding: 22px 28px;
}

.sp-accordion__text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--sp-gray);
}

/* Marquee */
.sp-marquee { overflow: hidden; background: var(--sp-dark); padding: 60px 0; }

.sp-marquee__track {
  display: flex;
  gap: 32px;
  animation: sp-marquee 40s linear infinite;
  will-change: transform;
}

.sp-marquee__track--paused { animation-play-state: paused; }

.sp-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 60px;
}

.sp-marquee__logo {
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.sp-marquee__item:hover .sp-marquee__logo {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1080px) {
  .sp-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .sp-grid--6 { grid-template-columns: repeat(4, 1fr); }
  .sp-hero { min-height: 50vh; }
  .sp-tabs { top: 90px; }
}

@media (max-width: 820px) {
  .sp-container { padding: 0 28px; }
  .sp-grid--2 { grid-template-columns: 1fr; }
  .sp-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .sp-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .sp-grid--6 { grid-template-columns: repeat(3, 1fr); }
  .sp-card { height: 300px; }
  .sp-tabs { padding: 16px 28px; }
  .sp-tabs__buttons { gap: 12px; flex-wrap: wrap; }
  .sp-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .sp-container { padding: 0 20px; }
  .sp-h1 { font-size: clamp(24px, 6vw, 40px); }
  .sp-h2 { font-size: clamp(20px, 5vw, 32px); }
  .sp-grid--3 { grid-template-columns: 1fr; }
  .sp-grid--4 { grid-template-columns: 1fr; }
  .sp-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .sp-card { height: 240px; }
  .sp-hero { min-height: 40vh; }
  .sp-tabs { position: relative; top: 0; }
  .sp-tabs__buttons { flex-direction: column; gap: 8px; }
  .sp-tabs__button { width: 100%; }
  .sp-stats { grid-template-columns: repeat(2, 1fr); }
  .sp-stat { padding: 28px 14px; }
  .sp-marquee__track { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-reveal, .sp-card, .sp-accordion__icon, .sp-tabs__button {
    transition: none !important;
    animation: none !important;
  }
}
