/* ==========================================================================
   Sitting Pretty Potties — Global Design System
   Extra vertical rhythm intentionally generous for breathing room.
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand */
  --spp-forest: #152820;
  --spp-forest-deep: #0e1c16;
  --spp-forest-soft: #1f3a2e;
  --spp-gold: #b8956a;
  --spp-gold-deep: #9a7a52;
  --spp-olive: #6b7355;
  --spp-olive-soft: #8a916f;
  --spp-teal: #1a7a78;
  --spp-charcoal: #1c1c1c;
  --spp-ink: #2a2a2a;
  --spp-muted: #5c5c5c;
  --spp-cream: #f7f4ef;
  --spp-cream-dark: #efeae2;
  --spp-sand: #e8e2d8;
  --spp-white: #ffffff;
  --spp-off-white: #faf9f7;
  --spp-border: #e2ddd4;
  --spp-border-soft: #eeeae3;

  /* Type */
  --spp-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --spp-sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --spp-script: "Great Vibes", "Apple Chancery", cursive;

  /* Layout — generous breathing room */
  --spp-max: 1280px;
  --spp-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --spp-section-y: clamp(5rem, 10vw, 8.5rem);
  --spp-section-y-sm: clamp(3.5rem, 7vw, 5.5rem);
  --spp-radius: 4px;
  --spp-radius-lg: 12px;
  --spp-radius-pill: 999px;
  --spp-shadow: 0 12px 40px rgba(21, 40, 32, 0.08);
  --spp-shadow-soft: 0 4px 20px rgba(21, 40, 32, 0.06);

  /* Motion */
  --spp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spp-duration: 0.35s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--spp-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--spp-ink);
  background: var(--spp-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.spp-menu-open,
body.spp-modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--spp-duration) var(--spp-ease);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spp-container {
  width: 100%;
  max-width: var(--spp-max);
  margin: 0 auto;
  padding-inline: var(--spp-gutter);
}

.spp-section {
  padding-block: var(--spp-section-y);
}

.spp-section--tight {
  padding-block: var(--spp-section-y-sm);
}

.spp-section--cream {
  background: var(--spp-cream);
}

.spp-section--sand {
  background: var(--spp-cream-dark);
}

/* Typography */
.spp-eyebrow {
  font-family: var(--spp-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--spp-gold);
}

.spp-eyebrow--dark {
  color: var(--spp-forest);
}

.spp-heading {
  font-family: var(--spp-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--spp-forest);
  letter-spacing: -0.01em;
}

.spp-heading--xl {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}

.spp-heading--lg {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

.spp-heading--md {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.spp-heading--sm {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.spp-script {
  font-family: var(--spp-script);
  font-weight: 400;
  color: var(--spp-teal);
  line-height: 1.2;
}

.spp-lede {
  font-size: 1.05rem;
  color: var(--spp-muted);
  max-width: 38rem;
}

.spp-text {
  color: var(--spp-muted);
}

.spp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--spp-gold);
}

.spp-divider::before,
.spp-divider::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.spp-section-intro {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.spp-section-intro .spp-heading {
  margin-top: 0.65rem;
}

.spp-section-intro .spp-lede {
  margin: 1rem auto 0;
}

/* Buttons */
.spp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--spp-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--spp-radius);
  border: 1.5px solid transparent;
  transition:
    background var(--spp-duration) var(--spp-ease),
    color var(--spp-duration) var(--spp-ease),
    border-color var(--spp-duration) var(--spp-ease),
    transform var(--spp-duration) var(--spp-ease),
    box-shadow var(--spp-duration) var(--spp-ease);
  white-space: nowrap;
}

.spp-btn:hover {
  transform: translateY(-1px);
}

.spp-btn--primary {
  background: var(--spp-forest);
  color: var(--spp-white);
}

.spp-btn--primary:hover {
  background: var(--spp-forest-soft);
}

.spp-btn--gold {
  background: var(--spp-gold);
  color: var(--spp-white);
}

.spp-btn--gold:hover {
  background: var(--spp-gold-deep);
}

.spp-btn--olive {
  background: var(--spp-olive);
  color: var(--spp-white);
}

.spp-btn--olive:hover {
  background: #5a6148;
}

.spp-btn--charcoal {
  background: #2c2c2c;
  color: var(--spp-white);
}

