:root {
  --bg: #EEEAE3;
  --primary: #D4774A;
  --text: #1C1917;
  --card: #FFFFFF;
  --border: #D9D5CF;
  --muted: #6B6560;
  --radius: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Reveal animations ── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.reveal {
  animation: revealUp 0.55s cubic-bezier(.16,1,.3,1) calc(var(--i, 0) * 80ms) both;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Header ── */
header {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(217,213,207,0.6);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

nav a:hover { background: rgba(212,119,74,0.1); color: var(--primary); }
nav a.active { background: var(--primary); color: #fff; }

/* ── Custom Language Switcher ── */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 12px 7px 10px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text); font-family: inherit;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--primary); background: rgba(212,119,74,.07); }
.lang-btn-flag { font-size: 15px; line-height: 1; }
.lang-btn-code { letter-spacing: .04em; }
.lang-btn-arrow { color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.lang-switcher.open .lang-btn-arrow { transform: rotate(180deg); }
.lang-switcher.open .lang-btn { border-color: var(--primary); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  padding: 8px; min-width: 190px; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; transform: translateY(-6px) scale(.97);
  pointer-events: none;
  transition: opacity .15s cubic-bezier(.16,1,.3,1), transform .15s cubic-bezier(.16,1,.3,1);
  z-index: 9999;
}
.lang-switcher.open .lang-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.lang-opt {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 10px;
  text-decoration: none; font-size: 12px; font-weight: 500;
  color: var(--text); transition: background .1s;
  cursor: pointer; border: none; background: transparent;
  font-family: inherit; width: 100%; text-align: left;
}
.lang-opt:hover { background: rgba(212,119,74,.09); }
.lang-opt.active { background: rgba(212,119,74,.14); color: var(--primary); font-weight: 700; }
.lang-opt-flag { font-size: 17px; line-height: 1; }
@media (max-width: 600px) {
  .lang-menu { right: auto; left: 0; min-width: 170px; }
}

/* ── Main ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* ── Home page ── */
.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.page-header p {
  font-size: 17px;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 32px 30px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.16,1,.3,1), box-shadow 0.25s cubic-bezier(.16,1,.3,1), border-color 0.2s;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.1);
  border-color: rgba(212,119,74,0.2);
}

.card:hover::after {
  transform: scaleX(1);
}

.card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}

.card:hover .card-link { gap: 8px; }

/* ── Legal pages ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.35; }
.breadcrumb .cur { color: var(--text); font-weight: 500; }

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.9px;
  margin-bottom: 8px;
  line-height: 1.12;
}

.legal-header .updated {
  font-size: 13px;
  color: var(--muted);
}

.legal-section {
  background: var(--card);
  border-radius: 16px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: border-color 0.2s, transform 0.2s cubic-bezier(.16,1,.3,1);
}

.legal-section:hover {
  border-color: rgba(212,119,74,0.22);
  transform: translateX(3px);
}

.legal-section h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.1px;
}

.legal-section p {
  font-family: Georgia, serif;
  font-size: 15px;
  color: #2a2523;
  line-height: 1.85;
}

.legal-intro {
  font-family: Georgia, serif;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.75;
}

/* ── Contact page ── */
.email-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.email-card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.22s cubic-bezier(.16,1,.3,1), box-shadow 0.22s cubic-bezier(.16,1,.3,1);
}

.email-card:hover {
  border-color: rgba(212,119,74,0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}

.email-card .email-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  margin-bottom: 8px;
  opacity: 0.65;
}

.email-card .email-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}

.email-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.15s;
}

.email-link:hover { opacity: 0.72; }

.response-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--card);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

footer a:hover { color: var(--primary); background: rgba(212,119,74,0.08); }

.company-info {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.company-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.company-info a:hover { text-decoration: underline; }

/* ── RTL ── */
[dir="rtl"] header { flex-direction: row-reverse; }
[dir="rtl"] nav { flex-direction: row-reverse; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .legal-section p { direction: rtl; }
[dir="rtl"] .legal-section:hover { transform: translateX(-3px); }

/* ── Responsive ── */
@media (max-width: 700px) {
  header { padding: 10px 16px; height: auto; flex-wrap: wrap; gap: 8px; }
  nav { gap: 1px; }
  nav a { font-size: 11.5px; padding: 6px 9px; }
  .lang-select { font-size: 11.5px; margin-left: 4px; }
  .page-header h1 { font-size: 34px; letter-spacing: -1px; }
  .page-header p { font-size: 15px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 28px 24px 24px; }
  main { padding: 36px 16px 64px; }
  .legal-header h1 { font-size: 28px; }
  .legal-section { padding: 20px 20px; }
  .email-grid { grid-template-columns: 1fr; }
}
