/* Bakhira — quiet luxury static site
   Black · Gold #C5A572 · Ivory */

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --gold: #c5a572;
  --gold-soft: #d4bc8e;
  --ivory: #f5f0e8;
  --ivory-deep: #ebe4d8;
  --muted: #8a8478;
  --line: rgba(197, 165, 114, 0.28);
  --max: 68rem;
  --measure: 38rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--black);
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  line-height: 0;
}

.site-logo img {
  width: 2.5rem;
  height: auto;
}

.site-logo__word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
}

.nav-cta:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--gold) !important;
}

/* —— Main —— */

.site-main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  background: var(--black);
  color: var(--ivory);
  overflow: hidden;
}

.hero__motif {
  position: absolute;
  inset: 0;
  background-image: url("../motif-black.png");
  background-size: 420px;
  background-repeat: repeat;
  opacity: 0.18;
  pointer-events: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(10, 10, 10, 0.35) 0%,
    rgba(10, 10, 10, 0.82) 70%,
    rgba(10, 10, 10, 0.95) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.hero__mark {
  width: 5.5rem;
  margin: 0 auto 1.75rem;
  filter: invert(1);
}

.hero__rule {
  width: 3rem;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--gold);
}

.hero__arabic {
  font-family: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ivory);
  margin: 0 0 0.65rem;
}

.hero__english {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
}

.hero__line {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
}

.hero__lede {
  margin: 0 auto 2.25rem;
  max-width: 28rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(245, 240, 232, 0.72);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(245, 240, 232, 0.35);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--muted {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
  pointer-events: none;
}

/* —— Sections —— */

.section {
  padding: 5rem 0;
}

.section--ivory {
  background: var(--ivory);
}

.section--soft {
  background: var(--ivory-deep);
}

.section--dark {
  position: relative;
  background: var(--black);
  color: var(--ivory);
  overflow: hidden;
}

.section--dark .section__motif {
  position: absolute;
  inset: 0;
  background-image: url("../motif-black.png");
  background-size: 380px;
  opacity: 0.1;
  pointer-events: none;
}

.section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section__label {
  margin: 0 0 0.85rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.section__text {
  margin: 0 0 1rem;
  max-width: var(--measure);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #3a3834;
}

.section--dark .section__text {
  color: rgba(245, 240, 232, 0.72);
}

.section__text:last-child {
  margin-bottom: 0;
}

.centered {
  text-align: center;
}

.centered .section__text {
  margin-left: auto;
  margin-right: auto;
}

/* —— Cards / ritual —— */

.grid-3 {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(245, 240, 232, 0.55);
}

.card__num {
  margin: 0 0 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.card__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.card__text {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #4a463e;
}

/* —— Split —— */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.motif-panel {
  min-height: 18rem;
  border: 1px solid var(--line);
  background-color: var(--ivory);
  background-image: url("../motif-ivory.png");
  background-size: 280px;
  background-repeat: repeat;
}

.motif-panel--dark {
  background-color: var(--black);
  background-image: url("../motif-black.png");
  background-size: 280px;
  border-color: rgba(197, 165, 114, 0.2);
}

/* —— Page hero (inner) —— */

.page-hero {
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--ivory-deep) 0%, var(--ivory) 100%);
}

.page-hero__mark {
  width: 3.25rem;
  margin: 0 auto 1.25rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero p {
  margin: 0 auto;
  max-width: 28rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  color: #5a554c;
}

.prose {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.prose p {
  margin: 0 0 1.15rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3a3834;
}

.prose p:last-child {
  margin-bottom: 0;
}

.contact-box {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.25rem 1.75rem;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--ivory);
}

.contact-box p {
  margin: 0 0 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #4a463e;
}

.contact-box a {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
}

.contact-box a:hover {
  border-bottom-color: var(--gold);
}

.note {
  margin-top: 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Footer —— */

.site-footer {
  margin-top: auto;
  background: var(--black);
  color: var(--ivory);
  border-top: 1px solid rgba(197, 165, 114, 0.22);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--ivory);
}

.site-footer__brand span {
  color: var(--gold);
  margin: 0 0.35rem;
}

.site-footer__status {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer__nav {
  margin: 1.25rem 0 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__nav a {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
}

.site-footer__nav a:hover {
  color: var(--gold);
}

@media (max-width: 640px) {
  .site-logo__word {
    display: none;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 1.25rem 3.75rem;
  }
}

.site-nav .nav-cta {
  display: inline-block;
  cursor: default;
  user-select: none;
}
