/*
 * Smart Relations Manager – v0.5
 * File: styles.css
 * Role: Global styles for landing page and portal user interface.
 * Data Flow (high-level):
 *   - See README_v0.5.md for full architecture and data flow diagrams.
 * Impacted future releases: v0.6 (logging & validation), v0.7 (portal UX & history views), v0.8 (language & localization), v0.9 (external webhooks & deeper actions), v1.0 (security & hardening), v1.1 (multi-channel), v1.2 (analytics), v1.3 (templates & playbooks), v1.4 (licensing & plans), v1.5 (flow-based conversations).
 */

/* ========== الأساسيات ========== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; line-height: 1.6; color: var(--dark); background-color: var(--light); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--dark); position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -10px; right: 0; width: 80px; height: 4px; background: var(--primary); border-radius: 2px; }
.section-title p { font-size: 1.2rem; color: var(--gray); max-width: 700px; margin: 0 auto; }
.section-pad { padding: 3rem 0; }

/* الهيدر */
header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); position: fixed; top: 0; width: 100%; z-index: 1000; transition: var(--transition); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
.logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.logo i { margin-left: 0.5rem; font-size: 1.8rem; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin: 0 1rem; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; transition: var(--transition); position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; right: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }
.cta-button { background: var(--primary); color: #fff; padding: 0.8rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; transition: var(--transition); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.cta-button:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }
.cta-button i { margin-right: 0.5rem; }

/* البطل */
.hero { 
  background: linear-gradient(135deg, #E0F2FE 0%, #EFF6FF 60%, #FFFFFF 100%);
  padding: 5rem 0;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 100%; background: url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\"><path d=\"M0,0 L100,0 L100,100 Z\" fill=\"rgba(255,255,255,0.05)\"/></svg>'); background-size: cover; }
.hero-content { max-width: 1200px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; }
.hero p { font-size: 1.3rem; margin-bottom: 2.5rem; max-width: 800px; margin-left: auto; margin-right: auto; opacity: 0.9; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.whatsapp-button { background: #25d366; color: #fff; padding: 0.8rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; transition: var(--transition); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.whatsapp-button:hover { background: #128c7e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
.whatsapp-button i { margin-right: 0.5rem; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; }
.stat-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 15px; text-align: center; transition: var(--transition); border: 1px solid rgba(255, 255, 255, 0.2); }
.stat-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.15); }
.stat-number { display: block; font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-label { font-size: 1rem; opacity: 0.9; }

/* بطاقات الوكلاء */
.agents-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; margin-top: 2rem; }
.agent-category { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); transition: var(--transition); border: 1px solid #f1f5f9; }
.agent-category:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); }
.category-header { padding: 1.5rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; display: flex; align-items: center; }
.category-icon { width: 60px; height: 60px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: 1rem; font-size: 1.5rem; }
.category-title { font-size: 1.3rem; }
.category-title a { color: #fff; text-decoration: none; }

/* إصلاح لون النص داخل بطاقات الوكلاء (عدم وراثة الأزرق) */
.agent-category .category-description,
.agent-category .examples-grid .example-item div,
.agent-category .agent-comparison .comparison-title,
.agent-category .comparison-stat .label,
.agent-category .category-footer,
.agent-category .agent-count {
  color: var(--dark);
}
.agent-category .comparison-stat .value { color: var(--primary); }

.category-description { padding: 1.5rem; color: var(--gray); line-height: 1.6; }
.examples-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 0 1.5rem; }
.example-item { display: flex; align-items: center; padding: 0.8rem; border-radius: 8px; transition: var(--transition); background: #f8fafc; }
.example-item:hover { background: #e2e8f0; }
.example-item i { margin-left: 0.5rem; color: var(--primary); }

.agent-comparison { padding: 1.5rem; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.comparison-title { font-size: 1.1rem; margin-bottom: 1rem; color: var(--dark); }
.comparison-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.comparison-stat { text-align: center; padding: 0.8rem; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); }
.comparison-stat .value { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; }

.category-footer { padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e2e8f0; }
.agent-count span { color: var(--primary); }
.secondary-button { color: var(--primary); text-decoration: none; font-weight: 600; display: flex; align-items: center; transition: var(--transition); }
.secondary-button:hover { color: var(--primary-dark); }
.secondary-button i { margin-right: 0.5rem; transition: var(--transition); }
.secondary-button:hover i { transform: translateX(-5px); }

/* التبويبات */
.industries-tabs { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.tab-headers { display: flex; overflow-x: auto; background: #f8fafc; border-bottom: 1px solid #e2e8f0; scrollbar-width: none; }
.tab-headers::-webkit-scrollbar { display: none; }
.tab-header { padding: 1rem 1.5rem; cursor: pointer; white-space: nowrap; transition: var(--transition); border-bottom: 3px solid transparent; font-weight: 600; }
.tab-header.active { color: var(--primary); border-bottom-color: var(--primary); background: #fff; }
.tab-header:hover:not(.active) { background: #e2e8f0; }
.tab-content { display: none; padding: 2rem; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.industry-workflows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.workflow-item { background: #f8fafc; border-radius: 10px; padding: 1.5rem; transition: var(--transition); border: 1px solid #e2e8f0; }
.workflow-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); background: #fff; }
.workflow-item h4 { display: flex; align-items: center; margin-bottom: 1rem; color: var(--dark); }
.workflow-item h4 i { margin-left: 0.5rem; color: var(--primary); }
.workflow-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.workflow-stat { display: flex; align-items: center; background: #fff; padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.8rem; color: var(--gray); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); }
.workflow-stat i { margin-left: 0.3rem; color: var(--secondary); }
.workflow-description { color: var(--gray); margin-bottom: 1rem; line-height: 1.5; }
.workflow-link { color: var(--primary); text-decoration: none; font-weight: 600; display: flex; align-items: center; transition: var(--transition); }
.workflow-link:hover { color: var(--primary-dark); }
.workflow-link i { margin-right: 0.5rem; transition: var(--transition); }
.workflow-link:hover i { transform: translateX(-5px); }

/* CTA والفوتر */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 5rem 0; text-align: center; }
.cta-container { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.cta-container h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-container p { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

footer { background: var(--dark); color: #fff; padding: 4rem 0 2rem; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-col h3 { font-size: 1.3rem; margin-bottom: 1.5rem; position: relative; display: inline-block; }
.footer-col h3::after { content: ''; position: absolute; bottom: -8px; right: 0; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }
.footer-col p { margin-bottom: 1rem; opacity: 0.8; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a, .footer-links li { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: var(--transition); display: flex; align-items: center; }
.footer-links a:hover { color: #fff; transform: translateX(-5px); }
.footer-links i { margin-left: 0.5rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.copyright { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.7; }

/* استجابة */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  .section-title h2 { font-size: 2rem; }
  .agents-container { grid-template-columns: 1fr; }
  .hero-buttons, .cta-buttons { flex-direction: column; align-items: center; }
  .hero-buttons a, .cta-buttons a { width: 100%; max-width: 300px; text-align: center; justify-content: center; }
  .category-footer { flex-direction: column; gap: 1rem; text-align: center; }
  .tab-headers { flex-wrap: nowrap; justify-content: flex-start; }
}

/* زر واتساب العائم */
.floating-whatsapp { position: fixed; bottom: 2rem; left: 2rem; width: 60px; height: 60px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); z-index: 1000; transition: var(--transition); animation: pulse 2s infinite; }
.floating-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);} 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);} 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);} }


/* تخطيط صفحات لوحة الإدارة */
.admin-layout { margin-top: 70px; }


/* ========== Admin footer ========== */
.admin-footer {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.78rem;
  color: var(--gray);
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}
.admin-footer .footer-left {
  display:flex;
  align-items:center;
  gap:.35rem;
}
.admin-footer .footer-right {
  font-size:0.75rem;
}


/* Version badge in topbar */
.version-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.15rem 0.7rem;
  border-radius:999px;
  background:#e5e7eb;
  color:#374151;
  font-size:0.72rem;
}

/* ===== لغة الموقع (عربي / English) ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle .lang-label {
  font-size: 0.9rem;
  color: var(--gray);
}

.lang-toggle .lang-btn {
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle .lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

body.lang-en {
  direction: ltr;
  text-align: left;
}

body.lang-en header .nav-links li {
  margin: 0 0.75rem;
}

body.lang-en .hero h1,
body.lang-en .hero p {
  text-align: left;
}

body.lang-en .section-title {
  text-align: left;
}

body.lang-en .section-title p {
  margin-left: 0;
}

@media (max-width: 768px) {
  .lang-toggle {
    margin-top: 0.5rem;
  }
}

/* ===== نماذج التسويق (طلب عرض / تواصل) ===== */
.lead-section {
  background: #0f172a;
  color: #e5e7eb;
  padding: 3rem 0;
}

.lead-section .container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: center;
}

.lead-section h2 {
  color: #e5e7eb;
}

.lead-section p {
  color: #cbd5f5;
}

.lead-form {
  background: rgba(15, 23, 42, 0.9);
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.lead-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lead-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-size: 0.9rem;
}

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

.lead-form .lead-submit {
  margin-top: 1.25rem;
  width: 100%;
}

.lead-status {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.lead-status.ok {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
}

.lead-status.error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

@media (max-width: 880px) {
  .lead-section .container {
    grid-template-columns: minmax(0, 1fr);
  }
  .lead-form .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== تسعير ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
}

.pricing-card.highlighted {
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18);
}

.pricing-badge {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.5rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-dark);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
}

.pricing-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.pricing-card .price {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card ul li {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  display: flex;
  gap: 0.4rem;
}

.pricing-card ul li::before {
  content: "•";
  font-size: 1.1rem;
  line-height: 1.4;
}



/* ===================================================================
   Enterprise White Theme Overrides (Landing & Public Pages) – R1.10.0
   Palette:
     - Background: #FFFFFF
     - Soft BG:    #F8F9FA, #F1F5F9
     - Primary:    #2563EB
     - Headings:   #1F2937
     - Body text:  #4B5563
     - Borders:    #E5E7EB
   =================================================================== */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --secondary: #0EA5E9;
  --accent: #38BDF8;
  --dark: #1F2937;
  --light: #F8F9FA;
  --gray: #4B5563;
  --bg-soft: #F8F9FA;
  --bg-softer: #F1F5F9;
  --border-subtle: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 2px 6px rgba(15,23,42,0.06);
  --radius-lg: 12px;
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 24px;
}

/* Global body + typography */
body {
  background-color: #FFFFFF;
  color: #4B5563;
}

/* Sections */
.section-pad {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-title h2 {
  color: #1F2937;
}

.section-title p {
  color: #4B5563;
}

/* Hero and primary CTAs */
.hero { 
  background: linear-gradient(135deg, #E0F2FE 0%, #EFF6FF 60%, #FFFFFF 100%);
  padding: 5rem 0;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}


.hero-content h1 {
  color: #1F2937;
}

.hero-content p {
  color: #4B5563;
}

.btn-primary,
.hero-actions .btn-primary {
  background-color: #2563EB;
  border-radius: 9999px;
  padding: 10px 20px;
  border: 1px solid #2563EB;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.hero-actions .btn-primary:hover {
  background-color: #1D4ED8;
}

.btn-secondary,
.hero-actions .btn-secondary {
  background-color: #FFFFFF;
  color: #2563EB;
  border-radius: 9999px;
  border: 1px solid #E5E7EB;
  padding: 10px 20px;
  box-shadow: none;
}

.card,
.feature-card,
.usecase-card,
.industry-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
  background: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  color: #6B7280;
}

footer a {
  color: #2563EB;
}


/* ===================================================================
   Enterprise Public Header & Landing Refinements – Build 60
   =================================================================== */

/* Tokens for public pages */
:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --border-light: #D0D7DE;
  --border-medium: #959DA5;
  --shadow-level-1: 0 1px 3px rgba(27,31,35,0.12);
  --shadow-level-3: 0 8px 24px rgba(149,157,165,0.20);
}

/* Base typography & background */
body {
  font-family: var(--font-sans);
  color: #4B5563;
  background-color: #F6F8FA;
}

/* Header layout */
header {
  background: #FFFFFF;
  box-shadow: var(--shadow-level-1);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0052CC;
}

/* Main nav: fewer, smaller links */
.main-nav {
  flex: 1 1 auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: #0052CC;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav-links a:hover {
  color: #0052CC;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Right side: login + language */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-login.btn-primary {
  background-color: #0052CC;
  color: #FFFFFF;
  border-radius: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #0052CC;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-level-1);
}

.nav-login.btn-primary:hover {
  background-color: #0747A6;
}

/* Language toggle compact */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background-color: #FFFFFF;
}

