/* ===== MAZALY DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bordeaux: #6B1128;
  --bordeaux-dark: #4A0A1C;
  --bordeaux-light: #8B1A3B;
  --gold: #B8963E;
  --gold-light: #D0B060;
  --gold-dark: #9A7E32;
  --cream: #F0E4CC;
  --cream-light: #FDF6EE;
  --white: #FFFFFF;
  --dark: #1A1A1A;
  --dark-soft: #2C1810;
  --grey: #555555;
  --grey-light: #999999;
  --grey-lighter: #F5F5F5;
  --border: #E8D5A3;
  --shadow: rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark-soft);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: 2px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: 1px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { font-size: 1rem; color: var(--grey); margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--cream { background: var(--cream-light); }
.section--bordeaux { background: var(--bordeaux); color: var(--white); }
.section--bordeaux h2, .section--bordeaux h3 { color: var(--gold); }
.section--bordeaux p { color: rgba(255,255,255,0.85); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.divider { width: 60px; height: 2px; background: var(--gold); margin: 16px auto; }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,213,163,0.4);
  transition: box-shadow 0.3s;
  overflow: visible;
}
.header.scrolled { box-shadow: 0 2px 20px var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  direction: ltr !important;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.logo-text { line-height: 1; }
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop > a {
  font-size: 0.9rem; font-weight: 500; color: var(--grey);
  transition: color 0.2s; letter-spacing: 0.5px; white-space: nowrap;
}
.nav-desktop > a:hover { color: var(--bordeaux); }

/* Globe language menu */
.globe-menu { position: relative; }
.globe-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grey-lighter); border: 1px solid var(--border);
  cursor: pointer; color: var(--grey); transition: all 0.2s;
  font: inherit; line-height: 1; padding: 0; flex-shrink: 0;
}
.globe-btn:hover { border-color: var(--gold); color: var(--bordeaux); }
.globe-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  min-width: 170px; overflow: hidden; z-index: 1001;
  border: 1px solid var(--border);
}
.globe-lang {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 0.9rem; color: var(--dark);
  transition: background 0.15s; white-space: nowrap;
}
.globe-lang:hover { background: var(--cream-light); }
.globe-lang.active { background: var(--cream); font-weight: 600; color: var(--bordeaux); }
.globe-lang span { font-size: 1.2rem; }
/* Hover to open on desktop */
@media (hover: hover) {
  .globe-menu:hover .globe-dropdown { display: block; }
  .globe-menu:hover .globe-btn { border-color: var(--gold); color: var(--bordeaux); }
}
/* Click to open fallback */
.globe-menu.open .globe-dropdown { display: block; }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); margin: 5px 0; transition: all 0.3s;
}
.mobile-nav {
  display: none; position: fixed; top: var(--header-height);
  left: 0; right: 0; bottom: 0; background: var(--white);
  padding: 24px; flex-direction: column; gap: 16px; z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav > a { font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid var(--grey-lighter); }
.mobile-lang-list {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 0; border-top: 1px solid var(--grey-lighter);
}
.mobile-lang-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 1rem;
  transition: background 0.15s;
}
.mobile-lang-list a:hover { background: var(--cream-light); }
.mobile-lang-list a.active { background: var(--cream); font-weight: 600; color: var(--bordeaux); }

/* ===== HERO ===== */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  padding-top: var(--header-height);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px; font-size: 0.85rem; color: var(--gold);
  margin-bottom: 24px; letter-spacing: 1px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 32px; line-height: 1.7; }
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.hero-phone {
  width: 280px; height: 560px;
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
  border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-direction: column; gap: 12px;
  padding: 36px 20px;
}
.hero-phone img {
  width: 100px !important; height: 100px !important; max-width: 100px !important;
  object-fit: contain; border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.hero-phone-appname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600; color: var(--bordeaux);
  letter-spacing: 3px;
}
.hero-phone-placeholder {
  color: var(--gold); font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 300; letter-spacing: 6px;
}

