:root {
  --espresso: #4B2E22;
  --espresso-dark: #2E1B13;
  --creme: #F6EEE3;
  --caramel: #C98B3D;
  --text: #2E1B13;
  --muted: #6A4A3C;
  --white: #FFFCF8;
  --radius: 18px;
  --font-text: ui-rounded, "SF Pro Rounded", "Segoe UI", "Noto Sans", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
  --font-title: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Naskh Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--creme);
}

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.2;
  color: var(--espresso);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); color: var(--creme); }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }

a { color: var(--espresso); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 3px;
}

.container { width: min(100% - 2.5rem, 960px); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  background: var(--espresso);
  color: var(--creme);
  padding: .5rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(75, 46, 34, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--espresso);
}
.brand-icon { width: 30px; height: 30px; color: var(--espresso); }

.lang-switch { display: flex; gap: .3rem; }
.lang-switch button {
  font: inherit;
  font-size: .9rem;
  min-height: 40px;
  min-width: 44px;
  padding: .3rem .7rem;
  border: 2px solid var(--espresso);
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--espresso);
  color: var(--creme);
}

.main-nav { border-top: 1px solid rgba(75, 46, 34, .1); }
.main-nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin-block: 0;
  padding: .5rem 0;
  overflow-x: auto;
  white-space: nowrap;
}
.main-nav a {
  text-decoration: none;
  font-size: .95rem;
  padding: .3rem 0;
  display: inline-block;
}
.main-nav a:hover { text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: 4px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  color: var(--creme);
  padding: 3.5rem 0 3rem;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .85rem;
  color: var(--caramel);
  font-weight: 700;
}
.slogan { font-size: 1.25rem; max-width: 32ch; }
.hero-art {
  width: 200px;
  margin: 1.5rem auto 0;
  display: block;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

@media (min-width: 760px) {
  .hero { padding: 5rem 0; }
  .hero-art {
    position: absolute;
    inset-inline-end: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    margin: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--caramel); color: var(--espresso-dark); }
.btn-primary:hover { background: #D89A4C; }
.btn-ghost { border-color: var(--creme); color: var(--creme); }
.btn-ghost:hover { background: rgba(246, 238, 227, .12); }
.btn[disabled] {
  background: #E2D6C7;
  color: #5E4639;
  cursor: not-allowed;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }

.placeholder-card {
  background: var(--white);
  border: 2px dashed rgba(201, 139, 61, .6);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.section-alt .placeholder-card { background: var(--creme); }
.placeholder-card p { margin: 0; }
.muted { color: var(--muted); font-style: italic; }

.info-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  background: var(--creme);
  border-radius: var(--radius);
  padding: 1.4rem;
  border-top: 4px solid var(--caramel);
}
.info-card p { overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  padding: 1.2rem 0;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  background: var(--creme);
  border-top: 1px solid rgba(75, 46, 34, .1);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--espresso); }

/* RTL */
[dir="rtl"] body { font-size: 1.1rem; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