.lang-toggle .lang-label {
  display: none;
}

.lang-btn {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
  color: #6B7280;
}

.lang-btn.active {
  background-color: #0052CC;
  color: #FFFFFF;
}

/* Hero text sizing a bit calmer */
.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1rem;
  color: #4B5563;
  max-width: 720px;
  margin-inline: auto;
}

/* Primary CTA buttons in hero */
.hero-actions .btn-primary {
  background-color: #0052CC;
  color: #FFFFFF;
  border-radius: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #0052CC;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-level-1);
}

.hero-actions .btn-secondary {
  background-color: #FFFFFF;
  color: #24292F;
  border-radius: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Section titles */
.section-title h2 {
  font-size: 1.8rem;
  color: #1F2937;
}

.section-title p {
  font-size: 1rem;
  color: #4B5563;
}

/* Footer refinement */
footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  color: #6B7280;
  font-size: 0.85rem;
}

footer .container {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}


/* Refined language toggle and footer for landing */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background-color: #FFFFFF;
}

.lang-btn {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  padding: 3px 6px;
  border-radius: 999px;
  cursor: pointer;
  color: #6B7280;
}

.lang-btn.active {
  background-color: #0052CC;
  color: #FFFFFF;
}

/* Footer layout improvements */
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

footer .footer-left,
footer .footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