.spp-btn--charcoal:hover {
  background: #111;
}

.spp-btn--outline {
  background: transparent;
  color: var(--spp-forest);
  border-color: var(--spp-forest);
}

.spp-btn--outline:hover {
  background: var(--spp-forest);
  color: var(--spp-white);
}

.spp-btn--outline-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--spp-forest);
  border-color: rgba(255, 255, 255, 0.9);
}

.spp-btn--ghost {
  background: transparent;
  color: var(--spp-forest);
  padding-inline: 0;
  min-height: auto;
  letter-spacing: 0.08em;
}

.spp-btn--ghost:hover {
  color: var(--spp-gold-deep);
  transform: none;
}

.spp-btn--full {
  width: 100%;
}

.spp-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Grid helpers */
.spp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.spp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.spp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (max-width: 960px) {
  .spp-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spp-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .spp-grid-2,
  .spp-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Media */
.spp-media {
  overflow: hidden;
  border-radius: var(--spp-radius-lg);
  background: var(--spp-cream-dark);
}

.spp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Page shell */
.spp-main {
  min-height: 50vh;
}

.spp-page-hero {
  padding: calc(clamp(4rem, 8vw, 6rem) + 3.25rem) 0 clamp(3rem, 5vw, 4rem);
  text-align: center;
  background: var(--spp-cream);
}

.spp-page-hero .spp-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #d4a08a 0%, var(--spp-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spp-page-hero .spp-lede {
  margin: 1.25rem auto 0;
}

/* Floating "Text us" chat bubble */
.spp-sticky {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 95;
}

.spp-text-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--spp-gold);
  color: var(--spp-white);
  box-shadow: 0 8px 24px rgba(21, 40, 32, 0.22);
  transition: background var(--spp-duration) var(--spp-ease), transform var(--spp-duration) var(--spp-ease);
}

.spp-text-bubble:hover,
.spp-text-bubble[aria-expanded="true"] {
  background: var(--spp-gold-deep);
  transform: scale(1.05);
}

.spp-text-bubble svg {
  width: 1.85rem;
  height: 1.85rem;
}

/* Desktop "Text us" card: computers can't open a texting app, so they get a short form */
.spp-text-card {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: 21rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--spp-white);
  border: 1px solid var(--spp-border-soft);
  border-radius: var(--spp-radius-lg);
  box-shadow: var(--spp-shadow);
  text-align: center;
}

.spp-text-card[hidden] {
  display: none;
}

.spp-text-card__close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  border: 0;
  background: none;
  color: var(--spp-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.spp-text-card__title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spp-gold-deep);
}

.spp-text-card__lede {
  margin: 0.35rem 0 1rem;
  font-family: var(--spp-serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--spp-forest);
}

.spp-text-form {
  display: grid;
  gap: 0.7rem;
  text-align: left;
}

.spp-text-form__field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--spp-ink);
}

.spp-text-form__field input,
.spp-text-form__field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--spp-border);
  border-radius: var(--spp-radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--spp-ink);
  background: var(--spp-white);
  resize: vertical;
}

.spp-text-form__field input:focus,
.spp-text-form__field textarea:focus {
  outline: none;
  border-color: var(--spp-gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.2);
}

.spp-text-form[hidden],
.spp-text-form__done[hidden] {
  display: none;
}

.spp-text-form__hp {
  position: absolute;
  left: -9999px;
}

.spp-text-form__consent {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--spp-muted);
}

.spp-text-form__consent a {
  color: inherit;
  text-decoration: underline;
}

.spp-text-form__error {
  margin: 0;
  font-size: 0.85rem;
  color: #b91c1c;
}

.spp-text-form__send {
  width: 100%;
  justify-content: center;
}

.spp-text-form__send:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Reveal motion */
@keyframes spp-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spp-reveal {
  animation: spp-fade-up 0.7s var(--spp-ease) both;
}

/* Default page content (preserves existing WP/page builder HTML) */
.entry-content {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--spp-ink);
}

.entry-content > * + * {
  margin-top: 1.15rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--spp-serif);
  color: var(--spp-forest);
  line-height: 1.25;
  margin-top: 2rem;
}

.entry-content a {
  color: var(--spp-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content img {
  border-radius: var(--spp-radius);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .spp-reveal,
  .spp-btn {
    animation: none;
    transition: none;
  }
}
