/* ==========================================================================
   Marketly - Support & Help Center Stylesheet
   Color Palette inspired by Marketly's Logo (Teal, Deep Slate, Mint & White)
   ========================================================================== */

:root {
  /* Brand Colors from Logo */
  --primary: #1B7A74;          /* Main Teal */
  --primary-dark: #135954;     /* Deep Teal */
  --primary-light: #2DA098;    /* Bright Sea Green */
  --primary-soft: #EBF5F4;     /* Soft Mint Background */
  --secondary: #1C3042;        /* Key Handle Dark Slate */
  
  /* Neutrals */
  --bg-page: #F8FBFA;          /* Calm, restful page background */
  --bg-surface: #FFFFFF;       /* Pure white card backgrounds */
  --text-main: #1F2937;        /* High-contrast readable body text */
  --text-muted: #5B6F77;       /* Soft secondary text */
  --border-light: #E2ECE9;     /* Subtle calm borders */
  --border-focus: #1B7A74;
  
  /* Status Colors */
  --success: #10B981;
  --whatsapp: #25D366;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 122, 116, 0.05);
  --shadow-md: 0 4px 14px rgba(27, 122, 116, 0.08);
  --shadow-lg: 0 10px 25px rgba(27, 122, 116, 0.12);
  
  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-max: 980px;
}

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

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

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(27, 122, 116, 0.15);
  border: 2px solid var(--primary-soft);
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: scale(1.04);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

.brand-name span {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.35rem;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  background-color: var(--primary-soft);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 122, 116, 0.18);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #EAF4F3 0%, #F5F9F8 60%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: #FFFFFF;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.meta-item svg {
  color: var(--primary);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.2rem;
}

/* ==========================================================================
   Main Content & Channels Grid
   ========================================================================== */
.main-content {
  padding: 3.5rem 0 5rem;
}

.channels-section {
  margin-bottom: 4rem;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.channel-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 122, 116, 0.3);
}

.channel-card.featured {
  border-color: rgba(27, 122, 116, 0.4);
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FAF9 100%);
}

.badge-featured {
  position: absolute;
  top: -12px;
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(27, 122, 116, 0.3);
}

.channel-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background-color: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.channel-card.featured .channel-icon {
  background-color: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp);
}

.channel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.channel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.channel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background-color: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(27, 122, 116, 0.2);
  transition: all 0.2s ease;
}

.channel-action:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.channel-action.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #FFFFFF;
  border: none;
}

.channel-action.btn-whatsapp:hover {
  background-color: #20BA5A;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.form-section {
  margin-bottom: 4rem;
}

.form-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-header {
  margin-bottom: 2rem;
  text-align: center;
}

.form-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.form-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
}

.required {
  color: #EF4444;
}

.optional {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(27, 122, 116, 0.1);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.6rem;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(27, 122, 116, 0.2);
}

.btn-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 122, 116, 0.25);
}

.form-feedback {
  margin-top: 1.25rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.form-feedback.success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-feedback.hidden {
  display: none;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(27, 122, 116, 0.35);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  list-style: none;
}

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

.faq-chevron {
  color: var(--primary);
  transition: transform 0.25s ease;
}

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

.faq-answer {
  padding-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  border-top: 1px solid var(--border-light);
  padding-top: 0.9rem;
}

.faq-answer strong {
  color: var(--secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--secondary);
  color: #E2ECE9;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-brand h4 {
  font-size: 1.05rem;
  color: #FFFFFF;
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.82rem;
  color: #94A3B8;
  margin: 0;
}

.footer-copy {
  font-size: 0.85rem;
  color: #94A3B8;
}

.footer-copy strong {
  color: #FFFFFF;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .form-wrapper {
    padding: 1.75rem 1.4rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-actions {
    width: 100%;
  }
  
  .badge-status {
    width: 100%;
    justify-content: center;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
