/* ==========================================================================
   Naqhawikom Premium Landing Page Stylesheet
   Theme: Specialty Coffee, Premium Green, Golden Spice & Rich Bean Brown
   Font: Cairo (Google Fonts)
   Layout: Responsive RTL Modern Grid & Glassmorphic Elements
   ========================================================================== */

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

:root {
  /* Color Palette */
  --primary-green: #59B16C;
  --primary-green-rgb: 89, 177, 108;
  --primary-green-dark: #3E8E50;
  --primary-green-light: #EBF7ED;
  --primary-green-soft: rgba(89, 177, 108, 0.08);
  
  --cream-bg: #FDFBF7;
  --cream-bg-darker: #F7F3E9;
  --white: #FFFFFF;
  
  --coffee-dark: #2E1E12;
  --coffee-medium: #5C4331;
  --coffee-light: #8E6F57;
  --text-main: #3E3025;
  --text-muted: #7E6E63;
  
  --accent-gold: #D4A373;
  --accent-gold-rgb: 212, 163, 115;
  --accent-gold-light: #F7EFE5;
  --accent-gold-dark: #A97C52;
  
  /* UI Tokens */
  --shadow-sm: 0 4px 6px -1px rgba(46, 30, 18, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(46, 30, 18, 0.08), 0 4px 6px -2px rgba(46, 30, 18, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(46, 30, 18, 0.1), 0 10px 10px -5px rgba(46, 30, 18, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(46, 30, 18, 0.15);
  --shadow-glow: 0 0 30px rgba(89, 177, 108, 0.25);
  --shadow-glow-gold: 0 0 30px rgba(212, 163, 115, 0.35);
  
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;
  --border-radius-xl: 48px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elastic: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--cream-bg);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cream-bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--coffee-light);
  border-radius: 5px;
  border: 2px solid var(--cream-bg-darker);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}

/* Common Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--coffee-dark);
  line-height: 1.3;
}

p {
  color: var(--text-muted);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--coffee-dark) 0%, var(--primary-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green-gold {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background-color: var(--primary-green-light);
  color: var(--primary-green-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(89, 177, 108, 0.15);
  box-shadow: 0 4px 10px rgba(89, 177, 108, 0.05);
}

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
}

.section-title-wrapper h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-title-wrapper p {
  font-size: 1.1rem;
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(89, 177, 108, 0.35);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background-color: var(--white);
  color: var(--coffee-dark);
  border: 1.5px solid var(--cream-bg-darker);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--cream-bg-darker);
  border-color: var(--coffee-light);
  transform: translateY(-2px);
}

/* Floating Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-delayed {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes steam {
  0% { transform: translateY(0) scaleX(1) scaleY(1); opacity: 0.1; }
  50% { transform: translateY(-10px) scaleX(1.1) scaleY(1.1); opacity: 0.5; }
  100% { transform: translateY(-20px) scaleX(1.2) scaleY(0.9); opacity: 0; }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 15px rgba(89, 177, 108, 0.2); }
  50% { box-shadow: 0 0 35px rgba(89, 177, 108, 0.45); }
  100% { box-shadow: 0 0 15px rgba(89, 177, 108, 0.2); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.floating-bean-1 {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 48px;
  height: 48px;
  animation: float 6s ease-in-out infinite;
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

.floating-bean-2 {
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 38px;
  height: 38px;
  animation: float-delayed 8s ease-in-out infinite;
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Header (Navbar) Styles
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 24px 0;
}

.header.sticky {
  padding: 14px 0;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(46, 30, 18, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  width: auto;
  height: 48px;
  transition: transform var(--transition-normal);
}

.logo-wrapper:hover .logo-svg {
  transform: scale(1.05) rotate(-3deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary-green);
  border-radius: 5px;
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-green-dark);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--coffee-dark);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  background-color: var(--cream-bg-darker);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid rgba(46, 30, 18, 0.05);
}

.lang-switch:hover {
  background-color: var(--primary-green-light);
  color: var(--primary-green-dark);
}

.mobile-only-action {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--coffee-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */
.hero {
  padding: 160px 0 100px 0;
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(89, 177, 108, 0.06) 0%, rgba(253, 251, 247, 0) 60%),
              radial-gradient(circle at 90% 80%, rgba(212, 163, 115, 0.05) 0%, rgba(253, 251, 247, 0) 60%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 30, 18, 0.04);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--coffee-dark);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-green);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-title span {
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(89, 177, 108, 0.15);
  z-index: -1;
  border-radius: 4px;
}

