/* ============================================================
   أسامه العولقي — معرض أعمالي
   الألوان الأساسية: #1f5a7a | الخط: Cairo
   ============================================================ */

:root {
  --main: #1f5a7a;
  --main-dark: #143e56;
  --main-light: #eaf3f8;
  --gold: #d4a24c;
  --ink: #1c2c35;
  --muted: #667b86;
  --page: #f7fafb;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(31, 90, 122, 0.12);
  --shadow-hover: 0 22px 50px rgba(31, 90, 122, 0.2);
  --container: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------------------------- الهيدر ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 90, 122, 0.1);
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--main);
  white-space: nowrap;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--main);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
}

.brand__text {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--main);
  background: var(--main-light);
}

/* ---------------------------- الترحيب ---------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f1f8fb 55%, #e4f0f6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(31, 90, 122, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__glow--one {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(31, 90, 122, 0.18), transparent 70%);
  top: -90px;
  right: -70px;
}

.hero__glow--two {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.16), transparent 70%);
  bottom: -110px;
  left: -40px;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero__eyebrow,
.section-head__eyebrow,
.contact__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--main);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero__eyebrow::before,
.section-head__eyebrow::before,
.contact__eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-inline-end: 10px;
  vertical-align: middle;
  background: var(--gold);
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--main-dark);
}

.hero__lead {
  max-width: 560px;
  margin: 0 0 30px;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(31, 90, 122, 0.18);
}

.btn--primary {
  background: var(--main);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--main-dark);
}

.btn--outline {
  border-color: var(--main);
  color: var(--main);
  background: transparent;
}

.btn--outline:hover {
  background: var(--main-light);
}

.btn--light {
  background: var(--white);
  color: var(--main-dark);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* اللوحة الزخرفية في الترحيب */
.hero__art {
  display: flex;
  justify-content: center;
}

.hero__frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 40px;
  background: linear-gradient(145deg, var(--main), var(--main-dark));
  box-shadow: var(--shadow-hover);
  transform: rotate(-3deg);
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px;
  pointer-events: none;
}

.hero__word {
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 4.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero__caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero__stroke {
  width: 46%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero__stroke--top {
  margin-bottom: 16px;
}

.hero__stroke--bottom {
  margin-top: 16px;
}

/* ---------------------------- الأعمال ---------------------------- */
.works {
  padding: 96px 0 110px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head__title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--main-dark);
  font-weight: 800;
}

.section-head__desc {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(31, 90, 122, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card__visual {
  position: relative;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.card__visual::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  top: -110px;
  left: -90px;
}

.card__visual--poetry {
  background: linear-gradient(145deg, #1f5a7a, #2f7a9e);
  color: var(--white);
}

.card__visual--calligraphy {
  background: linear-gradient(145deg, #143e56, #215b71);
  color: var(--white);
}

.card__visual--logo {
  background: linear-gradient(145deg, #f3e7d3, #e8d1aa);
}

.card__quote {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.9;
}

.card__visual-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.card__visual-title--gold {
  color: var(--gold);
}

.card__ink {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 6px solid rgba(212, 162, 76, 0.35);
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.card__visual-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.card__visual-lines i {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.35;
}

.card__visual-lines i:nth-child(1) { width: 100px; }
.card__visual-lines i:nth-child(2) { width: 72px; }
.card__visual-lines i:nth-child(3) { width: 86px; }

.logo-badge {
  width: 168px;
  height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 4px double var(--main);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--main-dark);
  box-shadow: 0 10px 24px rgba(31, 90, 122, 0.18);
}

.logo-badge__small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.logo-badge__name {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
}

.logo-badge__name--accent {
  color: #b4723a;
}

.logo-badge__line {
  width: 60px;
  height: 2px;
  margin: 4px 0;
  background: var(--gold);
}

.logo-badge__latin {
  font-family: Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--main);
}

.card__body {
  padding: 26px 24px 30px;
}

.card__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--main-light);
  color: var(--main);
  font-size: 0.76rem;
  font-weight: 700;
}

.card__title {
  margin: 14px 0 10px;
  font-size: 1.3rem;
  color: var(--main-dark);
  font-weight: 800;
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------------------------- التواصل ---------------------------- */
.contact {
  padding: 20px 0 100px;
}

.contact__inner {
  position: relative;
  overflow: hidden;
  padding: 64px 40px;
  border-radius: 28px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--main-dark), var(--main) 60%, #2b7193);
  box-shadow: var(--shadow-hover);
}

.contact__inner::before,
.contact__inner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.contact__inner::before {
  width: 300px;
  height: 300px;
  top: -170px;
  right: -80px;
}

.contact__inner::after {
  width: 220px;
  height: 220px;
  bottom: -150px;
  left: -60px;
}

.contact__eyebrow {
  position: relative;
  color: #f3d9a8;
}

.contact__title {
  position: relative;
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}

.contact__desc {
  position: relative;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
}

.phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 28px;
  padding: 14px 26px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.phone:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.phone__icon {
  font-size: 1.3rem;
}

.phone__number {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 800;
  direction: ltr;
  unicode-bidi: isolate;
}

.phone__hint {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact__links {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------- التذييل ---------------------------- */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid rgba(31, 90, 122, 0.12);
  background: var(--white);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__note {
  color: var(--main);
  font-weight: 600;
}

/* ---------------------------- الحركة ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }

/* ---------------------------- الجوال ---------------------------- */
@media (max-width: 900px) {
  .hero {
    padding: 70px 0 80px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header__inner {
    min-height: 64px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 8px;
  }

  .brand__text {
    font-size: 0.92rem;
  }

  .site-nav__link {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 56px 0 70px;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__lead {
    font-size: 0.95rem;
  }

  .hero__frame {
    width: min(100%, 280px);
    border-radius: 30px;
  }

  .hero__frame::after {
    inset: 12px;
    border-radius: 22px;
  }

  .works {
    padding: 64px 0 70px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card__visual {
    height: 190px;
  }

  .contact {
    padding: 0 0 70px;
  }

  .contact__inner {
    padding: 46px 20px;
    border-radius: 22px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .site-footer__inner {
    justify-content: center;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
