/* ===== HOME PAGE STYLES ===== */
.pp-home {
  background: transparent;
  color: var(--color-text, #1a1a1a);
}

.pp-home a {
  color: inherit;
  text-decoration: none;
}

/* ===== HERO SECTION ===== */
.pp-home__hero {
  padding: 0 0 var(--pp-section-y-lg);
  position: relative;
  overflow: hidden;
}

.pp-home__hero > .container-fluid > .container {
  padding-inline: 0;
}

.pp-home__hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.pp-home__hero-copy {
  max-width: 600px;
}

.pp-home__hero-copy.pp-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(92, 46, 46, 0.1);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(61, 31, 31, 0.1);
}

.pp-home__eyebrow {
  font-weight: 600;
  color: #b76e2e;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.pp-home__hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #3d1f1f;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.pp-home__hero-copy p {
  color: #666;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: 2rem;
}

.pp-home__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons - Using design system classes */
.pp-btn--primary,
.pp-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.pp-btn-gold {
  background: #5c2e2e;
  color: white;
  box-shadow: 0 10px 20px rgba(92, 46, 46, 0.2);
}

.pp-btn-gold:hover {
  background: #4a2525;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(92, 46, 46, 0.3);
}

.pp-btn--ghost,
.pp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(92, 46, 46, 0.15);
  color: #5c2e2e;
  transition: all 0.3s ease;
}

.pp-btn--ghost:hover,
.pp-btn-ghost:hover {
  background: white;
  border-color: #5c2e2e;
  transform: translateY(-2px);
}

.pp-home__hero-media img {
  width: 100%;
  max-width: 600px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(61, 31, 31, 0.15);
  display: block;
}

/* ===== FEATURES SECTION ===== */
.pp-home__features {
  padding: 0 0 var(--pp-section-y-lg);
  background: #faf7f2;
}

.pp-home__features h2 {
  text-align: center;
  font-size: 2rem;
  color: #3d1f1f;
  margin-bottom: 3rem;
  font-weight: 600;
}

.pp-home__feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap, 2rem);
}

.pp-home__feature-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(92, 46, 46, 0.1);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 15px 30px rgba(61, 31, 31, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pp-home__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(61, 31, 31, 0.15);
}

.pp-home__feature-card i {
  font-size: 2.5rem;
  color: #b76e2e;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(183, 110, 46, 0.1);
  border-radius: 16px;
}

.pp-home__feature-card h3 {
  font-size: 1.25rem;
  color: #3d1f1f;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.pp-home__feature-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ===== TRUST SECTION ===== */
.pp-home__trust {
  padding: 0 0 var(--pp-section-y-lg);
  background: white;
  text-align: center;
}

.pp-home__trust p {
  font-size: 1.25rem;
  color: #3d1f1f;
  margin-bottom: 2rem;
  font-weight: 500;
}

.pp-home__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.pp-home__logos span {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(92, 46, 46, 0.1);
  border-radius: 40px;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pp-home__logos span:hover {
  background: white;
  border-color: #b76e2e;
  color: #b76e2e;
}

/* ===== DEVICES SECTION ===== */
.pp-home__devices {
  padding: 0 0 var(--pp-section-y-lg);
  background: #faf7f2;
}

.pp-home__section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.pp-home__section-head h2 {
  font-size: 2rem;
  color: #3d1f1f;
  margin: 0;
  font-weight: 600;
}

.pp-home__section-head a {
  color: #b76e2e;
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.pp-home__section-head a:hover {
  border-bottom-color: #b76e2e;
}

.pp-home__device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap, 2rem);
}

.pp-home__device-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(92, 46, 46, 0.1);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 15px 30px rgba(61, 31, 31, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pp-home__device-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 20%, rgba(183, 110, 46, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pp-home__device-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(61, 31, 31, 0.15);
}

.pp-home__device-card:hover::before {
  opacity: 1;
}

.pp-home__device-card>* {
  position: relative;
  z-index: 1;
}

.pp-home__device-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.pp-home__device-card h3 {
  font-size: 1.25rem;
  color: #3d1f1f;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pp-home__device-card p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.pp-home__device-card .pp-btn-ghost {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== BULK PRICING SECTION ===== */
.pp-home__bulk {
  padding: 0 0 var(--pp-section-y-lg);
  background: white;
}

.pp-bulk-card {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(92, 46, 46, 0.1);
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(61, 31, 31, 0.1);
}

.pp-bulk-card__rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.pp-bulk-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.pp-bulk-row:hover {
  transform: scale(1.02);
}

.pp-bulk-row--gold {
  background: linear-gradient(135deg, var(--pp-gold), var(--pp-gold-light));
  color: #241d1b;
}

.pp-bulk-row--burgundy {
  background: linear-gradient(135deg, var(--pp-burgundy-light), var(--pp-burgundy));
  color: #fff;
}

.pp-bulk-row--burgundy-deep {
  background: linear-gradient(135deg, var(--pp-burgundy-dark), var(--pp-burgundy));
  color: #fff;
}

.pp-bulk-row strong {
  font-size: 1.25rem;
}

.pp-bulk-row--burgundy strong,
.pp-bulk-row--burgundy-deep strong {
  color: #fff;
}

.pp-bulk-row__tag {
  font-size: 0.875rem;
  opacity: 0.8;
}

.pp-bulk-card__note {
  text-align: center;
  color: #666;
  margin: 1.5rem 0;
  font-size: 1rem;
}

.pp-home__bulk-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ===== PRICING SECTION ===== */
.pp-home__pricing {
  padding: 0 0 var(--pp-section-y-lg);
  background: #faf7f2;
}

.pp-home__pricing .pp-home__section-head p {
  color: #666;
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.pp-home__pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap, 2rem);
  margin-top: 2.5rem;
}

.pp-home__plan {
  background: white;
  border: 1px solid rgba(92, 46, 46, 0.1);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 15px 30px rgba(61, 31, 31, 0.08);
  transition: all 0.3s ease;
}

.pp-home__plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(61, 31, 31, 0.15);
}

.pp-home__plan.is-featured {
  border: 2px solid #b76e2e;
  transform: scale(1.05);
  background: linear-gradient(135deg, white, #fffaf5);
}

.pp-home__plan h3 {
  font-size: 1.5rem;
  color: #3d1f1f;
  margin-bottom: 1rem;
  font-weight: 600;
}

.pp-home__plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b76e2e;
  margin-bottom: 1.5rem;
}

.pp-home__plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.pp-home__plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pp-home__plan li {
  padding: 0.75rem 0;
  color: #4a4a4a;
  border-bottom: 1px solid rgba(92, 46, 46, 0.1);
}

.pp-home__plan li:last-child {
  border-bottom: none;
}

/* ===== HELP SECTION ===== */
.pp-home__help {
  padding: 0 0 var(--pp-section-y-lg);
  background: white;
}

.pp-home__help .pp-home__section-head {
  margin-bottom: 2rem;
}

.pp-home__help-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 1px solid rgba(92, 46, 46, 0.1);
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  min-width: 300px;
}