/* ===== STORE BUTTONS ===== */
.store-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s; cursor: pointer;
}
.store-btn--apple {
  background: var(--white); color: var(--dark);
}
.store-btn--apple:hover { background: var(--cream); transform: translateY(-2px); }
.store-btn--google {
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.store-btn--google:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.store-btn svg { width: 24px; height: 24px; }
.store-btn-text { display: flex; flex-direction: column; }
.store-btn-text small { font-size: 0.7rem; font-weight: 400; opacity: 0.7; }
.store-btn-text strong { font-size: 1rem; }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
  border-color: var(--gold);
}
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-light));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 12px; color: var(--bordeaux); }
.feature-card p { font-size: 0.95rem; line-height: 1.7; }

/* ===== FEATURES DETAIL PAGE ===== */
.feature-detail {
  display: flex; align-items: center; gap: 60px;
  padding: 60px 0;
}
.feature-detail:nth-child(even) { flex-direction: row-reverse; }
.feature-detail-content { flex: 1; }
.feature-detail-content h3 { font-size: 1.8rem; margin-bottom: 16px; color: var(--bordeaux); }
.feature-detail-content p { font-size: 1.05rem; line-height: 1.8; }
.feature-detail-content ul { margin-top: 16px; }
.feature-detail-content li {
  padding: 8px 0; padding-inline-start: 28px; position: relative;
  font-size: 0.95rem; color: var(--grey);
}
.feature-detail-content li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; color: var(--gold);
  font-weight: 700;
}
.feature-detail-visual {
  flex: 1; display: flex; justify-content: center;
}
.feature-detail-visual .mock {
  width: 240px; height: 480px; background: var(--cream-light);
  border-radius: 28px; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

/* ===== VENDORS PAGE ===== */
.vendors-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.vendor-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; text-align: center;
  border: 1px solid var(--border); transition: all 0.3s;
}
.vendor-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px var(--shadow);
}
.vendor-icon { font-size: 2.5rem; margin-bottom: 16px; }
.vendor-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.vendor-card p { font-size: 0.9rem; }
.vendor-tips {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin 0.3s;
  margin-top: 0;
}
.vendor-card.expanded .vendor-tips {
  max-height: 300px; margin-top: 16px;
}
.vendor-card.expanded {
  border-color: var(--gold);
  box-shadow: 0 8px 30px var(--shadow);
}
.vendor-tips ul { text-align: left; padding-inline-start: 16px; }
.vendor-tips li {
  font-size: 0.85rem; color: var(--grey); line-height: 1.7;
  list-style: disc; margin-bottom: 4px;
}
.vendor-card::after {
  content: '▼'; display: block; font-size: 0.7rem; color: var(--grey-light);
  margin-top: 8px; transition: transform 0.3s;
}
.vendor-card.expanded::after { transform: rotate(180deg); }
.vendor-filter {
  padding: 8px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
  background: var(--white); border: 1px solid var(--border); cursor: pointer;
  transition: all 0.2s; color: var(--dark);
}
.vendor-filter:hover, .vendor-filter.active {
  background: var(--bordeaux); color: var(--white); border-color: var(--bordeaux);
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center; padding: 80px 0;
  background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
}
.cta-section h2 { color: var(--gold); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; }
.cta-section .store-buttons { justify-content: center; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  transition: all 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}
.blog-card-img {
  height: 200px; background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 24px; }
.blog-card-category {
  display: inline-block; padding: 4px 12px;
  background: var(--cream); border-radius: 6px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--bordeaux); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--dark-soft); transition: color 0.2s; }
.blog-card h3 a:hover { color: var(--bordeaux); }
.blog-card p { font-size: 0.9rem; line-height: 1.6; }
.blog-card-date { font-size: 0.8rem; color: var(--grey-light); margin-top: 12px; }

/* Blog categories filter */
.blog-categories {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 40px;
}
.blog-categories a {
  padding: 8px 20px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500;
  background: var(--white); border: 1px solid var(--border);
  transition: all 0.2s;
}
.blog-categories a:hover, .blog-categories a.active {
  background: var(--bordeaux); color: var(--white); border-color: var(--bordeaux);
}

