/* Squatty Potty — editorial warm redesign (overrides Nicepage) */
:root {
  --sp-ink: #1c1917;
  --sp-warm-white: #faf7f2;
  --sp-parchment: #f0e8db;
  --sp-clay: #b54a28;
  --sp-clay-dark: #8f381e;
  --sp-sage: #4a6670;
  --sp-mist: #e5ebe8;
  --sp-amber-line: #d4a574;
}

.sp-redesign.u-body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif !important;
  font-size: 17px;
  line-height: 1.65;
  color: var(--sp-ink) !important;
  background-color: var(--sp-warm-white) !important;
  -webkit-font-smoothing: antialiased;
}

.sp-redesign h1,
.sp-redesign h2,
.sp-redesign h3,
.sp-redesign h4,
.sp-redesign h5,
.sp-redesign .u-text.u-text-1:not(.u-accordion-link .u-accordion-link-text),
.sp-redesign .u-custom-font.u-font-montserrat {
  font-family: "Fraunces", "Georgia", serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
}

.sp-redesign .u-header {
  background: rgba(250, 247, 242, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 25, 23, 0.12);
  box-shadow: none !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sp-redesign .u-header .u-sheet-1 {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-left: 4px solid var(--sp-clay);
  padding-left: 1.25rem;
}

.sp-redesign .u-header .u-logo-image {
  max-height: 48px;
  width: auto;
}

/* Section backgrounds — warm editorial palette */
.sp-redesign .u-palette-5-light-3,
.sp-redesign .u-palette-2-light-3 {
  background: linear-gradient(180deg, var(--sp-parchment) 0%, var(--sp-warm-white) 100%) !important;
}

.sp-redesign .u-palette-1-light-3 {
  background: var(--sp-mist) !important;
}

.sp-redesign .u-palette-1-light-2 {
  background: #dce6e3 !important;
}

.sp-redesign .u-palette-3-light-3,
.sp-redesign .u-palette-3-light-2 {
  background: var(--sp-warm-white) !important;
  border: 1px solid rgba(28, 25, 23, 0.08);
}

.sp-redesign section[id] {
  position: relative;
}

.sp-redesign section[id]::before {
  content: "";
  display: block;
  height: 0;
}

/* Hero: reverse columns on desktop */
@media (min-width: 992px) {
  .sp-redesign:not(.page-legal) .u-section-1 .u-layout-row {
    flex-direction: row-reverse !important;
  }
}

.sp-redesign:not(.page-legal) .u-section-1 .u-image-1 {
  border-radius: 0 !important;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
  min-height: 520px !important;
  box-shadow: -18px 18px 0 0 var(--sp-amber-line) !important;
}

.sp-redesign:not(.page-legal) .u-section-1 .u-layout-cell-2 {
  padding-left: 1rem !important;
  padding-right: 2rem !important;
}

.sp-redesign:not(.page-legal) .u-section-1 .u-text-1 {
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  border-left: 6px solid var(--sp-clay);
  padding-left: 1.25rem;
  margin-left: 0 !important;
}

.sp-redesign:not(.page-legal) .u-section-1 .u-btn-1,
.sp-redesign .u-btn.u-palette-1-base {
  border-radius: 0 !important;
  background: var(--sp-clay) !important;
  color: #fff !important;
  border: 2px solid var(--sp-clay) !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-weight: 600 !important;
  padding: 1rem 2.25rem !important;
  box-shadow: 4px 4px 0 var(--sp-ink) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sp-redesign .u-section-1 .u-btn-1:hover,
.sp-redesign .u-btn.u-palette-1-base:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--sp-ink) !important;
  background: var(--sp-clay-dark) !important;
}

/* Feature grid cards */
.sp-redesign .u-section-2 .u-repeater-1 {
  gap: 1.25rem !important;
}

.sp-redesign .u-section-2 .u-list-item,
.sp-redesign .u-section-6 .u-list-item {
  border-radius: 0 !important;
  background: #fff !important;
  border: 1px solid rgba(28, 25, 23, 0.12) !important;
  border-left: 5px solid var(--sp-sage) !important;
  box-shadow: 8px 8px 0 rgba(28, 25, 23, 0.06) !important;
}

.sp-redesign .u-section-2 .u-text.u-text-2,
.sp-redesign .u-section-2 .u-text.u-text-4,
.sp-redesign .u-section-2 .u-text.u-text-6,
.sp-redesign .u-section-2 .u-text.u-text-8 {
  color: var(--sp-sage) !important;
  font-family: "Fraunces", serif !important;
  font-size: 1.15rem !important;
}

/* Alternating editorial blocks */
.sp-redesign .u-section-3 .u-image-1,
.sp-redesign .u-section-3 .u-image-2 {
  border-radius: 0 !important;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 12%);
}

.sp-redesign .u-section-3 .u-layout-cell-2,
.sp-redesign .u-section-3 .u-layout-cell-3 {
  background: transparent !important;
}

.sp-redesign .u-section-4 .u-list .u-list-item {
  background: var(--sp-ink) !important;
  color: var(--sp-parchment) !important;
  padding: 1.5rem !important;
  border-radius: 0 !important;
}

