/* Deeny Design System - Orange & Green Islamic Theme */

:root {
  --background: hsl(0, 0%, 98%);
  --foreground: hsl(145, 45%, 20%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(145, 45%, 20%);
  --primary: hsl(27, 95%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(30, 30%, 96%);
  --secondary-foreground: hsl(145, 45%, 20%);
  --muted: hsl(30, 20%, 94%);
  --muted-foreground: hsl(145, 30%, 35%);
  --accent: hsl(145, 55%, 30%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(30, 20%, 88%);
  --radius: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background-color: var(--primary);
  padding: 0.75rem 1.5rem;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-foreground);
}

/* Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-foreground);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lang-arrow {
  transition: transform 0.2s;
}

.lang-dropdown.active + .lang-btn .lang-arrow,
.lang-switcher:has(.lang-dropdown.active) .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 120px;
  margin-top: 0.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 100;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.lang-option:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.lang-option:hover {
  background: var(--secondary);
}

.lang-option.active {
  background: var(--muted);
  font-weight: 500;
}

/* Mobile Language Links */
.mobile-lang-links {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.mobile-lang-link {
  padding: 0.5rem 1rem;
  background: var(--secondary);
  border-radius: var(--radius);
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.mobile-lang-link:hover,
.mobile-lang-link.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.nav-mobile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: hsl(30, 30%, 92%);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 0.75rem 3rem;
  font-size: 1rem;
}

.btn-accent:hover {
  background-color: hsl(145, 55%, 25%);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-icon {
  position: relative;
  width: 1.5rem;
  height: 2px;
  background-color: var(--primary-foreground);
  transition: all 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 1.5rem;
  height: 2px;
  background-color: var(--primary-foreground);
  transition: all 0.3s;
}

.hamburger-icon::before {
  top: -6px;
}

.hamburger-icon::after {
  bottom: -6px;
}

.hamburger.active .hamburger-icon {
  background-color: transparent;
}

.hamburger.active .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.hamburger.active .hamburger-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--primary-foreground);
}

/* Hero Section */
.hero {
  padding: 5rem 1.5rem;
  background-color: var(--background);
}

.hero-content {
  max-width: 64rem;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.hero-description {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-stat-box {
  background-color: hsla(145, 55%, 30%, 0.05);
  border-radius: 1rem;
  padding: 3rem;
  border: 2px solid hsla(145, 55%, 30%, 0.2);
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent);
}

.hero-stat-label {
  color: var(--muted-foreground);
}

/* Features Section */
.features {
  padding: 4rem 1.5rem;
  background-color: var(--secondary);
}

.features-content {
  max-width: 56rem;
  margin: 0 auto;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--background);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  background-color: hsla(145, 55%, 30%, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Steps Section */
.steps {
  padding: 4rem 1.5rem;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-content {
  max-width: 64rem;
  margin: 0 auto;
}

.steps-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.steps-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.steps-subtitle {
  color: var(--muted-foreground);
}

.steps-grid {
  display: grid;
  gap: 1.5rem;
}

.step-card {
  background-color: hsla(145, 55%, 30%, 0.05);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border-right: 4px solid var(--accent);
}

.step-number {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 4rem 1.5rem;
  background-color: var(--background);
}

.contact-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.contact-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--secondary);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

.contact-email {
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  padding: 2rem 1.5rem;
}

.footer-content {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--foreground);
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }

  .hamburger {
    display: none;
  }

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

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

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* LTR Support for French */
[dir="ltr"] .header-content {
  flex-direction: row;
}

[dir="ltr"] .feature-card {
  flex-direction: row;
}

[dir="ltr"] .feature-icon-wrapper {
  margin-left: 0;
  margin-right: 1rem;
}

[dir="ltr"] .lang-dropdown {
  left: 0;
  right: auto;
}
