:root {
  --bg-page: #f7f4f6;
  --bg-home: #faf7f9;
  --bg-section: #ffffff;
  --bg-section-soft: #f9f9f9;

  --bubble-pink: #fde5f4;
  --bubble-peach: #faded3;
  --bubble-yellow: #f8f5d8f0;
  --bubble-mint: #e0f9de;
  --bubble-sky: #ddf6f9;
  --bubble-lavender: #f6edff;

  --accent-primary: #93e4d0;
  --accent-primary-hover: #87cabc;
  --accent-primary-rgb: 147 228 208;

  --text-main: #2f2f2f;
  --text-body: #555555;
  --text-muted: #666666;
  --text-on-accent: #000000;
  --text-accent-dark: #2f5f56;

  --border-soft: #d9d9d9;
  --border-header: #eeeeee;

  --bg-header: #ffffff;
  --nav-hover-bg: #e6f2ef;

  --shadow-soft: rgb(47 47 47 / 0.08);

  --paw-grey: #9a9aa0;
  --paw-grey-rgb: 168 160 170;

  --card-pink: #fdf2f8;
  --card-blue: #f5f8ff;
  --card-mint: #f2fbf7;
}

/* =========================
   BASE
========================= */

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

section {
  padding: 5rem 1.5rem;
  scroll-margin-top: 90px;
}

img {
  max-width: 100%;
  display: block;
}
/* Section titles */

section h2 {
  color: var(--text-main);
  position: relative;
  margin-bottom: 1.2rem;
}

section h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin: 0.8rem auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--bubble-pink),
    var(--bubble-peach),
    var(--accent-primary)
  );
  transform: scaleX(0.7);
  opacity: 0.85;
  animation: accentReveal 0.7s ease forwards;
  transform-origin: center;
}

/* REUSABLE COMPONENTS */

.btn {
  font-family: inherit;
  display: inline-block;
  text-align: center;
  min-width: 220px;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  box-sizing: border-box;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(var(--accent-primary-rgb) / 0.25);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  border: 3px solid var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
}

.btn-secondary {
  background-color: rgb(var(--accent-primary-rgb) / 0.08);
  color: var(--text-main);
  border: 3px solid var(--accent-primary-hover);
}

.btn-secondary:hover {
  background-color: rgb(var(--accent-primary-rgb) / 0.14);
}

.tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgb(var(--accent-primary-rgb) / 0.15);
  color: var(--text-accent-dark);
  font-weight: 500;
}

/* Card color rhythm */

.quiz-step:nth-child(1),
.process-step:nth-child(1),
.story-card:nth-child(1) {
  background: #fff7fb;
}

.quiz-step:nth-child(2),
.process-step:nth-child(2),
.story-card:nth-child(2) {
  background: #f7fbff;
}

.quiz-step:nth-child(3),
.process-step:nth-child(3),
.story-card:nth-child(3) {
  background: #f7fdf9;
}

.quiz-step:nth-child(4),
.process-step:nth-child(4) {
  background: #fffdf4;
}

/* Card hover interaction */

.feature,
.personality-card,
.pet-card,
.quiz-step,
.process-step,
.story-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature:hover,
.personality-card:hover,
.pet-card:hover,
.quiz-step:hover,
.process-step:hover,
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px var(--shadow-soft);
}

.about-intro,
.quiz-intro,
.contact-container > p {
  margin-bottom: 2rem;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-18px) translateX(10px);
  }
}

@keyframes pawWiggle {
  0%,
  100% {
    transform: rotate(-18deg) scale(1);
  }
  50% {
    transform: rotate(-10deg) scale(1.07);
  }
}

@keyframes pawWiggleTwo {
  0%,
  100% {
    transform: rotate(14deg) scale(1);
  }
  50% {
    transform: rotate(6deg) scale(1.06);
  }
}

@keyframes accentReveal {
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   HEADER
========================= */

header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--text-main);
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background-color 0.25s ease;
}

.nav-toggle:hover {
  background-color: rgb(var(--accent-primary-rgb) / 0.08);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-primary-hover);
  outline-offset: 3px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

nav a:hover {
  background-color: var(--nav-hover-bg);
  color: var(--text-accent-dark);
  transform: translateY(-1px);
}

header nav a.active {
  background-color: rgb(var(--accent-primary-rgb) / 0.16);
  color: var(--text-accent-dark);
  box-shadow: inset 0 0 0 1px rgb(var(--accent-primary-rgb) / 0.22);
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  gap: 0.4rem;
  line-height: 1;
  margin-right: 0.5rem;
}