.hero-text {
  font-size: 1.2rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-download-wrapper {
  margin-bottom: 32px;
}

.download-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--coffee-light);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.store-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--coffee-dark);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
}

.store-btn:hover {
  background-color: var(--white);
  color: var(--coffee-dark);
  border-color: var(--coffee-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn-text span:first-child {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
}

.store-btn-text span:last-child {
  font-size: 0.95rem;
  font-weight: 700;
}

/* App Store Ratings in Hero */
.hero-ratings {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1.5px solid rgba(46, 30, 18, 0.06);
  padding-top: 24px;
}

.rating-stars {
  display: flex;
  gap: 4px;
  color: #FFD700;
}

.rating-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.rating-text span {
  font-weight: 800;
  color: var(--primary-green-dark);
}

/* Interactive Device Mockups (Hero Left) */
.hero-mockups {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 520px;
}

.mockup-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(89, 177, 108, 0.25) 0%, rgba(253, 251, 247, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  filter: blur(10px);
}

.phone-mockup {
  position: absolute;
  width: 250px;
  height: 500px;
  background-color: var(--coffee-dark);
  border: 10px solid #1c140e;
  border-radius: 40px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 2;
  transition: all var(--transition-slow);
}

.phone-mockup-1 {
  transform: translateX(-40px) translateY(-10px) rotate(-6deg);
  z-index: 3;
}

.phone-mockup-2 {
  transform: translateX(80px) translateY(30px) rotate(6deg);
  z-index: 2;
  opacity: 0.85;
}

.phone-mockup-1:hover {
  transform: translateX(-60px) translateY(-25px) rotate(-8deg) scale(1.03);
  z-index: 4;
}

.phone-mockup-2:hover {
  transform: translateX(100px) translateY(15px) rotate(8deg) scale(1.03);
  z-index: 4;
  opacity: 1;
}

/* Phone UI Elements */
.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--cream-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 12px;
}

.phone-header {
  height: 38px;
  background-color: var(--white);
  padding: 10px 16px 4px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(46, 30, 18, 0.04);
}

.phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 14px;
  background-color: #000000;
  border-radius: 20px;
  z-index: 10;
}

.phone-body-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-body-content::-webkit-scrollbar {
  display: none;
}

/* App UI Components */
.app-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.app-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

.app-user-name {
  font-weight: 700;
  font-size: 0.65rem;
}

