/* =========================================================
   SANAULLAH ELECTRONICS – Privacy Policy Stylesheet
   Color Palette (extracted from logo):
     Primary Dark Navy  : #0f2d55
     Primary Orange     : #FF7A00
     Light Orange       : #FF9A40
     Background         : #f5f7fa
     Surface White      : #ffffff
     Text Primary       : #1a2e4a
     Text Secondary     : #5a6a80
     Border Light       : #e4eaf2
   ========================================================= */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f0f4f9;
  color: #1a2e4a;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.25;
}

strong {
  font-weight: 700;
  color: #0f2d55;
}

a {
  color: #FF7A00;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e06500;
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(15, 45, 85, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-logo-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 45, 85, 0.15);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2d55;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.page-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #FF7A00;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 2px 10px;
  background: rgba(255, 122, 0, 0.1);
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

.header-divider {
  height: 3px;
  background: linear-gradient(90deg, #0f2d55 0%, #FF7A00 60%, transparent 100%);
}

/* ── HERO BANNER ──────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, #0f2d55 0%, #1a4a80 50%, #0d2347 100%);
  padding: 60px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,122,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,122,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 122, 0, 0.15);
  border: 1px solid rgba(255, 122, 0, 0.35);
  color: #FF9A40;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 500;
}

.meta-dot {
  color: rgba(255, 122, 0, 0.5);
  font-size: 1.1rem;
}

/* ── MAIN CONTENT WRAPPER ─────────────────────────────── */
.content-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ── INTRO SECTION ────────────────────────────────────── */
.policy-intro {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 12px;
  border-left: 4px solid #FF7A00;
  box-shadow: 0 2px 16px rgba(15, 45, 85, 0.06);
}

.policy-intro p {
  font-size: 1rem;
  color: #3a4f6a;
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-intro p:last-child {
  margin-bottom: 0;
}

/* ── SECTION DIVIDER ──────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #d6e0ee 30%, #d6e0ee 70%, transparent 100%);
  margin: 4px 0;
}

/* ── POLICY SECTION ───────────────────────────────────── */
.policy-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 36px 36px 32px;
  margin: 8px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: 0 2px 16px rgba(15, 45, 85, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.policy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0f2d55 0%, #1a4a80 100%);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.policy-section:hover {
  box-shadow: 0 6px 28px rgba(15, 45, 85, 0.11);
  transform: translateY(-1px);
}

.policy-section:hover::before {
  opacity: 1;
}

.policy-section--contact {
  background: linear-gradient(135deg, #f0f5ff 0%, #fff8f0 100%);
  border: 1px solid #e0e9f8;
}

.policy-section--contact::before {
  background: linear-gradient(180deg, #FF7A00 0%, #FF9A40 100%);
  opacity: 1;
}

/* Section number badge */
.section-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0f2d55 0%, #1a4a80 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(15, 45, 85, 0.25);
}

.policy-section--contact .section-number {
  background: linear-gradient(135deg, #FF7A00 0%, #FF9A40 100%);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

/* Section body */
.section-body {
  flex: 1;
  min-width: 0;
}

/* Section heading */
.section-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f2d55;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f4f9;
  letter-spacing: -0.2px;
}

.policy-section--contact .section-heading {
  border-bottom-color: rgba(255, 122, 0, 0.15);
}

/* Section content paragraphs */
.section-content p {
  font-size: 0.97rem;
  color: #3a4f6a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* ── POLICY LISTS ─────────────────────────────────────── */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #3a4f6a;
  line-height: 1.6;
  padding: 8px 14px;
  background: #f5f8ff;
  border-radius: 8px;
  border: 1px solid #e8eef8;
}

.policy-list li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF7A00;
  margin-top: 7px;
}

/* "NO" list – red-tinted */
.policy-list--no li {
  background: #fff5f5;
  border-color: #fde8e8;
}

.policy-list--no li::before {
  background: #e84040;
  content: '✕';
  width: auto;
  height: auto;
  border-radius: 0;
  color: #e84040;
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 3px;
}

/* ── CONTACT EMAIL BUTTON ─────────────────────────────── */
.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: linear-gradient(135deg, #FF7A00 0%, #FF9A40 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(255, 122, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  word-break: break-all;
}

.contact-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.45);
  color: #ffffff !important;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: #0f2d55;
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 24px 32px;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer-tagline {
  font-size: 0.78rem;
  color: #FF9A40;
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
}

.footer-copyright,
.footer-contact,
.footer-updated {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-contact a {
  color: #FF9A40;
  font-weight: 500;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-updated {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
}

/* ── BACK TO TOP BUTTON ───────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #0f2d55 0%, #1a4a80 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 45, 85, 0.3);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  z-index: 200;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 10px 28px rgba(15, 45, 85, 0.4);
  background: linear-gradient(135deg, #FF7A00 0%, #FF9A40 100%);
}

/* ── SCROLL ANIMATION ─────────────────────────────────── */
.policy-section,
.policy-intro {
  animation: fadeInUp 0.5s ease both;
}

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

/* Staggered animation delays */
.policy-section:nth-child(1)  { animation-delay: 0.05s; }
.policy-section:nth-child(3)  { animation-delay: 0.10s; }
.policy-section:nth-child(5)  { animation-delay: 0.15s; }
.policy-section:nth-child(7)  { animation-delay: 0.20s; }
.policy-section:nth-child(9)  { animation-delay: 0.25s; }
.policy-section:nth-child(11) { animation-delay: 0.30s; }
.policy-section:nth-child(13) { animation-delay: 0.35s; }
.policy-section:nth-child(15) { animation-delay: 0.40s; }
.policy-section:nth-child(17) { animation-delay: 0.45s; }
.policy-section:nth-child(19) { animation-delay: 0.50s; }
.policy-section:nth-child(21) { animation-delay: 0.55s; }
.policy-section:nth-child(23) { animation-delay: 0.60s; }
.policy-section:nth-child(25) { animation-delay: 0.65s; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .header-logo-wrap {
    width: 52px;
    height: 52px;
  }

  .header-logo {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .hero-banner {
    padding: 44px 16px 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .content-wrapper {
    padding: 28px 14px 48px;
  }

  .policy-intro {
    padding: 24px 20px;
  }

  .policy-section {
    padding: 28px 20px 28px 18px;
    gap: 16px;
  }

  .section-number {
    width: 38px;
    height: 38px;
    font-size: 0.68rem;
    border-radius: 10px;
  }

  .section-heading {
    font-size: 1.05rem;
  }

  .section-content p,
  .policy-list li {
    font-size: 0.9rem;
  }

  .contact-email-btn {
    font-size: 0.85rem;
    padding: 11px 18px;
  }

  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-updated {
    margin-left: 0;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .meta-dot {
    display: none;
  }
}

@media (max-width: 420px) {
  .policy-section {
    flex-direction: column;
    gap: 12px;
  }

  .section-number {
    width: 34px;
    height: 34px;
  }
}

/* ── PRINT STYLES ─────────────────────────────────────── */
@media print {
  .site-header {
    position: static;
    box-shadow: none;
  }

  .back-to-top,
  .hero-banner::before,
  .hero-banner::after {
    display: none;
  }

  .policy-section,
  .policy-intro {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}