.logo-main {
  font-weight: 500;
}

.logo-accent {
  font-family: "Segoe Print", cursive;
  font-size: 1.15em;
  line-height: 1;
}
.logo img {
  width: 40px;
  height: 40px;
}

/* =========================
   HOME
========================= */

#home {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-home);
  isolation: isolate;
}

.home-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  min-height: 18rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

#home h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin: 0;
  min-height: 7.5rem;
}

#home p {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 620px;
  margin: 0;
  min-height: 3.5rem;
}

.home-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.home-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
}

.bubble {
  border-radius: 50%;
}

.bubble-1 {
  width: 24rem;
  aspect-ratio: 1;
  top: -5rem;
  left: -7rem;
  background: var(--bubble-pink);
}

.bubble-2 {
  width: 10rem;
  aspect-ratio: 1;
  top: 3.5rem;
  left: 12%;
  background: var(--bubble-peach);
}

.bubble-3 {
  width: 22rem;
  aspect-ratio: 1;
  top: 7rem;
  left: 24%;
  background: var(--bubble-yellow);
}

.bubble-4 {
  width: 26rem;
  aspect-ratio: 1;
  bottom: -8rem;
  right: 18%;
  background: var(--bubble-mint);
}

.bubble-5 {
  width: 19rem;
  aspect-ratio: 1;
  top: -2rem;
  right: 10%;
  background: var(--bubble-sky);
}

.bubble-6 {
  width: 23rem;
  aspect-ratio: 1;
  top: 6rem;
  right: -5rem;
  background: var(--bubble-lavender);
}

.bubble-1,
.bubble-3,
.bubble-5 {
  animation: floatSoft 7s ease-in-out infinite;
}

.bubble-2,
.bubble-4,
.bubble-6 {
  animation: floatSoft 9s ease-in-out infinite reverse;
}

.paw {
  position: absolute;
  width: 120px;
  height: 120px;
  background-color: rgb(var(--paw-grey-rgb) / 0.44);
  -webkit-mask: url("logo-mask.png") center / contain no-repeat;
  mask: url("logo-mask.png") center / contain no-repeat;
  z-index: 1;
}

.paw-1 {
  left: 6%;
  bottom: 15%;
  transform: rotate(-18deg);
  animation: pawWiggle 6s ease-in-out infinite;
}

.paw-2 {
  width: 96px;
  height: 96px;
  top: 13%;
  right: 5.5%;
  transform: rotate(14deg);
  background-color: rgb(var(--paw-grey-rgb) / 0.34);
  animation: pawWiggleTwo 7s ease-in-out infinite;
}

/* =========================
   ABOUT
========================= */

#about {
  background-color: var(--bg-section-soft);
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

#about h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* FEATURES GRID */

.about-features {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* FEATURE CARD */

.feature {
  background: var(--bg-section);
  padding: 1.5rem;
  border-radius: 24px;
  max-width: 260px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow-soft);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* OUTRO */

.about-outro {
  margin-top: 2.5rem;
  font-weight: 500;
}

.feature:nth-child(1) {
  background: var(--card-pink); /* soft pink */
}

.feature:nth-child(2) {
  background: var(--card-blue); /* soft blue */
  transform: translateY(-4px);
}

.feature:nth-child(3) {
  background: var(--card-mint); /* soft mint */
}

.feature i,
.feature-icon {
  opacity: 0.85;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.feature:hover .feature-icon {
  transform: scale(1.1);
}

.about-bridge {
  margin-top: 1.8rem;
}

/* =========================
   QUIZ
========================= */

#quiz {
  background:
    radial-gradient(circle at 20% 20%, var(--bubble-pink) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, var(--bubble-mint) 0%, transparent 60%),
    var(--bg-section-soft);
}

.quiz-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

#quiz h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.quiz-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.quiz-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.quiz-step {
  background: var(--bg-section);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 12px 30px var(--shadow-soft);
}

.quiz-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.quiz-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================
   QUIZ MODAL
========================= */

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.quiz-modal.open {
  display: block;
}

.quiz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(47 47 47 / 0.45);
  backdrop-filter: blur(2px);
}

.quiz-modal-content {
  position: relative;
  width: min(92%, 620px);
  margin: 6vh auto;
  background: var(--bg-section);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgb(47 47 47 / 0.18);
  z-index: 1;
  animation: fadeLift 0.35s ease forwards;
}