.sp-redesign .u-section-4 .u-text-2,
.sp-redesign .u-section-4 .u-text-3,
.sp-redesign .u-section-4 .u-text-4,
.sp-redesign .u-section-4 .u-text-5 {
  color: var(--sp-parchment) !important;
}

.sp-redesign .u-section-4 .u-image-1,
.sp-redesign .u-section-4 .u-image-2 {
  border-radius: 0 !important;
}

.sp-redesign .u-section-5 .u-layout-cell-2 {
  border-radius: 0 !important;
  background: #fff !important;
  border: 2px solid var(--sp-ink) !important;
}

.sp-redesign .u-section-7 .u-gradient.u-image {
  border-radius: 0 !important;
  filter: contrast(1.05) saturate(0.95);
}

/* CTA strip */
.sp-redesign .u-section-8 .u-layout-wrap-1 {
  border-radius: 0 !important;
  border: 3px solid var(--sp-ink) !important;
  overflow: hidden;
}

.sp-redesign .u-section-8 .u-white.u-layout-cell-1 {
  background: var(--sp-clay) !important;
  color: #fff !important;
}

.sp-redesign .u-section-8 .u-text-1 {
  color: #fff !important;
}

.sp-redesign .u-section-8 .u-white.u-layout-cell-2 {
  background: var(--sp-ink) !important;
}

.sp-redesign .u-section-8 .u-btn-1 {
  background: #fff !important;
  color: var(--sp-ink) !important;
  border-color: #fff !important;
}

/* Testimonials */
.sp-redesign .u-section-9 .u-list-item {
  border-radius: 0 !important;
  background: linear-gradient(145deg, #fff 0%, var(--sp-parchment) 100%) !important;
  border-top: 3px solid var(--sp-clay) !important;
}

.sp-redesign .u-section-9 .u-text-1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  text-align: left !important;
  max-width: 32ch;
}

/* FAQ */
.sp-redesign .u-section-10 .u-accordion-link {
  border-radius: 0 !important;
  border: 1px solid rgba(28, 25, 23, 0.15) !important;
  margin-bottom: 0.5rem !important;
  background: #fff !important;
}

.sp-redesign .u-section-10 .u-accordion-link-text {
  font-family: "DM Sans", sans-serif !important;
  font-weight: 600 !important;
}

.sp-redesign .u-section-10 .u-accordion-pane {
  border-radius: 0 !important;
  background: var(--sp-parchment) !important;
}

/* Inner legal/contact pages */
.sp-redesign.page-legal .u-section-1 .u-text-1 {
  font-size: 1.85rem !important;
  border-left: 4px solid var(--sp-clay);
  padding-left: 1rem;
  margin-bottom: 1.25rem !important;
}

.sp-redesign.page-legal .u-section-1 .u-sheet-1,
.sp-redesign .u-section-1#block-12 .u-sheet-1 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.sp-redesign.page-legal .u-section-1 .u-text-2,
.sp-redesign #block-12 .u-text-2 {
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: left !important;
}

.sp-redesign.page-legal .u-header ~ .u-section-1,
.sp-redesign.page-legal .u-section-1#block-12 {
  padding-top: 3rem;
  padding-bottom: 4rem;
  min-height: auto !important;
}

/* ----- Footer: grid bar (replaces stacked logo + hamburger) ----- */
.sp-redesign .sp-footer,
.sp-redesign footer.sp-footer.u-footer {
  background: var(--sp-ink) !important;
  border-top: none !important;
  position: relative;
  padding: 0 !important;
  margin-top: 3rem;
}

.sp-redesign .sp-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sp-clay), var(--sp-amber-line), var(--sp-sage));
}

.sp-redesign .sp-footer-sheet {
  display: flex !important;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 1.5rem 2rem !important;
  max-width: 1140px;
}

.sp-redesign .sp-footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .sp-redesign .sp-footer-top {
    grid-template-columns: minmax(140px, 220px) 1fr;
  }
}

.sp-redesign .sp-footer-logo {
  display: inline-block;
  filter: brightness(1.08);
}

.sp-redesign .sp-footer-logo .u-logo-image {
  max-height: 52px;
  width: auto;
}

.sp-redesign .sp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  justify-content: flex-start;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1.5rem;
}

@media (max-width: 767px) {
  .sp-redesign .sp-footer-links {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
  }
}

.sp-redesign .sp-footer-links a {
  color: rgba(250, 247, 242, 0.92) !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sp-redesign .sp-footer-links a:hover {
  color: #fff !important;
  border-bottom-color: var(--sp-amber-line);
}

.sp-redesign .sp-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.sp-redesign .sp-footer-copy {
  color: rgba(250, 247, 242, 0.55) !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.06em;
  margin: 0 !important;
}

/* Tone down Nicepage motion for calmer page */
.sp-redesign [data-animation-name] {
  animation-duration: 0.6s !important;
}

@media (prefers-reduced-motion: reduce) {
  .sp-redesign * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
