:root {
  --coffee: #4B2E1E;
  --cream: #F5E6D3;
  --caramel: #C8793A;
  --caramel-dark: #8A4B1C;
  --text: #2E1C12;
  --white: #FFFCF8;
  --radius: 14px;
  --font-title: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

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

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--coffee);
  line-height: 1.2;
  margin: 0 0 .75rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--coffee);
  color: var(--cream);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem 1rem .3rem;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lang-switch { display: flex; gap: .25rem; flex-wrap: wrap; }
.lang-switch button {
  font: inherit;
  font-size: .85rem;
  min-height: 36px;
  padding: .2rem .6rem;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--coffee);
  font-weight: 700;
}

.main-nav { max-width: 1080px; margin: 0 auto; padding: 0 .5rem .5rem; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem .25rem;
}
.main-nav a {
  display: inline-block;
  padding: .35rem .55rem;
  font-size: .85rem;
  color: var(--cream);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(245, 230, 211, .15); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--coffee) 0%, #6B4129 55%, var(--caramel-dark) 100%);
  color: var(--cream);
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(1.8rem, 7vw, 3rem);
  overflow-wrap: anywhere;
}
.hero-kicker {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: #F0C9A0;
}
[dir="rtl"] .hero-kicker { letter-spacing: 0; }
.hero-slogan { font-size: 1.1rem; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  max-width: 100%;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-primary { background: var(--cream); color: var(--coffee); }
.section .btn-primary { background: var(--coffee); color: var(--cream); }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn[disabled] {
  cursor: not-allowed;
  background: #E6DCD2 !important;
  color: #5A4A3F !important;
  border-color: #CDBFB2;
}

/* Sections */
.section { padding: 2.5rem 1.25rem; max-width: 1080px; margin: 0 auto; }
.section h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); text-align: center; }
.section-alt { max-width: none; background: var(--cream); }
.section-alt > * { max-width: 720px; margin-inline: auto; }
.section > .card { max-width: 720px; margin-inline: auto; }
.card {
  background: var(--white);
  border: 1px solid #E8D5BF;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(75, 46, 30, .06);
}
.card h3 { font-size: 1.2rem; }
.empty-state { text-align: center; color: #5A4A3F; font-style: italic; }
[dir="rtl"] .empty-state { font-style: normal; }

.info-list { margin: 0; display: grid; gap: .75rem; }
.info-list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #EEDFCC;
}
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt { font-weight: 700; color: var(--coffee); }
.info-list dd { margin: 0; min-width: 0; }
.break { overflow-wrap: anywhere; word-break: break-word; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: .8rem;
  color: #5A4A3F;
  border-top: 1px solid #EEDFCC;
}
.site-footer a { color: var(--coffee); }

@media (min-width: 720px) {
  .main-nav a { font-size: .95rem; }
  .hero { padding: 5rem 2rem 4.5rem; }
}

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