/* ==========================================================================
   CRESTPOINT COMMERCE LLC - LUXURY MONOCHROME DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-primary: #000000;
  --bg-card: #080808;
  --bg-card-elevated: #0d0d0d;
  --border-color: #27272a;
  --border-subtle: #18181b;
  --border-highlight: #3f3f46;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --font-latin: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: #000000;
  color: #ffffff;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-latin);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body {
  font-family: var(--font-arabic);
}

/* Bilingual content visibility */
html[data-lang="en"] .lang-ar { display: none !important; }
html[data-lang="ar"] .lang-en { display: none !important; }

/* Links & Selections */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

::selection {
  background: #ffffff;
  color: #000000;
}

/* Container */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container-custom {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .container-custom {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Background Grid */
.bg-grid-subtle {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border-color);
  background: rgba(0, 0, 0, 0.95);
}

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

/* Text Logo */
.site-logo {
  display: inline-flex;
  flex-direction: column;
  user-select: none;
}

.logo-crestpoint {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.logo-commerce {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  color: var(--text-secondary);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

.site-logo:hover .logo-commerce {
  color: #ffffff;
}

/* Nav links */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #ffffff;
}

/* Lang Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-family: monospace;
  font-size: 0.75rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: #ffffff;
  color: #000000;
  font-weight: bold;
}

.lang-divider {
  width: 1px;
  height: 12px;
  background: var(--border-color);
  margin: 0 2px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: #ffffff;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--bg-card);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #18181b;
  border-color: var(--border-highlight);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-headline {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 900px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-headline { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
  .hero-headline { font-size: 5.5rem; }
}

.hero-supporting {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.7;
  margin-top: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.75rem; }
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-top: 1rem;
  line-height: 1.7;
}

/* Section Wrapper */
.section-wrapper {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid var(--border-color);
}

.bg-dark { background-color: #000000; }
.bg-dark-elevated { background-color: #050505; }

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.custom-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.custom-card:hover {
  background: var(--bg-card-elevated);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #000000;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  color: #ffffff;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #ffffff;
}

.form-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-checkbox {
  margin-top: 0.25rem;
  accent-color: #ffffff;
  cursor: pointer;
}

.form-status {
  padding: 1rem;
  border-radius: 2px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  transition: all 0.2s ease;
}

html[dir="ltr"] .whatsapp-float { right: 1.5rem; }
html[dir="rtl"] .whatsapp-float { left: 1.5rem; }

.whatsapp-float:hover {
  background: #18181b;
  border-color: var(--border-highlight);
}

.whatsapp-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 2px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: #050505;
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  z-index: 49;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.mobile-nav-link:hover {
  color: #ffffff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: #050505;
  color: var(--text-secondary);
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; }
}
