/* ==========================================================================
   Design System: Premium Editorial Theme
   PayPal Honey Smart Shopping Assistant Advertorial Stylesheet
   ========================================================================== */

:root {
  /* Colors from DESIGN.md */
  --background: #fcf9f8;
  --on-background: #1c1b1b;
  --surface: #fcf9f8;
  --surface-dim: #dcd9d9;
  --surface-bright: #fcf9f8;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f6f3f2;
  --surface-container: #f0edec;
  --surface-container-high: #ebe7e7;
  --surface-container-highest: #e5e2e1;
  --on-surface: #1c1b1b;
  --on-surface-variant: #424751;
  --outline: #737783;
  --outline-variant: #c3c6d3;
  
  --primary: #003572;
  --on-primary: #ffffff;
  --primary-container: #054b9b;
  --on-primary-container: #9ebfff;
  --inverse-primary: #acc7ff;
  
  --secondary: #b80046;
  --on-secondary: #ffffff;
  --secondary-container: #e4115a;
  --on-secondary-container: #fffbff;
  
  --tertiary: #003f2e;
  --on-tertiary: #ffffff;
  --tertiary-container: #005842;
  --on-tertiary-container: #67d1ab;
  
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--on-surface);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 64px;
    padding-right: 64px;
  }
}

/* Typography Utility Classes */
.font-display-xl {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-headline-lg {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}

.font-headline-md {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
}

.font-headline-sm {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.font-body-lg {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
}

.font-body-md {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

.font-label-md {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

@media (min-width: 768px) {
  .font-display-xl {
    font-size: 64px;
    line-height: 72px;
  }
  .font-headline-lg {
    font-size: 48px;
    line-height: 56px;
  }
}

/* Reading Progress Bar */
.reading-progress-container {
  width: 100%;
  height: 2px;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.reading-progress-bar {
  height: 2px;
  background-color: var(--secondary);
  width: 0%;
}

/* 1. Topbar */
.topbar {
  background-color: #1c1b1b;
  width: 100%;
  padding: 8px 0;
  text-align: center;
}

.topbar-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e5e2e1;
  text-transform: uppercase;
}

/* 2. Header */
.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Button Component */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: 0 !important; /* Strict sharp borders */
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background-color: var(--primary-container);
  color: var(--on-primary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--surface-container);
}

.btn-header {
  padding: 12px 24px;
}

/* 3. Hero Section (Redesigned Asymmetric Background Cover) */
.hero-section {
  position: relative;
  background-image: url('images/featured_image.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 520px;
  border-bottom: 1px solid var(--outline-variant);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(12, 11, 11, 0.82) 0%, rgba(20, 19, 19, 0.76) 100%);
  z-index: 1;
}

.hero-container-overlay {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-headline {
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-subheadline {
  color: #ebe7e7;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.hero-btn {
  padding: 18px 48px;
  background-color: var(--secondary);
  color: #ffffff;
}

.hero-btn:hover {
  background-color: var(--secondary-container);
}

/* 4. Content Section (Redesigned Sticky Columns Layout) */
.content-section {
  background-color: var(--surface);
  padding: 80px 0;
  border-bottom: 1px solid var(--outline-variant);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .content-left {
    grid-column: span 5;
    position: sticky;
    top: 40px;
    align-self: start;
    padding-right: 24px;
  }
  .content-right {
    grid-column: span 7;
  }
}

.article-title {
  color: var(--primary);
  margin-bottom: 24px;
}

.article-intro {
  margin-bottom: 32px;
}

.article-intro p {
  margin-bottom: 20px;
  color: var(--on-surface-variant);
}

.text-highlight {
  font-size: 18px;
  line-height: 28px;
  color: var(--on-surface) !important;
  font-weight: 500;
}

.article-image-wrapper {
  background-color: var(--surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: 0 !important;
  overflow: hidden;
  margin-top: 32px;
}

.article-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0 !important;
}

.article-body p {
  margin-bottom: 24px;
  color: var(--on-surface-variant);
}

.article-body h3 {
  color: var(--primary);
  margin-top: 48px;
  margin-bottom: 24px;
}

.article-body h3:first-of-type {
  margin-top: 0;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--outline-variant);
  margin: 48px 0;
}

.quote-block {
  border-left: 2px solid var(--secondary);
  padding: 8px 0 8px 24px;
  margin: 48px 0;
}

.quote-block p {
  color: var(--on-surface);
  margin-bottom: 0;
}

.checklist-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 48px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.check-icon {
  color: var(--secondary);
  margin-right: 16px;
  margin-top: 4px;
  font-weight: bold;
  font-size: 20px;
}

.checklist-item p {
  margin-bottom: 0;
}

/* 5. Features Section */
.features-section {
  background-color: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  padding: 80px 0;
}

.features-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.features-title {
  color: var(--primary);
  margin-bottom: 16px;
}

.features-subtitle {
  color: var(--on-surface-variant);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.2s ease;
  border-radius: 0 !important;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 24px;
  display: block;
}

.feature-card-title {
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card-desc {
  color: var(--on-surface-variant);
}

/* 6. Process of Installation Section */
.process-section {
  padding: 80px 0;
  background-color: var(--surface);
}

.process-title {
  color: var(--primary);
  margin-bottom: 64px;
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
  .process-line {
    display: block;
    position: absolute;
    top: 24px;
    left: 16%;
    right: 16%;
    height: 1px;
    background-color: var(--outline-variant);
    z-index: 0;
  }
}

@media (max-width: 767px) {
  .process-line {
    display: none;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number-box {
  width: 48px;
  height: 48px;
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.process-step:hover .step-number-box {
  background-color: var(--primary);
  border-color: var(--primary);
}

.process-step:hover .step-number {
  color: var(--on-primary);
}

.step-number {
  color: var(--primary);
  transition: color 0.3s ease;
}

.step-title {
  color: var(--primary);
  margin-bottom: 16px;
}

.step-desc {
  color: var(--on-surface-variant);
}

/* 7. FAQs Section */
.faq-section {
  background-color: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  padding: 80px 0;
}

.faq-container {
  max-width: 800px;
}

.faq-title {
  color: var(--primary);
  margin-bottom: 48px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 0 !important;
}

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 24px;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary span {
  color: var(--primary);
}

.faq-arrow {
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 24px 24px;
}

.faq-content p {
  color: var(--on-surface-variant);
  margin: 0;
}

/* 8. Bottom CTA Section (Modern Glassmorphism Design) */
.bottom-cta-section {
  background: linear-gradient(135deg, #001a40 0%, #003572 50%, #b80046 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bottom-cta-bg-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(184, 0, 70, 0.1) 0%, rgba(0, 53, 114, 0) 60%);
  pointer-events: none;
  z-index: 1;
}

.bottom-cta-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 64px 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border-radius: 0 !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.bottom-cta-title {
  color: #ffffff;
  margin-bottom: 24px;
}

.bottom-cta-subtitle {
  color: #acc7ff;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.bottom-cta-btn-wrapper {
  margin-bottom: 40px;
}

.bottom-cta-btn {
  background-color: var(--secondary);
  color: #ffffff;
  padding: 18px 48px;
  font-size: 14px;
  border-radius: 0 !important;
}

.bottom-cta-btn:hover {
  background-color: var(--secondary-container);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 0, 70, 0.4);
}

/* Interactive SVG Offer Link */
.special-offer-box {
  margin: 40px auto 0;
  max-width: 400px;
}

.special-offer-link {
  display: inline-block;
  padding: 24px 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  border-radius: 0 !important;
}

.special-offer-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(184, 0, 70, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  animation: pulse-glow 1.5s infinite alternate;
}

.special-offer-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0 !important;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(184, 0, 70, 0.2);
  }
  100% {
    box-shadow: 0 0 25px rgba(184, 0, 70, 0.5);
    transform: scale(1.02) translateY(-4px);
  }
}

/* 9. Disclaimer Section */
.disclaimer-section {
  background-color: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
  padding: 40px 0;
  text-align: center;
}

.disclaimer-text {
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

/* 10. Footer */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--outline-variant);
  padding: 64px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logo-box {
  margin-bottom: 8px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contact {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface-variant);
}

.footer-contact p {
  margin: 4px 0;
}

.footer-copyright {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--outline);
}
