:root {
  --olive: #5B6B2F;
  --olive-dark: #45521f;
  --terre: #B5532F;
  --terre-dark: #9a4426;
  --creme: #F6EFE0;
  --creme-alt: #EFE5CF;
  --ink: #2b2a22;
  --muted: #5d5a4c;
  --serif: Georgia, "Times New Roman", "Amiri", "Noto Naskh Arabic", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --radius: 12px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--creme);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--olive-dark);
  line-height: 1.25;
  margin: 0 0 .6em;
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow { max-width: 720px; }

.skip-link {
  position: absolute;
  inset-inline-start: .5rem;
  top: -3rem;
  background: var(--olive);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { top: .5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 224, .97);
  border-bottom: 2px solid var(--terre);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--olive);
  color: var(--creme);
  font-family: var(--serif);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--olive-dark);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.lang-switch button {
  font: inherit;
  font-size: .8rem;
  padding: .3rem .6rem;
  border: 1px solid var(--olive);
  border-radius: 999px;
  background: transparent;
  color: var(--olive-dark);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--olive);
  color: #fff;
}

.main-nav { flex-basis: 100%; max-width: 100%; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem .5rem;
}
.main-nav a {
  display: inline-block;
  padding: .35rem .6rem;
  font-size: .88rem;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--creme-alt); }
.main-nav .nav-cta {
  background: var(--terre-dark);
  color: #fff;
}
.main-nav .nav-cta:hover { background: var(--terre); }

/* Hero */
.hero {
  text-align: center;
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(circle at 50% 0, rgba(91, 107, 47, .12), transparent 60%),
    var(--creme);
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  color: var(--terre-dark);
  margin: 0 0 .5rem;
}
.hero h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
.hero-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--terre);
  margin: 1.5rem auto;
}
.ornament span {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--terre);
}

.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.btn-accent { background: var(--terre-dark); color: #fff; }
.btn-accent:hover { background: var(--terre); }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--creme-alt); }
.section h2 {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  text-align: center;
  margin-bottom: 1.5rem;
}
.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: .6rem auto 0;
  background: var(--terre);
  border-radius: 2px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.steps li, .card {
  background: #fffaf0;
  border: 1px solid #e3d6b8;
  border-radius: var(--radius);
  padding: 1.25rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-weight: 700;
  margin-bottom: .5rem;
}
.steps h3, .card h3 { font-size: 1.15rem; }
.steps p, .card p { margin: 0 0 .4rem; }
.note {
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  margin-top: 1.25rem;
}

.section-alt p { text-align: center; font-size: 1.05rem; }

.cards { display: grid; gap: 1rem; }
.muted { color: var(--muted); font-style: italic; }
.break { word-break: break-all; }

/* Footer */
.site-footer {
  background: var(--olive-dark);
  color: var(--creme);
  text-align: center;
  padding: 1.75rem 0;
}
.footer-name { font-family: var(--serif); margin: 0 0 .4rem; }
.powered { font-size: .8rem; opacity: .85; margin: 0; }
.powered a { color: var(--creme); }

/* Larger screens */
@media (min-width: 720px) {
  .main-nav { flex-basis: auto; }
  .main-nav a { font-size: .95rem; }
  .steps, .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 5rem 0 4.5rem; }
  .section { padding: 4rem 0; }
}

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