.pp-home__help-search i {
  color: #b76e2e;
}

.pp-home__help-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
}

.pp-home__help-search input::placeholder {
  color: #999;
}

.pp-home__help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap, 2rem);
  margin: 2.5rem 0;
}

.pp-home__help-grid article {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(92, 46, 46, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.pp-home__help-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(61, 31, 31, 0.1);
  border-color: #b76e2e;
}

.pp-home__help-grid h3 {
  font-size: 1.125rem;
  color: #3d1f1f;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pp-home__help-grid p {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.pp-home__help-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.pp-home__help-links a {
  color: #b76e2e;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pp-home__help-links a:hover {
  background: rgba(183, 110, 46, 0.1);
}

/* ===== 404 SECTION ===== */
.pp-home__notfound {
  padding: 0 0 var(--pp-section-y-lg);
  background: #faf7f2;
}

.pp-home__notfound-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem;
  background: white;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(61, 31, 31, 0.1);
  border: 1px solid rgba(92, 46, 46, 0.1);
}

.pp-home__notfound-card h2 {
  font-size: 6rem;
  color: #b76e2e;
  margin-bottom: 1rem;
  line-height: 1;
  font-weight: 800;
}

.pp-home__notfound-card p {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
}

.pp-home__notfound-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .pp-home__hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .pp-home__feature-grid,
  .pp-home__device-grid,
  .pp-home__pricing-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pp-home__hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pp-home__hero-copy {
    order: 2;
    max-width: 100%;
  }

  .pp-home__hero-media {
    order: 1;
  }

  .pp-home__hero-media img {
    max-width: 100%;
    margin: 0 auto;
  }

  .pp-home__feature-grid,
  .pp-home__device-grid,
  .pp-home__pricing-grid,
  .pp-home__help-grid {
    grid-template-columns: 1fr;
  }

  .pp-home__plan.is-featured {
    transform: none;
  }

  .pp-home__section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pp-home__help-search {
    width: 100%;
    min-width: auto;
  }

  .pp-bulk-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }

  .pp-bulk-row strong,
  .pp-bulk-row__tag {
    grid-column: 1;
  }

  .pp-home__help-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .pp-home__help-links a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {

  .pp-home__hero-actions,
  .pp-home__bulk-actions,
  .pp-home__notfound-actions {
    flex-direction: column;
  }

  .pp-home__hero-actions a,
  .pp-home__bulk-actions a,
  .pp-home__notfound-actions a {
    width: 100%;
    text-align: center;
  }

  .pp-home__hero-copy.pp-glass {
    padding: 1.5rem;
  }

  .pp-bulk-card {
    padding: 1.5rem;
  }
}

/* ===== SPACING FIXES FOR FIRST SECTIONS ===== */
/* Ensure first section on the home page has no top padding */
.pp-home > section:first-of-type {
  padding-top: 0 !important;
}

/* Ensure home page last section keeps bottom spacing */
.pp-home > section:last-of-type {
  padding-bottom: var(--pp-section-y-lg);
}

/* Remove any margin from first elements inside sections */
.pp-home__hero:first-of-type>*:first-child,
.pp-home__features:first-of-type>*:first-child,
.pp-home__trust:first-of-type>*:first-child,
.pp-home__devices:first-of-type>*:first-child,
.pp-home__bulk:first-of-type>*:first-child,
.pp-home__pricing:first-of-type>*:first-child,
.pp-home__help:first-of-type>*:first-child,
.pp-home__notfound:first-of-type>*:first-child {
  margin-top: 0;
}
