:root {
  --page: #f5f0e8;
  --paper: #fffdf9;
  --paper-soft: #fbf8f2;
  --ink: #193329;
  --text: #263c34;
  --muted: #718078;
  --muted-soft: #8c9992;
  --green: #23613f;
  --green-dark: #15482f;
  --green-soft: #eaf3ed;
  --orange: #e77d2f;
  --orange-soft: #fff0e4;
  --line: #e9e2d8;
  --shadow: 0 18px 55px rgba(45, 58, 48, 0.09);
  --radius: 28px;
  --font: "Tajawal", "Noto Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 2%, rgba(231, 125, 47, 0.1), transparent 24rem),
    radial-gradient(circle at 92% 19%, rgba(35, 97, 63, 0.09), transparent 27rem),
    var(--page);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  content: "";
}

a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(231, 125, 47, 0.48); outline-offset: 4px; }

.backdrop-shape {
  position: fixed;
  z-index: 0;
  border: 1px solid rgba(35, 97, 63, 0.07);
  border-radius: 50% 42% 58% 46%;
  pointer-events: none;
}

.backdrop-shape--one { top: -150px; right: -130px; width: 350px; height: 350px; transform: rotate(24deg); }
.backdrop-shape--two { bottom: 6%; left: -170px; width: 320px; height: 430px; transform: rotate(-19deg); }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 570px);
  margin-inline: auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(34px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 30px 24px 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 246, 0.94)),
    var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
  animation: reveal 600ms ease-out both;
}

.hero::after {
  position: absolute;
  right: 18%;
  bottom: -76px;
  width: 240px;
  height: 110px;
  border: 24px solid rgba(35, 97, 63, 0.025);
  border-radius: 50%;
  content: "";
  transform: rotate(-8deg);
}

.hero-pattern { position: absolute; top: 0; left: 0; width: 112px; height: 86px; overflow: hidden; opacity: 0.85; }
.hero-pattern i { position: absolute; display: block; width: 88px; height: 17px; border-radius: 999px; background: var(--orange-soft); transform: rotate(-34deg); }
.hero-pattern i:nth-child(1) { top: -6px; left: -23px; }
.hero-pattern i:nth-child(2) { top: 26px; left: -38px; width: 100px; }
.hero-pattern i:nth-child(3) { top: 60px; left: -52px; width: 92px; }

.official-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  margin-bottom: 17px;
  padding: 5px 10px;
  border: 1px solid #dbeadf;
  border-radius: 999px;
  color: var(--green);
  background: #f0f7f2;
  font-size: 11px;
  font-weight: 700;
}

.official-badge svg { width: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.brand-logo {
  position: relative;
  z-index: 1;
  width: 102px;
  height: 102px;
  padding: 5px;
  border: 1px solid #eadccc;
  border-radius: 50%;
  background: #f3e6d3;
  box-shadow: 0 14px 32px rgba(34, 66, 49, 0.13), 0 0 0 7px rgba(255, 255, 255, 0.82);
  object-fit: cover;
}

.brand-name { position: relative; z-index: 1; margin: 18px 0 0; color: var(--green-dark); font-size: 21px; font-weight: 900; line-height: 1.2; }
.branch-name { position: relative; z-index: 1; margin: 4px 0 0; color: var(--orange); font-size: 12px; font-weight: 700; }

h1 {
  position: relative;
  z-index: 1;
  margin: 17px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 7.7vw, 39px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.intro { position: relative; z-index: 1; max-width: 405px; margin: 11px auto 0; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.75; }

.status-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 17px;
  padding: 7px 13px;
  border: 1px solid #d7e9dc;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.is-closed { border-color: #f2d9c7; color: #a75622; background: var(--orange-soft); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #35a867; box-shadow: 0 0 0 4px rgba(53, 168, 103, 0.11); }
.is-closed .status-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(231, 125, 47, 0.12); }

.links-section { display: grid; gap: 11px; margin-top: 27px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 5px 3px; }
.section-kicker { margin: 0 0 2px; color: var(--orange); font-size: 11px; font-weight: 800; }
.section-title-row h2 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 800; }
.section-title-row > span { padding-bottom: 3px; color: var(--muted-soft); font-size: 11px; font-weight: 600; }

.social-link {
  --brand: var(--green);
  display: grid;
  grid-template-columns: 53px 1fr auto;
  align-items: center;
  min-height: 78px;
  padding: 11px 15px 11px 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 8px 24px rgba(44, 59, 50, 0.045);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: reveal 560ms ease-out both;
}