.app-points-badge {
  background-color: var(--primary-green-light);
  color: var(--primary-green-dark);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-points-badge svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.app-search-box {
  background-color: var(--white);
  border: 1px solid rgba(46, 30, 18, 0.05);
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-section-title {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--coffee-dark);
}

.app-cafes-horizontal {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.app-cafes-horizontal::-webkit-scrollbar {
  display: none;
}

.app-cafe-card {
  flex: 0 0 100px;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 30, 18, 0.02);
}

.app-cafe-img {
  height: 60px;
  background-color: var(--cream-bg-darker);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-cafe-img::after {
  content: '☕';
  font-size: 1.5rem;
}

.app-cafe-logo {
  position: absolute;
  bottom: -8px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--primary-green);
  border: 1.5px solid var(--white);
}

.app-cafe-info {
  padding: 6px;
}

.app-cafe-name {
  font-weight: 700;
  font-size: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-cafe-distance {
  font-size: 0.5rem;
  color: var(--text-muted);
}

.app-coffee-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  padding: 8px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.app-coffee-details {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-coffee-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.app-coffee-text {
  display: flex;
  flex-direction: column;
}

.app-coffee-name {
  font-weight: 700;
  font-size: 0.65rem;
}

.app-coffee-price {
  font-weight: 800;
  font-size: 0.6rem;
  color: var(--primary-green-dark);
}

.app-coffee-add {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--primary-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10px;
}

/* Phone Screen 2 elements: Order status */
.app-order-status-card {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
  padding: 12px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.app-order-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.55rem;
  opacity: 0.9;
}

.app-order-title {
  font-weight: 800;
  font-size: 0.75rem;
}

.app-order-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.55rem;
}

.app-order-progress {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
}

.app-order-progress-bar {
  height: 100%;
  width: 65%;
  background-color: var(--white);
  border-radius: 4px;
}

.app-order-message {
  font-size: 0.6rem;
  font-weight: 600;
}

.app-map-view {
  flex: 1;
  background-color: #E2E8F0;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.app-map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#cbd5e1 1px, transparent 0), radial-gradient(#cbd5e1 1px, #e2e8f0 1);
  background-size: 12px 12px;
}

.app-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-pin-glow {
  width: 24px;
  height: 24px;
  background-color: rgba(89, 177, 108, 0.4);
  border-radius: 50%;
  position: absolute;
  top: -6px;
  animation: pulse-glow 2s infinite;
  z-index: 1;
}

.app-pin-icon {
  background-color: var(--primary-green-dark);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  z-index: 2;
}

.app-pin-icon span {
  transform: rotate(45deg);
}

.app-map-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background-color: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-overlay-text {
  font-weight: 700;
  font-size: 0.55rem;
}

.app-overlay-btn {
  background-color: var(--coffee-dark);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.5rem;
  font-weight: 700;
}

/* ==========================================================================
   Stats Section Styles
   ========================================================================== */
.stats {
  padding: 60px 0;
  position: relative;
  z-index: 10;
  margin-top: -30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(46, 30, 18, 0.03);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  width: 1.5px;
  height: 60%;
  background-color: rgba(46, 30, 18, 0.08);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-green-dark);
  line-height: 1.1;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-number span {
  font-family: inherit;
}

.stat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--coffee-dark);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Creative Features Grid (لماذا نقهاويكم هو الأنسب لمزاجك؟)
   ========================================================================== */
.features {
  padding: 100px 0;
  background-color: var(--cream-bg-darker);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(46, 30, 18, 0.02);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  min-height: 380px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(89, 177, 108, 0.15);
}

.feature-card-1 {
  grid-column: span 1;
}

.feature-card-2 {
  grid-column: span 1;
}

.feature-card-wide {
  grid-column: span 3;
  min-height: 280px;
  flex-direction: row;
  align-items: center;
  background: linear-gradient(135deg, var(--coffee-dark) 0%, #170e08 100%);
  color: var(--white);
  border: none;
  padding: 40px 48px;
}

.feature-card-wide .feature-info h3 {
  color: var(--white);
}

.feature-card-wide .feature-info p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
}

.feature-card-4 {
  grid-column: span 1;
}

.feature-card-5 {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.feature-card-5 .feature-info {
  flex: 1;
}

.feature-info {
  margin-bottom: 24px;
  z-index: 2;
}

.feature-card-wide .feature-info, .feature-card-5 .feature-info {
  margin-bottom: 0;
}

.feature-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-green-light);
  color: var(--primary-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.feature-card-wide .feature-icon-badge {
  background-color: rgba(89, 177, 108, 0.15);
  color: var(--primary-green);
  border: 1px solid rgba(89, 177, 108, 0.2);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--coffee-dark);
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Feature Mockup Visuals inside Cards */
.feature-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.feature-mockup-phone {
  width: 150px;
  height: 180px;
  background-color: var(--coffee-dark);
  border: 5px solid #1c140e;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: -15px;
}

.feature-mockup-screen {
  background-color: var(--cream-bg);
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Feature Card Wide Illustration (Dallah outline) */
.dallah-interactive-visual {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  position: relative;
}

.dallah-svg-outline {
  width: 200px;
  height: 200px;
  stroke: var(--primary-green);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawDallah 6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(89, 177, 108, 0.4));
}

@keyframes drawDallah {
  0% { stroke-dashoffset: 800; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -800; }
}

.dallah-steam-particles {
  position: absolute;
  top: 10px;
  right: 50%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dallah-steam-line {
  width: 2px;
  height: 12px;
  background: linear-gradient(to top, var(--accent-gold), transparent);
  border-radius: 20px;
  animation: steam 2.5s infinite;
}

.dallah-steam-line:nth-child(2) {
  animation-delay: 0.8s;
  height: 16px;
}

.dallah-steam-line:nth-child(3) {
  animation-delay: 1.5s;
}

/* Card 5 Loyalty Card Visual */
.feature-card-5 .feature-visual {
  flex: 0 0 240px;
  margin-top: 0;
  align-items: center;
}

.card5-loyalty-card {
  width: 200px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  border-radius: 16px;
  padding: 14px;
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transform: rotate(-6deg);
  transition: transform var(--transition-normal);
}

.card5-loyalty-card:hover {
  transform: rotate(0deg) scale(1.05);
}

.card5-loyalty-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.card5-logo {
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card5-beans-indicator {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.card5-beans-label {
  font-size: 0.65rem;
  opacity: 0.8;
}

.card5-cardholder {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Loyalty step-by-step section (برنامج نقاط حبات البن)
   ========================================================================== */
.loyalty {
  padding: 100px 0;
  position: relative;
}

.loyalty-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.loyalty-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  right: 15%;
  width: 70%;
  height: 2px;
  background-image: linear-gradient(to left, rgba(89, 177, 108, 0.3) 30%, rgba(255,255,255,0) 0%);
  background-position: bottom;
  background-size: 15px 2px;
  background-repeat: repeat-x;
  z-index: 1;
}

.loyalty-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.loyalty-step-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px auto;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--cream-bg-darker);
  position: relative;
  transition: all var(--transition-elastic);
}

.loyalty-step:hover .loyalty-step-badge {
  transform: scale(1.1) rotate(15deg);
  background-color: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green-light);
}

.loyalty-step-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.loyalty-step-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--coffee-dark);
}