/* ===== ARTICLE ===== */
.article { max-width: 760px; margin: 0 auto; padding-top: calc(var(--header-height) + 40px); }
.article-header { margin-bottom: 40px; }
.article-category {
  display: inline-block; padding: 4px 14px;
  background: var(--cream); border-radius: 6px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--bordeaux); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.article-meta { font-size: 0.9rem; color: var(--grey-light); }
.article-body { font-size: 1.05rem; line-height: 1.85; color: var(--dark-soft); }
.article-body h2 {
  margin-top: 40px; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--cream);
}
.article-body h3 { margin-top: 32px; margin-bottom: 12px; }
.article-body p { margin-bottom: 16px; color: var(--grey); }
.article-body ul, .article-body ol {
  margin: 16px 0; padding-inline-start: 24px;
}
.article-body li {
  margin-bottom: 8px; color: var(--grey);
  list-style: disc;
}
.article-body ol li { list-style: decimal; }
.article-body blockquote {
  border-inline-start: 3px solid var(--gold);
  padding: 16px 24px; margin: 24px 0;
  background: var(--cream-light); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--dark-soft);
}
.article-body strong { color: var(--dark-soft); }
.article-cta {
  margin-top: 48px; padding: 32px; text-align: center;
  background: var(--cream-light); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.article-cta h3 { margin-bottom: 12px; color: var(--bordeaux); }
.article-cta p { margin-bottom: 20px; }
.article-cta .store-buttons { justify-content: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { color: var(--gold) !important; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer h4 {
  color: var(--white); font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 16px;
}
.footer a { font-size: 0.9rem; display: block; padding: 4px 0; transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center;
  font-size: 0.85rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s; cursor: pointer; border: none;
}
.btn--primary { background: var(--bordeaux); color: var(--white); }
.btn--primary:hover { background: var(--bordeaux-dark); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn--outline {
  background: transparent; color: var(--bordeaux);
  border: 2px solid var(--bordeaux);
}
.btn--outline:hover { background: var(--bordeaux); color: var(--white); }
.btn--sm { padding: 8px 20px; font-size: 0.85rem; }

/* ===== STATS ===== */
.stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 700; color: var(--gold);
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ===== RTL SUPPORT ===== */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .header-inner { direction: ltr !important; }
[dir="rtl"] .hero .container { direction: rtl; }
[dir="rtl"] .hero-content { text-align: right; direction: rtl; }
[dir="rtl"] .hero .store-buttons { justify-content: flex-end; }
[dir="rtl"] .section-header { text-align: center; direction: rtl; }
[dir="rtl"] .feature-card { direction: rtl; text-align: right; }
[dir="rtl"] .feature-detail { direction: rtl; }
[dir="rtl"] .feature-detail:nth-child(even) { flex-direction: row; }
[dir="rtl"] .feature-detail:nth-child(odd) { flex-direction: row-reverse; }
[dir="rtl"] .feature-detail-content { direction: rtl; text-align: right; }
[dir="rtl"] .blog-card-body { text-align: right; direction: rtl; }
[dir="rtl"] .article { text-align: right; direction: rtl; }
[dir="rtl"] .footer { text-align: right; direction: rtl; }
[dir="rtl"] .vendor-card { direction: rtl; }
[dir="rtl"] .vendor-tips ul { text-align: right; }
[dir="rtl"] .cta-section { direction: rtl; }
[dir="rtl"] .stats { direction: ltr; }

/* ===== RESPONSIVE ===== */
/* Tablet: reduce hero phone, shrink nav gaps */
@media (max-width: 1100px) {
  .nav-desktop { gap: 16px; }
  .hero .container { gap: 30px; }
  .hero-phone { width: 220px; height: 440px; border-radius: 30px; }
  .hero-content { max-width: 480px; }
}
/* Mobile: switch to hamburger menu */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .hero .container { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero-content { max-width: 100%; }
  .hero-visual { display: none; }
  .hero p { font-size: 1rem; }
  .store-buttons { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-detail, .feature-detail:nth-child(even),
  [dir="rtl"] .feature-detail:nth-child(even),
  [dir="rtl"] .feature-detail:nth-child(odd) {
    flex-direction: column;
  }
  .feature-detail-visual { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats { gap: 30px; }
  .stat-number { font-size: 2rem; }
  .section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
