@font-face {
  font-family: Tajawal;
  src: url("/assets/tajawal-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Tajawal;
  src: url("/assets/tajawal-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --deep: #0c2920;
  --green: #173d30;
  --soft: #1a3329;
  --gold: #f1d8a6;
  --brass: #d0aa70;
  --paper: #faf1df;
  --muted: #d1dcd1;
  --line: #d8b67852;
  --gutter: clamp(1.12rem, 5vw, 4.5rem);
  font-family: Tajawal, system-ui, sans-serif;
  background: var(--deep);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

body { margin: 0; isolation: isolate; }

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(128deg, transparent 39.9%, #d8b67815 40%, transparent 40.15% 67.9%, #d8b67813 68%, transparent 68.15%),
    radial-gradient(ellipse at 74% 10%, #275640a0, transparent 55%);
  animation: ambient 22s alternate ease-in-out infinite;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

h1, h2, h3, p { margin: 0; }

.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }

a svg, button svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen-reader {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site {
  inline-size: min(100%, 92rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 4.1vw, 4rem);
  padding-block: clamp(1.9rem, 5.7vw, 5.1rem) clamp(1.6rem, 4.2vw, 3.5rem);
}

.hero-copy { text-align: center; }

.brand {
  display: grid;
  justify-items: center;
}

.brand-mark {
  display: block;
  filter: drop-shadow(0 0 1.3rem #c9b3772e);
}

.brand-mark img {
  display: block;
  inline-size: clamp(8.8rem, 19vw, 13rem);
  block-size: auto;
}

.announcement { margin-block-start: clamp(1.4rem, 3.6vw, 2.6rem); }

h1 {
  font-size: clamp(2.9rem, 8.9vw, 6.9rem);
  font-weight: 700;
  line-height: 1.16;
  text-wrap: balance;
}

.message-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 2vw, .95rem);
  margin-block-start: .85rem;
  min-block-size: 3.7rem;
}

.message-accent {
  background: var(--brass);
  inline-size: clamp(.75rem, 4vw, 2.3rem);
  block-size: 1px;
  flex: none;
}

.message {
  color: var(--muted);
  font-size: clamp(1.08rem, 2.55vw, 1.44rem);
  line-height: 1.48;
  min-inline-size: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  text-wrap: pretty;
}

.message[data-fading] { opacity: 0; transform: translateY(.2rem); }

.motion-button {
  display: grid;
  place-items: center;
  flex: none;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.motion-button[hidden] { display: none; }
.motion-button svg { width: .9rem; height: .9rem; }

.hero-frame {
  --arch: 48% 48% .5rem .5rem / 30% 30% .5rem .5rem;
  border-radius: var(--arch);
  border: 1px solid var(--line);
  padding: clamp(.34rem, 1.05vw, .8rem);
}

.hero-picture {
  position: relative;
  overflow: hidden;
  border-radius: var(--arch);
  height: clamp(12.6rem, 52vw, 24rem);
  background: var(--soft);
}

.hero-picture img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 36% center;
}

.hero-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #0c292073, transparent 58%);
}

.contacts {
  border-block-start: 1px solid var(--line);
  padding-block: clamp(1.45rem, 3.5vw, 2.55rem) clamp(1.6rem, 4vw, 3.1rem);
}

.contacts h2 {
  font-size: clamp(1.68rem, 3.9vw, 2.4rem);
  line-height: 1.2;
  margin-block-end: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .8rem;
}

.contact-card {
  min-inline-size: 0;
  padding: clamp(.86rem, 2vw, 1.22rem);
  background: linear-gradient(135deg, #2a4d3dfa, #142e24f0);
  border: 1px solid var(--line);
  border-radius: .65rem;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.contact-card h3 {
  font-size: clamp(1.03rem, 2.1vw, 1.28rem);
  line-height: 1.4;
}

.contact-number {
  display: inline-block;
  margin-block: .15rem .7rem;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: .87rem;
  font-variant-numeric: tabular-nums;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.button {
  min-block-size: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .42rem .4rem;
  border: 1px solid transparent;
  border-radius: .31rem;
  font-size: .98rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-call { color: var(--deep); background: var(--gold); }
.button-whatsapp { color: var(--paper); border-color: var(--line); background: #0c29205c; }
.button:active, .social a:active { transform: translateY(1px); }

.footer {
  border-block-start: 1px solid var(--line);
  padding-block: 1.2rem clamp(1.1rem, 2.5vw, 2rem);
}

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.2rem;
  margin-block-end: 1.2rem;
}

.social-title { color: var(--paper); font-weight: 700; font-size: 1.08rem; }

.social ul {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .48rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social a {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  min-block-size: 70px;
  padding: .5rem .2rem;
  color: var(--paper);
  font-size: .92rem;
  font-weight: 700;
  background: #173d307d;
  border: 1px solid var(--line);
  border-radius: .56rem;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.social-icon {
  display: grid;
  place-items: center;
  inline-size: 2.05rem;
  block-size: 2.05rem;
  border-radius: .45rem;
}

.social-icon.instagram { color: #ffe0e8; background: #623d50; }
.social-icon.snapchat { color: #ffe98b; background: #544b2a; }
.social-icon.tiktok { color: #baf1e2; background: #22544a; }
.social-icon svg { width: 1.2rem; height: 1.2rem; }
.footer-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1rem;
  border-block-start: 1px solid #d8b6782c;
  padding-block-start: 1rem;
  color: var(--muted);
  font-size: .87rem;
}

.office-location {
  display: flex;
  align-items: center;
  gap: .75rem;
  inline-size: 100%;
  min-block-size: 48px;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #173d307d;
  color: var(--muted);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.location-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.3rem;
  block-size: 2.3rem;
  border-radius: .45rem;
  background: #544b2a;
  color: var(--gold);
}

.location-text { display: grid; gap: .1rem; }
.location-text strong { color: var(--paper); font-size: 1rem; }
.office-location .location-external { flex-shrink: 0; width: .95rem; height: .95rem; margin-inline-start: auto; color: var(--gold); }

.footer-end bdi { font-family: system-ui, sans-serif; font-size: .8rem; color: var(--gold); }

@media (min-width: 700px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card:first-child { grid-column: 1 / -1; }
  .social ul { flex: 0 1 auto; grid-template-columns: repeat(3, auto); gap: .65rem; }
  .social a { flex-direction: row; min-block-size: 46px; padding: .34rem .55rem .34rem .85rem; }
  .office-location { inline-size: auto; min-inline-size: 17rem; }
}

@media (min-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); }
  .hero-copy { text-align: start; }
  .brand { justify-items: start; }
  .message-row { justify-content: start; }
  .hero-picture { height: clamp(23rem, 37vw, 30rem); }
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .contact-card, .contact-card:first-child { grid-column: span 2; }
  .contact-card:nth-child(n + 4) { grid-column: span 3; }
}

@media (hover: hover) {
  .contact-card:hover { border-color: var(--brass); }
  .button-call:hover { background: #fff0cd; }
  .button-whatsapp:hover, .motion-button:hover { border-color: var(--gold); background: #f1d8a622; }
  .social a:hover, .office-location:hover { border-color: var(--brass); background: #285344; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark { animation: mark-in 680ms ease-out both; }
  .announcement { animation: title-in 480ms 260ms ease-out both; }
  .hero-frame { animation: rim-in 510ms 300ms ease-out both; }
  .contacts { animation: enter 650ms 500ms ease-out both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .message[data-fading] { opacity: 1; transform: none; }
  .motion-button { display: none; }
}

@keyframes mark-in {
  from { opacity: 0; transform: scale(.89); filter: drop-shadow(0 0 0 transparent); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(.45rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes title-in {
  from { color: #bbcbbf; }
  to { color: var(--paper); }
}

@keyframes rim-in {
  from { border-color: transparent; }
  to { border-color: var(--line); }
}

@keyframes ambient { to { opacity: .57; } }