.loyalty-step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Secondary Grid of features (كيف يعمل برنامج نقاط مكافآت زيدا) */
.loyalty-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  border-top: 1.5px solid rgba(46, 30, 18, 0.06);
  padding-top: 64px;
}

.loyalty-feature-item {
  background-color: var(--white);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 30, 18, 0.02);
  transition: all var(--transition-fast);
}

.loyalty-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.loyalty-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.loyalty-feature-item:nth-child(even) .loyalty-feature-icon {
  background-color: var(--primary-green-light);
  color: var(--primary-green-dark);
}

.loyalty-feature-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--coffee-dark);
}

.loyalty-feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */
.faq {
  padding: 100px 0;
  background-color: var(--cream-bg-darker);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 30, 18, 0.02);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-trigger {
  width: 100%;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  text-align: right;
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--coffee-dark);
  transition: color var(--transition-fast);
}

.faq-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--cream-bg-darker);
  color: var(--coffee-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.faq-icon-wrapper svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform var(--transition-normal);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1);
}

.faq-content-inner {
  padding: 0 30px 24px 30px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* FAQ Active Styles via JS classes */
.faq-card.active {
  box-shadow: var(--shadow-md);
  border-color: rgba(89, 177, 108, 0.15);
}

.faq-card.active .faq-question {
  color: var(--primary-green-dark);
}

.faq-card.active .faq-icon-wrapper {
  background-color: var(--primary-green);
  color: var(--white);
}

.faq-card.active .faq-icon-wrapper svg {
  transform: rotate(180deg);
}

.faq-card.active .faq-content {
  max-height: 1000px;
  transition: max-height var(--transition-normal) cubic-bezier(1, 0, 1, 0);
}

/* ==========================================================================
   Download Banner Section (انطلق نحو تجربة مجزية مع نقهاويكم)
   ========================================================================== */
.cta-download {
  padding: 60px 0;
  position: relative;
}

.cta-banner-card {
  background: linear-gradient(135deg, var(--coffee-dark) 0%, #1e130a 100%);
  border-radius: var(--border-radius-lg);
  padding: 56px 80px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(89, 177, 108, 0.15) 0%, transparent 60%);
}

.cta-banner-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.1) 0%, transparent 70%);
  filter: blur(20px);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.cta-info h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-store-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-store-buttons .store-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-store-buttons .store-btn:hover {
  background-color: var(--white);
  color: var(--coffee-dark);
}

.cta-visual {
  position: relative;
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.cta-phone-mockup-left {
  position: absolute;
  width: 160px;
  height: 320px;
  background-color: #121212;
  border: 6px solid #2a2a2a;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateX(-50px) translateY(40px) rotate(-12deg);
  z-index: 2;
  transition: all var(--transition-normal);
}

.cta-phone-mockup-right {
  position: absolute;
  width: 160px;
  height: 320px;
  background-color: #121212;
  border: 6px solid #2a2a2a;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateX(50px) translateY(80px) rotate(8deg);
  z-index: 1;
  transition: all var(--transition-normal);
}

.cta-banner-card:hover .cta-phone-mockup-left {
  transform: translateX(-65px) translateY(20px) rotate(-15deg) scale(1.03);
}

.cta-banner-card:hover .cta-phone-mockup-right {
  transform: translateX(65px) translateY(60px) rotate(10deg) scale(1.03);
}

/* ==========================================================================
   Contact Us Section (تواصل معنا لمزاج أفضل)
   ========================================================================== */
.contact {
  padding: 100px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

/* Contact Info Column */
.contact-info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-tag {
  align-self: flex-start;
}

.contact-title h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-sm);
  background-color: var(--white);
  color: var(--primary-green-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 30, 18, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-content {
  display: flex;
  flex-direction: column;
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-detail-val {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--coffee-dark);
}

/* Contact Form Column */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(46, 30, 18, 0.02);
  position: relative;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--cream-bg-darker);
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--cream-bg-darker);
  transition: all var(--transition-fast);
}

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