.quiz-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgb(var(--accent-primary-rgb) / 0.12);
  color: var(--text-main);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.quiz-modal-close:focus-visible {
  outline: 2px solid var(--accent-primary-hover);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgb(var(--accent-primary-rgb) / 0.15);
}

.quiz-modal-close:hover {
  background: rgb(var(--accent-primary-rgb) / 0.2);
  transform: scale(1.04);
}

.quiz-modal-note {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgb(var(--accent-primary-rgb) / 0.12);
  color: var(--text-accent-dark);
  font-size: 0.85rem;
  font-weight: 500;
}

.quiz-modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.quiz-modal-intro {
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.quiz-mockup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-modal-step {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quiz-modal-step label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.quiz-modal-step select {
  width: 100%;
  font: inherit;
  color: var(--text-main);
  background: var(--bg-section-soft);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-sizing: border-box;
}

.quiz-modal-step select:focus {
  outline: none;
  border-color: var(--accent-primary-hover);
  box-shadow: 0 0 0 4px rgb(var(--accent-primary-rgb) / 0.15);
}

.quiz-modal-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

.quiz-mockup-result {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--bg-section-soft);
  border: 1px solid rgb(var(--accent-primary-rgb) / 0.15);
}

.quiz-mockup-result.visible {
  display: block;
}

.quiz-mockup-result h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.quiz-mockup-result p {
  margin: 0;
  color: var(--text-body);
}

/* =========================
   PERSONALITIES
========================= */

#personalities {
  background: var(--bg-section-soft);
}

.personalities-container {
  max-width: 1100px;
  margin: 0 auto;
}

#personalities h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.personalities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.personality-card {
  background: var(--bg-section);
  border: 1px solid rgb(var(--accent-primary-rgb) / 0.08);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 12px 30px var(--shadow-soft);
}

.personality-name {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  text-align: center;
}

.personality-img-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.personality-img-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.personality-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--bubble-lavender);
}

.personality-img-name span {
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
  text-align: center;
  margin-top: 0.2rem;
}