.social-link:nth-of-type(1) { animation-delay: 70ms; }
.social-link:nth-of-type(2) { animation-delay: 110ms; }
.social-link:nth-of-type(3) { animation-delay: 150ms; }
.social-link:nth-of-type(4) { animation-delay: 190ms; }
.social-link:nth-of-type(5) { animation-delay: 230ms; }
.social-link:nth-of-type(6) { animation-delay: 270ms; }

.social-link--instagram { --brand: #d94c79; }
.social-link--whatsapp { --brand: #169b58; }
.social-link--facebook { --brand: #2776cf; }
.social-link--tiktok { --brand: #242b29; }
.social-link--telegram { --brand: #258cba; }
.social-link--phone { --brand: var(--orange); }

.link-icon { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid color-mix(in srgb, var(--brand) 17%, transparent); border-radius: 17px; color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, white); }
.link-icon svg { width: 24px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
.link-icon .icon-fill, .social-link--facebook .link-icon path, .social-link--telegram .link-icon path { fill: currentColor; stroke: none; }

.link-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding-inline: 5px 12px; }
.link-copy strong { color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.3; }
.link-copy small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.25; }

.link-action { display: inline-flex; align-items: center; gap: 3px; color: var(--muted-soft); font-size: 11px; font-weight: 700; }
.link-action svg { width: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.info-card {
  margin-top: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.93);
  box-shadow: var(--shadow);
  animation: reveal 570ms 300ms ease-out both;
}

.schedule-card { margin-top: 25px; }
.location-card { animation-delay: 350ms; }
.info-heading { display: flex; align-items: center; gap: 13px; }
.info-icon { display: grid; flex: 0 0 auto; place-items: center; width: 47px; height: 47px; border-radius: 17px; color: var(--green); background: var(--green-soft); }
.info-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.info-heading p { margin: 0 0 1px; color: var(--orange); font-size: 11px; font-weight: 800; }
.info-heading h2 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 800; }

.schedule-list { margin: 19px 0 0; }
.schedule-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.schedule-list > div:last-child { padding-bottom: 1px; }
.schedule-list dt, .schedule-list dd { margin: 0; font-size: 13px; }
.schedule-list dt { color: var(--muted); font-weight: 700; }
.schedule-list dd { color: var(--ink); font-weight: 600; text-align: left; }

.location-name { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; }
.map-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; margin-top: 14px; padding: 11px 16px; border: 1px solid #d2e5d8; border-radius: 18px; color: var(--green); background: var(--green-soft); text-decoration: none; transition: background-color 180ms ease, transform 180ms ease; }
.map-link span { display: flex; flex-direction: column; }
.map-link strong { font-size: 13px; font-weight: 800; }
.map-link small { margin-top: 3px; color: #668170; font-size: 11px; font-weight: 500; }
.map-link > svg { width: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.share-wrap { min-height: 74px; margin-top: 18px; text-align: center; }
.share-button { display: inline-flex; align-items: center; gap: 9px; min-height: 43px; padding: 9px 17px; border: 1px solid #dfd8cf; border-radius: 999px; color: var(--green); background: rgba(255, 253, 249, 0.72); font: 700 13px/1 var(--font); cursor: pointer; transition: background-color 180ms ease, transform 180ms ease; }
.share-button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.share-feedback { min-height: 17px; margin: 6px 0 0; color: var(--green); font-size: 11px; }

footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px 0 4px; border-top: 1px solid rgba(74, 90, 80, 0.11); color: var(--muted); text-align: right; }
footer img { width: 38px; height: 38px; border: 1px solid #e2d5c7; border-radius: 50%; object-fit: cover; }
footer strong { color: var(--green-dark); font-size: 12px; font-weight: 800; }
footer p { margin: 1px 0 0; font-size: 10px; font-weight: 500; }

@media (hover: hover) {
  .social-link:hover { border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); box-shadow: 0 12px 30px rgba(44, 59, 50, 0.075); transform: translateY(-2px); }
  .map-link:hover { background: #e2f0e7; transform: translateY(-1px); }
  .share-button:hover { background: var(--paper); transform: translateY(-1px); }
}

@media (max-width: 390px) {
  .page-shell { width: min(100% - 22px, 570px); padding-top: 12px; }
  .hero { padding: 25px 16px 24px; border-radius: 28px; }
  .brand-logo { width: 92px; height: 92px; }
  .social-link { grid-template-columns: 49px 1fr auto; min-height: 73px; padding-inline: 11px 12px; }
  .link-icon { width: 45px; height: 45px; border-radius: 15px; }
  .link-copy { padding-right: 10px; }
  .link-action { font-size: 10px; }
  .info-card { padding: 19px; border-radius: 24px; }
  .schedule-list > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .schedule-list dd { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}