.form-label {
  position: absolute;
  top: 18px;
  right: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

/* Floating label logic */
.form-input:focus, .form-input:not(:placeholder-shown) {
  border-color: var(--primary-green);
  background-color: var(--white);
  box-shadow: 0 0 10px rgba(89, 177, 108, 0.05);
  padding-top: 22px;
  padding-bottom: 10px;
}

.form-input:focus + .form-label, .form-input:not(:placeholder-shown) + .form-label {
  top: 6px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-green-dark);
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
}

/* Form success notification popup */
.form-status {
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background-color: var(--primary-green-light);
  color: var(--primary-green-dark);
  border: 1px solid rgba(89, 177, 108, 0.2);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
  background-color: var(--coffee-dark);
  color: var(--white);
  padding: 80px 0 30px 0;
  border-top: 3px solid var(--primary-green);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-svg {
  height: 52px;
  width: auto;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary-green);
  transform: translateY(-3px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-links-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2.5px;
  background-color: var(--accent-gold);
  border-radius: 5px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-green);
  padding-right: 6px;
}

/* Newsletter Column */
.footer-newsletter-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-newsletter-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2.5px;
  background-color: var(--primary-green);
  border-radius: 5px;
}

.newsletter-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--primary-green);
  background-color: rgba(255, 255, 255, 0.12);
}

.newsletter-btn {
  padding: 12px 20px;
  background-color: var(--primary-green);
  color: var(--white);
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-btn:hover {
  background-color: var(--primary-green-dark);
}

.newsletter-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transform: rotate(180deg);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copy-text span {
  color: var(--accent-gold);
  font-weight: 700;
}

/* ==========================================================================
   Responsive Styles (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 2.85rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-card-wide {
    grid-column: span 2;
  }
  
  .feature-card-5 {
    grid-column: span 2;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
  
  .loyalty-steps::before {
    display: none;
  }
  
  .loyalty-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .loyalty-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }
  
  .cta-info h2 {
    font-size: 2.25rem;
  }
  
  .cta-store-buttons {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-newsletter-col {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  /* Mobile Header Adjustments */
  .header {
    padding: 16px 0;
  }
  
  .header.sticky {
    padding: 10px 0;
  }

  .logo-svg {
    height: 38px;
  }

  .header-actions {
    gap: 12px;
  }

  /* Hide desktop language switcher in mobile header */
  .header-actions .lang-switch {
    display: none;
  }

  /* Make mobile call-to-action button more compact */
  .header-actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
  }

  /* Mobile Language Switcher container in menu drawer */
  .mobile-only-action {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1.5px solid var(--cream-bg-darker);
  }

  .mobile-lang-switch {
    display: inline-block;
    width: auto;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 100px 40px;
    align-items: flex-start;
    box-shadow: -10px 0 30px rgba(46, 30, 18, 0.05);
    transition: right var(--transition-normal);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-badge {
    margin: 0 auto 24px auto;
  }
  
  .store-buttons {
    justify-content: center;
  }
  
  .hero-ratings {
    justify-content: center;
  }
  
  .hero-mockups {
    height: 440px;
  }
  
  .phone-mockup {
    width: 200px;
    height: 400px;
  }
  
  .phone-mockup-1 {
    transform: translateX(-20px) translateY(-10px) rotate(-5deg);
  }
  
  .phone-mockup-2 {
    transform: translateX(60px) translateY(20px) rotate(5deg);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card-wide {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  
  .feature-card-5 {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  
  .feature-card-5 .feature-visual {
    flex: 0 0 auto;
  }
  
  .loyalty-features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .stat-item:not(:last-child)::after {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-newsletter-col {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ==========================================================================
   Dedicated Legal Pages Layout (Terms & Privacy)
   ========================================================================== */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 10% 10%, rgba(89, 177, 108, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 90% 90%, rgba(212, 163, 115, 0.04) 0%, transparent 50%);
}

.legal-content-box {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(46, 30, 18, 0.02);
  margin-top: 32px;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-green-dark);
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.legal-back-btn:hover {
  transform: translateX(-4px);
  color: var(--coffee-dark);
}

.legal-back-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transform: scaleX(-1); /* flip for RTL back arrow */
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--coffee-dark);
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--cream-bg-darker);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background-color: var(--primary-green);
  border-radius: 4px;
}

.legal-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 16px;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 16px;
}

.legal-list li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  position: relative;
  padding-right: 20px;
}

.legal-list li::before {
  content: '☕';
  position: absolute;
  right: 0;
  top: 2px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .legal-content-box {
    padding: 24px;
  }
  
  .legal-title {
    font-size: 2rem;
  }
}