.personality-card:nth-child(1) {
  background: linear-gradient(to bottom, #fff 0%, #fff7fb 100%);
}

.personality-card:nth-child(2) {
  background: linear-gradient(to bottom, #fff 0%, #f7fbff 100%);
}

.personality-card:nth-child(3) {
  background: linear-gradient(to bottom, #fff 0%, #fffdf4 100%);
}

.personality-card:nth-child(4) {
  background: linear-gradient(to bottom, #fff 0%, #f8fcff 100%);
}

/* =========================
   EXPLORE
========================= */

#explore {
  background: var(--bg-section);
}

.explore-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.explore-grid {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.pet-card {
  background: var(--bg-section-soft);
  border-radius: 24px;
  border-top: 6px solid rgb(var(--accent-primary-rgb) / 0.45);
  overflow: hidden;
  max-width: 320px;
  box-shadow: 0 12px 30px var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.pet-card:nth-child(3n + 1) {
  border-top-color: #f6cfe8;
}

.pet-card:nth-child(3n + 2) {
  border-top-color: #bfeee3;
}

.pet-card:nth-child(3n + 3) {
  border-top-color: #f2e7b7;
}

.pet-image {
  width: 100%;
  height: 220px;
  background: var(--bubble-lavender); /* fallback color */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.pet-image::after {
  content: "🐾";
  font-size: 2rem;
  opacity: 0.25;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.pet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.pet-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  text-align: left;
}

.pet-content h3 {
  margin-bottom: 0.25rem;
}

.pet-trait {
  font-size: 0.9rem;
  color: var(--text-accent-dark);
  margin-bottom: 0.5rem;
}

.pet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.pet-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.meet-link {
  font-size: 0.95rem;
  color: var(--text-accent-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
  margin-top: auto;
}

.meet-link:hover {
  text-decoration: underline;
  color: var(--accent-primary-hover);
}

.explore-grid .pet-card {
  opacity: 0;
  transform: translateY(12px);
}

.explore-grid .pet-card.reveal {
  animation: fadeLift 0.7s ease forwards;
}

/* =========================
   PET MODAL
========================= */

.pet-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.pet-modal.open {
  display: block;
}

.pet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(47 47 47 / 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pet-modal.open .pet-modal-backdrop {
  opacity: 1;
}

.pet-modal-content {
  position: relative;
  width: min(90%, 540px);
  margin: 8vh auto;
  background: var(--bg-section);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgb(47 47 47 / 0.18);
  z-index: 1;
  animation: fadeLift 0.35s ease forwards;
}

.pet-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgb(var(--accent-primary-rgb) / 0.12);
  color: var(--text-main);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.pet-modal-close:focus-visible {
  outline: 2px solid var(--accent-primary-hover);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgb(var(--accent-primary-rgb) / 0.15);
}

.pet-modal-close:hover {
  background: rgb(var(--accent-primary-rgb) / 0.2);
  transform: scale(1.04);
}

.pet-modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.pet-modal-trait {
  color: var(--text-accent-dark);
  font-weight: 500;
  margin-bottom: 1rem;
}

.pet-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.pet-modal-desc,
.pet-modal-extra {
  color: var(--text-body);
  margin-bottom: 0.9rem;
}

body.modal-open {
  overflow: hidden;
  padding-right: 8px; /* prevents layout shift */
}

/* =========================
   PROCESS
========================= */

#process {
  background: var(--bg-section);
}

.process-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#process h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1.5rem;
}

.process-step {
  background: var(--bg-section-soft);
  border-radius: 24px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 10px 24px var(--shadow-soft);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================
    STORIES
========================= */

#stories {
  background:
    radial-gradient(circle at 20% 20%, var(--bubble-pink) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, var(--bubble-mint) 0%, transparent 60%),
    var(--bg-section-soft);
}

.stories-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#stories h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 1.5rem;
}

.story-card {
  background: var(--bg-section);
  border-radius: 24px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 30px var(--shadow-soft);
  text-align: left;
}

.story-card p {
  font-size: 0.98rem;
  color: var(--text-body);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.story-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-accent-dark);
  margin: 0;
}

/* =========================
   CONTACT
========================= */

#contact {
  background: var(--bg-section);
}

.contact-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

#contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#contact > .contact-container > p,
.contact-container > p {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.contact-form {
  background: var(--bg-section-soft);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 12px 30px var(--shadow-soft);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text-main);
  background: var(--bg-section);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-sizing: border-box;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary-hover);
  box-shadow: 0 0 0 4px rgb(var(--accent-primary-rgb) / 0.15);
}

.contact-form .btn {
  margin-top: 0.5rem;
  align-self: center;
}

.form-success {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgb(var(--accent-primary-rgb) / 0.12);
  color: var(--text-main);
  font-size: 0.9rem;
}

/* =========================
   FOOTER
========================= */

footer {
  background: linear-gradient(to bottom, #fbf9fa 0%, #f7f4f6 100%);
  border-top: 1px solid var(--border-header);
  padding: 2.5rem 1.5rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-container p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: var(--text-accent-dark);
  background: rgb(var(--accent-primary-rgb) / 0.14);
  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgb(var(--accent-primary-rgb) / 0.24);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--text-accent-dark);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1100px) {
  header {
    padding: 0.95rem 1.4rem;
    gap: 1rem;
  }

  .logo {
    gap: 0.35rem;
  }

  .logo img {
    width: 34px;
    height: 34px;
  }

  nav ul {
    gap: 0.45rem 0.55rem;
  }

  nav a {
    font-size: 0.88rem;
    padding: 0.4rem 0.65rem;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.9rem 1.1rem;
  }

  .logo {
    margin-right: 0;
  }

  .nav-toggle {
    display: block;
  }

  nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    background: var(--bg-header);
    border-radius: 18px;
  }

  header.nav-open nav {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0;
  }

  nav a {
    display: block;
    text-align: center;
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
    background-color: var(--bg-section);
  }

  header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .quiz-preview,
  .stories-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .personalities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #home {
    min-height: 75vh;
    padding: 3rem 1rem;
  }

  .bubble-1 {
    width: 16rem;
    top: -4rem;
    left: -5rem;
  }

  .bubble-2 {
    width: 7rem;
    top: 2rem;
    left: 8%;
  }

  .bubble-3 {
    width: 14rem;
    top: 9rem;
    left: 10%;
  }

  .bubble-4 {
    width: 15rem;
    bottom: -5rem;
    right: -3rem;
  }

  .paw-1 {
    width: 7rem;
    bottom: 6%;
    left: 4%;
  }

  .paw-2 {
    width: 6rem;
    top: 8%;
    right: 15%;
  }

  #quiz h2,
  #process h2,
  #stories h2,
  #contact h2 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .personality-img-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
    align-self: stretch;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 0.6rem;
  }

  .pet-modal-content {
    width: min(92%, 540px);
    margin: 6vh auto;
    padding: 1.5rem;
  }

  .quiz-modal-content {
    width: min(92%, 620px);
    margin: 5vh auto;
    padding: 1.5rem;
  }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
