/*
 * Hawas Website Styles
 * hawasapp.com
 */

@import url('design-system.css');

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700;800&display=swap');


/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--duration-normal) var(--ease-default);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
}

.nav__logo-text {
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-size: var(--text-body-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-default);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text-primary);
  opacity: 1;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__lang-toggle {
  font-size: var(--text-body-small);
  font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}

.nav__lang-toggle:hover {
  border-color: var(--color-text-primary);
}

/* Mobile Navigation */
.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  margin: 5px 0;
  transition: all var(--duration-fast) var(--ease-default);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: block;
  }

  .nav--mobile-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-background);
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-5);
  }
}


/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__content {
    text-align: left;
  }

  [dir="rtl"] .hero__content {
    text-align: right;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-golden);
  color: var(--black-pure);
  font-size: var(--text-body-small);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-display);
  font-weight: var(--weight-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-size: var(--text-body-large);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 500px;
  margin-bottom: var(--space-8);
}

@media (min-width: 1024px) {
  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__cta {
    justify-content: flex-start;
  }

  [dir="rtl"] .hero__cta {
    justify-content: flex-end;
  }
}

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__phone-mockup {
  max-width: 320px;
  filter: drop-shadow(var(--shadow-xl));
  animation: float 6s ease-in-out infinite;
}

.hero__app-preview {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}


/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  min-height: 56px;
}

.btn--primary {
  background: var(--black-pure);
  color: var(--white);
}

.btn--primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-text-primary);
}

.btn--secondary:hover {
  background: var(--color-text-primary);
  color: var(--color-background);
  opacity: 1;
}

.btn--golden {
  background: var(--accent-golden);
  color: var(--black-pure);
}

.btn--golden:hover {
  box-shadow: var(--shadow-golden);
  transform: translateY(-2px);
  opacity: 1;
}

.btn__icon {
  width: 20px;
  height: 20px;
}


/* === Features Section === */
.features {
  padding: var(--space-16) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__overline {
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.section__description {
  font-size: var(--text-body-large);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.feature-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-default);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-pure);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: 24px;
}

.feature-card--golden .feature-card__icon {
  background: var(--accent-golden);
  color: var(--black-pure);
}

.feature-card__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.feature-card__description {
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}


/* === Stats Section === */
.stats {
  padding: var(--space-12) 0;
  background: var(--black-pure);
  color: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  text-align: center;
}

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

.stat__number {
  font-size: var(--text-h1);
  font-weight: var(--weight-extrabold);
  color: var(--accent-golden);
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-body-small);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}


/* === CTA Section === */
.cta {
  padding: var(--space-16) 0;
  text-align: center;
}

.cta__content {
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.cta__description {
  font-size: var(--text-body-large);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.cta__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}


/* === Footer === */
.footer {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--gray-50);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

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

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo-icon {
  width: 40px;
  height: 40px;
}

.footer__logo-text {
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
}

.footer__tagline {
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.footer__column-title {
  font-size: var(--text-body-small);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
}

.footer__link:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-default);
}

.footer__social-link:hover {
  background: var(--black-pure);
  color: var(--white);
  opacity: 1;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: var(--text-body-small);
  color: var(--color-text-muted);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-body-small);
  color: var(--color-text-muted);
}

.footer__legal-link:hover {
  color: var(--color-text-primary);
  opacity: 1;
}


/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */

/* === Page Header (for inner pages) === */
.page-header {
  padding-top: calc(72px + var(--space-12));
  padding-bottom: var(--space-12);
  background: var(--gray-50);
  text-align: center;
}

.page-header__title {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.page-header__description {
  font-size: var(--text-body-large);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}


/* === Legal Pages (Terms, Privacy) === */
.legal {
  padding: var(--space-12) 0;
}

.legal__content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.legal__updated {
  font-size: var(--text-body-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.legal h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.legal h3 {
  font-size: var(--text-h4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.legal ul,
.legal ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

[dir="rtl"] .legal ul,
[dir="rtl"] .legal ol {
  padding-left: 0;
  padding-right: var(--space-6);
}

.legal li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  list-style: disc;
}

.legal ol li {
  list-style: decimal;
}

.legal a {
  color: var(--color-text-primary);
  text-decoration: underline;
}

.legal a:hover {
  opacity: 0.7;
}


/* === About Page === */
.about-hero {
  padding-top: calc(72px + var(--space-12));
  padding-bottom: var(--space-16);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.about-hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-hero__logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
}

.about-hero__title {
  font-size: var(--text-display);
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-4);
}

.about-hero__tagline {
  font-size: var(--text-h3);
  color: var(--color-text-secondary);
  font-weight: var(--weight-regular);
}

.about-section {
  padding: var(--space-12) 0;
}

.about-section:nth-child(even) {
  background: var(--gray-50);
}

.about-section__content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.about-section__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-6);
}

.about-section__text {
  font-size: var(--text-body-large);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.about-section__text p {
  margin-bottom: var(--space-4);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

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

.value-card {
  padding: var(--space-5);
  background: var(--color-background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.value-card__icon {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.value-card__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.value-card__description {
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
}


/* === Contact Section === */
.contact {
  padding: var(--space-12) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

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

.contact-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-pure);
  color: var(--white);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  font-size: 20px;
}

.contact-card__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.contact-card__text {
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
}

.contact-card__link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-body-small);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}


/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children > *:nth-child(3) { animation-delay: 200ms; }
.stagger-children > *:nth-child(4) { animation-delay: 300ms; }
.stagger-children > *:nth-child(5) { animation-delay: 400ms; }
.stagger-children > *:nth-child(6) { animation-delay: 500ms; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
