/* =============================================
   SHARIF AUTOS — Privacy Policy
   Design: Steel & Trust
   ============================================= */

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

:root {
  --navy: #0A1628;
  --navy-mid: #0F1F3D;
  --navy-light: #162748;
  --red: #DC2626;
  --red-light: #EF4444;
  --red-glow: rgba(220, 38, 38, 0.15);
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(220, 38, 38, 0.3);
  --card-bg: rgba(15, 31, 61, 0.8);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
}

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

body {
  background-color: var(--navy);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--red-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--white);
  outline: 2px solid var(--red-light);
  outline-offset: 2px;
  border-radius: 2px;
}

ul {
  list-style: none;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  outline: none;
  flex-shrink: 0;
}

.logo-link:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo-accent {
  color: var(--red);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--red);
  outline: none;
}

.btn-print {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-print:hover,
.btn-print:focus-visible {
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220,38,38,0.4);
  outline: none;
}

.btn-print:active {
  transform: translateY(0);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1a0a0a 100%);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
}

/* Decorative shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: pulse-shape 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  animation: pulse-shape 10s ease-in-out infinite reverse;
  opacity: 0.04;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 30%;
  left: 10%;
  opacity: 0.04;
  animation: pulse-shape 12s ease-in-out infinite;
}

/* Gear decorations */
.gear {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(220,38,38,0.08);
  animation: spin-gear 30s linear infinite;
}

.gear::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(220,38,38,0.05);
}

.gear-1 {
  width: 180px;
  height: 180px;
  top: -40px;
  left: -40px;
}

.gear-2 {
  width: 120px;
  height: 120px;
  bottom: -30px;
  right: 8%;
  animation-direction: reverse;
  animation-duration: 20s;
}

@keyframes pulse-shape {
  0%, 100% { transform: scale(1); opacity: 0.06; }
  50% { transform: scale(1.1); opacity: 0.09; }
}

@keyframes spin-gear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--red-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: 30px;
  backdrop-filter: blur(8px);
}

.hero-date strong {
  color: var(--white);
  font-weight: 600;
}

/* ---------- Main Content ---------- */
.main-content {
  padding: 3rem 1.5rem 5rem;
}

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

/* ---------- Info Card ---------- */
.info-card {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red-light);
}

.info-value {
  font-size: 0.93rem;
  color: var(--white);
  font-weight: 500;
}

/* ---------- Policy Sections ---------- */
.policy-section {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 1.5rem;
  margin-bottom: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  animation: section-in 0.5s ease both;
}

.policy-section:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(220,38,38,0.08);
  transform: translateY(-1px);
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-number {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.section-body {
  min-width: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.section-body p {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  line-height: 1.8;
}

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

/* ---------- Policy List ---------- */
.policy-list {
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.policy-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.65;
}

.policy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- Policy Link ---------- */
.policy-link {
  color: var(--red-light);
  border-bottom: 1px solid rgba(239,68,68,0.35);
  transition: color var(--transition), border-color var(--transition);
}

.policy-link:hover,
.policy-link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--white);
  outline: none;
}

/* ---------- Contact Block ---------- */
.contact-block {
  background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(220,38,38,0.03));
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.25rem !important;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red-light);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color var(--transition);
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--white);
  outline: none;
}

.contact-country {
  color: var(--text-secondary);
  font-size: 0.87rem;
  margin: 0 !important;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-note {
  font-size: 0.87rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-top: 0.25rem !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.footer-logo:hover,
.footer-logo:focus-visible {
  color: var(--white);
  outline: none;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--red);
  color: var(--white);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(220,38,38,0.4);
}

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

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--red-light);
  box-shadow: 0 6px 24px rgba(220,38,38,0.55);
  transform: translateY(-2px);
  outline: none;
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header,
  .scroll-progress,
  .back-to-top,
  .btn-print,
  .hero-bg-shapes {
    display: none !important;
  }

  body {
    background: white;
    color: #111;
    font-size: 11pt;
  }

  .hero {
    background: white;
    border-bottom: 2px solid #222;
    padding: 1.5rem 0;
  }

  .hero-title {
    color: #111;
  }

  .hero-subtitle,
  .hero-date {
    color: #444;
  }

  .hero-badge {
    border: 1px solid #ccc;
    color: #555;
    background: none;
  }

  .info-card {
    background: #f5f5f5;
    border: 1px solid #ccc;
  }

  .info-label { color: #c00; }
  .info-value { color: #111; }

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

  .section-number {
    background: #eee;
    border: 1px solid #ddd;
    color: #c00;
  }

  .section-title { color: #111; }
  .section-body p, .policy-list li { color: #333; }

  .policy-link { color: #c00; }

  .contact-block {
    background: #fafafa;
    border: 1px solid #ddd;
  }

  .site-footer {
    background: white;
    border-top: 1px solid #ddd;
  }

  .footer-copy { color: #666; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header-nav {
    gap: 0.75rem;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .main-content {
    padding: 2rem 1rem 4rem;
  }

  .policy-section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .section-number {
    width: 36px;
    height: 36px;
    font-size: 0.65rem;
  }

  .info-card {
    padding: 1.5rem;
  }

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

@media (max-width: 480px) {
  .logo-text {
    font-size: 1rem;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

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

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

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

  .contact-block {
    padding: 1.25rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
