/**
 * HappyPreggie — Base Reset, Typography, Responsive Grid & Core Utilities
 */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--hp-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--hp-text-secondary);
  background-color: var(--hp-bg-white);
  overflow-x: hidden;
}

@media (max-width: 991px) {
  body {
    padding-bottom: var(--hp-mobile-bottom-height);
  }
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: var(--hp-font-sans);
  color: var(--hp-text-primary);
  text-wrap: balance;
}

h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.25;
}

h2 {
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 800;
  line-height: 1.3;
}

h3 {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--hp-purple-primary);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--hp-purple-secondary);
}

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

/* Container & Grid */
.hp-container {
  width: 100%;
  max-width: var(--hp-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.hp-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hp-section-light {
  background-color: var(--hp-bg-light);
}

.hp-section-pink {
  background-color: var(--hp-pink-surface);
}

.hp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hp-section-header h2 {
  margin-bottom: 4px;
}

.hp-section-subtitle {
  color: var(--hp-text-muted);
  font-size: 15px;
  margin: 0;
}

.hp-section-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--hp-purple-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hp-section-link:hover {
  color: var(--hp-purple-dark);
  transform: translateX(2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--hp-font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  padding: 11px 22px;
  border-radius: var(--hp-radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-purple {
  background-color: var(--hp-purple-primary);
  color: #ffffff !important;
  border-color: var(--hp-purple-primary);
}

.btn-purple:hover {
  background-color: var(--hp-purple-secondary);
  border-color: var(--hp-purple-secondary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(97, 46, 149, 0.28);
}

.btn-outline-purple {
  background-color: transparent;
  color: var(--hp-purple-primary);
  border-color: var(--hp-purple-primary);
}

.btn-outline-purple:hover {
  background-color: var(--hp-purple-tint);
  color: var(--hp-purple-dark);
}

.btn-teal {
  background-color: var(--hp-teal-accent);
  color: #ffffff !important;
  border-color: var(--hp-teal-accent);
}

.btn-teal:hover {
  background-color: #089188;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff !important;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #1ebc57;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Breadcrumbs */
.hp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hp-text-muted);
  margin-bottom: 16px;
  padding: 0;
  list-style: none;
}

.hp-breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--hp-border-input);
}

.hp-breadcrumb a {
  color: var(--hp-text-muted);
  font-weight: 600;
}

.hp-breadcrumb a:hover {
  color: var(--hp-purple-primary);
}

.hp-breadcrumb .active {
  color: var(--hp-purple-primary);
  font-weight: 700;
}

/* Form Controls */
.hp-input,
.hp-select,
.hp-textarea {
  width: 100%;
  font-family: var(--hp-font-sans);
  font-size: 14px;
  color: var(--hp-text-primary);
  background-color: #ffffff;
  border: 1px solid var(--hp-border-input);
  border-radius: var(--hp-radius-sm);
  padding: 10px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hp-input:focus,
.hp-select:focus,
.hp-textarea:focus {
  outline: none;
  border-color: var(--hp-purple-primary);
  box-shadow: 0 0 0 3px rgba(97, 46, 149, 0.12);
}

/* Shimmer Skeletons */
@keyframes hpShimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.hp-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: hpShimmer 1.4s infinite linear;
  border-radius: var(--hp-radius-md);
}