footer .footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

footer .footer-links a {
  color: #4B5563;
  text-decoration: none;
}

footer .footer-links a:hover {
  text-decoration: underline;
}


/* ===================================================================
   Landing header & footer refresh – Build 66
   Cleaner, modern enterprise look for public home page.
   =================================================================== */

/* Header */
header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 40;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.logo .brand-text {
  letter-spacing: 0.04em;
}

/* Navigation links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: #0052CC;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav-links a:hover {
  color: #0052CC;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Header actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta.btn-primary {
  background-color: #0052CC;
  color: #FFFFFF;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #0052CC;
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-login.btn-secondary {
  background-color: #FFFFFF;
  color: #111827;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #D0D7DE;
  font-size: 0.85rem;
  font-weight: 500;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid #D0D7DE;
  background-color: #FFFFFF;
}

.lang-btn {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  padding: 3px 6px;
  border-radius: 999px;
  cursor: pointer;
  color: #6B7280;
}

.lang-btn.active {
  background-color: #0052CC;
  color: #FFFFFF;
}

/* Hero spacing: no extra margin for sticky header */
.hero {
  margin-top: 0;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

/* Footer */
.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E5E7EB;
}

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

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.footer-brand {
  font-weight: 600;
  color: #111827;
}

.footer-copy {
  color: #6B7280;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  color: #4B5563;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  text-decoration: underline;
}


/* R1.10.0_B70: Active nav link and mobile menu */
.nav-links a.active {
  color: var(--primary);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

/* Mobile navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--dark);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    padding: 1rem 1.5rem;
    display: none;
  }
  body.nav-open .main-nav {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Floating WhatsApp (shared for all pages) */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.7rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  z-index: 1200;
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
}
.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}
@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


/* R1.10.0_B71: Modern segmented language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.lang-toggle .lang-btn {
  border: none;
  padding: 0.25rem 0.9rem;
  border-radius: 9999px;
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 40px;
}

.lang-toggle .lang-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.lang-toggle .lang-btn:not(.active) {
  color: var(--gray);
}

/* Fine-tune for dark hero headers */
header .lang-toggle {
  background: rgba(248, 250, 252, 0.85);
}

/* Contact lead section title alignment */
.lead-section .section-title {
  text-align: right;
}
body.lang-en .lead-section .section-title {
  text-align: left;
}
