/* ==========================================================================
   DALILOK - Premium Minimal Modern Style (RTL)
   ========================================================================== */

/* CSS Variables for Theme Configuration */
:root {
  --font-primary: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette - Premium Minimal */
  --bg-main: #FAFAFB;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3F4F6;
  
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  
  --brand-primary: #6366F1;       /* Indigo / Blue-Violet */
  --brand-hover: #4F46E5;
  --brand-light: #EEF2FF;
  
  --border-color: #E5E7EB;
  --border-focus: #818CF8;
  
  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.2s ease-in-out;
  --max-width: 1200px;
}

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

html {
  font-family: var(--font-primary);
  font-size: 16px;
  direction: rtl;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

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

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

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-subtle {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: #D1D5DB;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  line-height: 1;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-primary);
  border-radius: var(--radius-full);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 5rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-graphic {
  width: 100%;
  max-width: 360px;
  height: 260px;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 1px solid #C7D2FE;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card-graphic::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px dashed #A5B4FC;
  border-radius: 24px;
  pointer-events: none;
}

.hero-icon-box {
  width: 70px;
  height: 70px;
  background-color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  color: var(--brand-primary);
}

.hero-graphic-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: #3730A3;
}

/* ==========================================================================
   Product Section
   ========================================================================== */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #D1D5DB;
}

.product-image-wrapper {
  background-color: #F3F4F6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  border-left: 1px solid var(--border-color);
}

.product-image {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image-fallback {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #3730A3, #6366F1);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.product-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.product-features {
  margin-bottom: 2.25rem;
  display: grid;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.98rem;
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #DEF7EC;
  color: #03543F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

.product-cta-group {
  margin-top: auto;
}

.product-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* ==========================================================================
   Features / Why Us Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #D1D5DB;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem auto;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.about-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==========================================================================
   Contact CTA Section
   ========================================================================== */
.contact-cta {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  margin: 3rem auto 5rem auto;
}

.contact-cta .section-title {
  color: #FFFFFF;
}

.contact-cta .section-subtitle {
  color: #C7D2FE;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Contact Page Form
   ========================================================================== */
.contact-wrapper {
  max-width: 650px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #FAFAFA;
  transition: var(--transition);
  direction: rtl;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.direct-support {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.direct-support a {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: underline;
}

/* Form status notification */
.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.form-status.info {
  display: block;
  background-color: #EEF2FF;
  border: 1px solid #C7D2FE;
  color: #3730A3;
}

/* ==========================================================================
   Legal Content Layout (Terms, Privacy, Refund)
   ========================================================================== */
.legal-container {
  max-width: 850px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.legal-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.legal-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.legal-body section {
  margin-bottom: 2rem;
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.legal-body p, .legal-body ul {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.legal-body ul {
  padding-right: 1.5rem;
  list-style-type: disc;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
  background-color: #111827;
  color: #9CA3AF;
  padding: 4rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid #1F2937;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text {
  color: #FFFFFF;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #9CA3AF;
  max-width: 320px;
}

.footer-links-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: #D1D5DB;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #FFFFFF;
}

.footer-disclaimer {
  background-color: #1F2937;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #9CA3AF;
  margin-bottom: 2rem;
  border: 1px solid #374151;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1F2937;
  font-size: 0.875rem;
  color: #6B7280;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-image-wrapper {
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    margin-top: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

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

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

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

  .product-content {
    padding: 2rem 1.5rem;
  }

  .legal-container, .about-box, .contact-wrapper {
    padding: 2rem 1.5rem;
  }
}
