/* Maha Al Baba — contact page
   Palette sampled from the brand logo. Fonts are self-hosted (no third-party requests). */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("../fonts/tajawal-arabic-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Tajawal";
  src: url("../fonts/tajawal-arabic-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --cream: #FAEBE3;        /* logo background */
  --cream-light: #FDF6F0;  /* raised surfaces */
  --navy: #0B1B36;         /* name lettering */
  --gold: #B8862B;         /* ring and rules (decorative only) */
  --gold-icon: #A87A22;    /* icons, 3:1+ on cream */
  --gold-text: #8A6418;    /* gold text, 4.5:1+ on cream */
  --muted: #5A6478;
  color-scheme: light;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --arabic: "Tajawal", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }

html { height: 100%; background: var(--cream); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.75rem;
}

/* ---------- Identity ---------- */
.identity { text-align: center; }

.emblem {
  display: block;
  width: 9.75rem;
  max-width: 50%;
  height: auto;
  margin: 0 auto 1rem;
}

h1 { margin: 0; font-weight: normal; }

.name-ar {
  display: block;
  font-family: var(--arabic);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--navy);
}

.name-en {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--navy);
}

/* gold rule — tagline — gold rule, as in the logo */
.tagline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.65rem 0 0;
  font-family: var(--arabic);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--gold-text);
}
.tagline::before,
.tagline::after {
  content: "";
  flex: 1 1 0;
  max-width: 3.5rem;
  height: 1px;
  background: var(--gold);
}
.tagline::before { margin-inline-start: auto; }
.tagline::after  { margin-inline-end: auto; }

/* ---------- Links ---------- */
.links {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.link {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.35rem;
  padding: 0.5rem 1.25rem 0.5rem 0.55rem;
  border: 1px solid rgba(184, 134, 43, 0.55);
  border-radius: 999px;
  background: var(--cream-light);
  color: var(--navy);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.link:hover { border-color: var(--gold); background: #FFFBF7; }
.link:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.link:active { background: #F6E4D6; }

.icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-icon);
}
.icon img {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  object-fit: contain;
}
.icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.label-ar {
  font-family: var(--arabic);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 2rem;
  text-align: center;
  color: var(--gold-text);
}
.comb {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.foot p {
  margin: 0.1rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

/* ---------- Wider screens: logo-style side-by-side header ---------- */
@media (min-width: 40rem) {
  .page { max-width: 42rem; padding-top: 4rem; }
  .identity {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
  }
  .emblem { width: 12.5rem; max-width: none; margin: 0; }
  .name-ar { font-size: 3.4rem; }
  .name-en { font-size: 1.85rem; }
  .links { max-width: 30rem; margin: 3rem auto 0; }
}

/* ---------- One entrance moment ---------- */
@media (prefers-reduced-motion: no-preference) {
  .emblem { animation: settle 700ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: none; }
  }
}

@media print {
  .link { border-color: var(--gold); }
}
