:root {
  --ink: #1d1e1d;
  --paper: #f7efe6;
  --paper-deep: #eddfd1;
  --copper: #b96f33;
  --muted: #766d65;
  --line: rgba(185, 111, 51, 0.32);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

.card {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  grid-template-rows: auto 1fr auto;
  gap: 0 clamp(2rem, 7vw, 8rem);
  padding: clamp(1.4rem, 4vw, 4rem) clamp(1.25rem, 6vw, 7rem);
  background: radial-gradient(circle at 75% 28%, #fffaf6 0, transparent 32%), linear-gradient(135deg, var(--paper), #fbf5ef 58%, var(--paper-deep));
}

.circle { position: absolute; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.circle-large { width: min(53vw, 48rem); aspect-ratio: 1; right: -11vw; top: -25vh; }
.circle-small { width: min(27vw, 26rem); aspect-ratio: 1; right: 7vw; top: 11vh; }

.topbar {
  grid-column: 1 / -1;
  height: clamp(3rem, 8vh, 5rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(29, 30, 29, 0.14);
  position: relative;
  z-index: 1;
}

.topbar img { width: 1.7rem; height: 2.45rem; object-fit: contain; }
.topbar span, .section-label, .overline { color: var(--copper); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; }

.identity { align-self: center; position: relative; z-index: 1; padding: 2rem 0; }
.overline { margin: 0 0 1.2rem; letter-spacing: 0.32em; }

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(5rem, 9.5vw, 10.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.75;
}

h1 span { display: block; }
h1 span + span { margin-top: 0.12em; }

.title { max-width: 32rem; margin: 2.5rem 0 0; font-size: clamp(0.85rem, 1.25vw, 1.15rem); line-height: 1.6; letter-spacing: 0.23em; }
.title-ar { width: max-content; max-width: 100%; margin: 1.25rem 0 0; color: var(--copper); font-family: "Noto Kufi Arabic", sans-serif; font-size: clamp(1rem, 1.5vw, 1.4rem); line-height: 1.9; }
.title-ar span { display: block; color: var(--ink); font-size: 0.82em; }

.contacts {
  align-self: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(29, 30, 29, 0.12);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 32px 80px rgba(103, 72, 46, 0.09);
  backdrop-filter: blur(12px);
}

.section-label { margin: 0; padding: 1.3rem 1.5rem 0.3rem; }

.action {
  min-height: 6.4rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(29, 30, 29, 0.11);
  transition: background 180ms ease, transform 180ms ease;
}

.action:hover { background: rgba(185, 111, 51, 0.08); }
.action:active { transform: scale(0.99); }

.action-icon { width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--copper); }
.action-icon svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.action-copy { min-width: 0; display: flex; flex-direction: column; }
.action small { margin-bottom: 0.3rem; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.15em; }
.action strong { font-size: clamp(1.25rem, 1.8vw, 1.85rem); font-weight: 600; line-height: 1.15; }
.arrow { color: var(--copper); font-size: 1.2rem; }

.location { min-height: 9.3rem; border: 0; background: var(--copper); color: white; }
.location:hover { background: #c47b3f; }
.location .action-icon { color: white; border-color: rgba(255, 255, 255, 0.42); }
.location small, .location .arrow { color: rgba(255, 255, 255, 0.8); }
.location strong { font-size: 1.2rem; }
.address { margin-top: 0.35rem; color: rgba(255, 255, 255, 0.9); font-size: 0.72rem; line-height: 1.45; }
.address-ar { font-family: "Noto Kufi Arabic", sans-serif; font-size: 0.65rem; color: rgba(255, 255, 255, 0.8); }

footer { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted); font-size: 0.65rem; letter-spacing: 0.2em; position: relative; z-index: 1; }

body.ready .identity, body.ready .contacts { animation: reveal 600ms both; }
body.ready .contacts { animation-delay: 100ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 750px) {
  .card { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; padding: 1rem; }
  .topbar { height: 3.2rem; }
  .topbar img { width: 1.35rem; height: 2rem; }
  .identity { padding: 1.4rem 0.25rem; }
  h1 { font-size: clamp(4.2rem, 21vw, 6.5rem); line-height: 0.73; }
  .title { margin-top: 1.4rem; font-size: 0.7rem; letter-spacing: 0.18em; }
  .title-ar { margin-top: 0.7rem; font-size: clamp(0.9rem, 4vw, 1.15rem); line-height: 1.7; }
  .section-label { padding: 0.75rem 1rem 0.1rem; font-size: 0.62rem; }
  .action { min-height: 4.6rem; padding: 0.7rem 1rem; gap: 0.75rem; }
  .action-icon { width: 2.55rem; height: 2.55rem; }
  .action small { font-size: 0.58rem; }
  .action strong { font-size: clamp(1.1rem, 5.7vw, 1.5rem); }
  .location { min-height: 7.3rem; }
  .location strong { font-size: 0.95rem; }
  .address { font-size: 0.56rem; line-height: 1.35; }
  .address-ar { font-size: 0.5rem; }
  footer { padding-top: 0.9rem; font-size: 0.54rem; }
  .circle-large { width: 95vw; right: -55vw; top: -10vh; }
  .circle-small { width: 65vw; right: -20vw; top: 9vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
