/* MASKAN — a responsive, dependency-free digital contact card.
   Brand colors are taken from the supplied visual identity.
   System fonts are used; no font download or external library is required. */
:root {
  --green: #032b23;
  --green-2: #0c4034;
  --cream: #fff6e3;
  --paper: #faf8f2;
  --ink: #103b31;
  --muted: #64756d;
  --gold: #bda87d;
  --line: #e3e7df;
  --font: "Tajawal", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; min-height: 100vh; min-height: 100svh; background: #efeee7; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(90deg,rgba(3,43,35,.026) 1px,transparent 1px),linear-gradient(rgba(3,43,35,.026) 1px,transparent 1px); background-size: 84px 84px; mask-image: radial-gradient(ellipse at center,transparent 10%,#000 100%); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button,input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .65; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #b6944a; outline-offset: 5px; }
[hidden] { display: none !important; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -120px; inset-inline-start: 16px; z-index: 100; padding: 12px 18px; background: var(--cream); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.js-only { display: none !important; }
.js-ready .js-only { display: inline-flex !important; }
.background-mark { position: fixed; width: 960px; height: 740px; inset-inline-end: -380px; bottom: -350px; background: url("brand-mark-dark.svg") center / contain no-repeat; opacity: .026; pointer-events: none; transform: rotate(-12deg); }
.page-shell { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; max-width: 1024px; margin: 0 auto; padding: 46px 40px 24px; display: flex; flex-direction: column; justify-content: center; }
.contact-card { display: grid; grid-template-columns: .91fr 1.09fr; background: var(--paper); border: 1px solid rgba(255,255,255,.55); border-radius: 26px; overflow: hidden; box-shadow: 0 28px 70px -30px rgba(3,43,35,.3),0 2px 7px rgba(3,43,35,.035); }
.brand-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 27px 27px 28px; background: var(--green); color: var(--cream); overflow: hidden; }
.brand-pattern { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.brand-pattern::before { content: ""; position: absolute; width: 750px; height: 580px; inset-inline-start: -140px; bottom: -115px; background: url("brand-mark.svg") center / contain no-repeat; opacity: .045; }
.brand-pattern::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,246,227,.08); border-radius: 13px; }
.brand-topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; direction: ltr; }
.country-tag { font-family: "Segoe UI", Arial, sans-serif; display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 500; letter-spacing: 2.1px; color: #cec8b6; }
.country-tag>span { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.language-switch { align-items: center; justify-content: center; gap: 7px; min-width: 65px; min-height: 36px; padding: 4px 10px; border-radius: 7px; border: 1px solid rgba(255,246,227,.22); background: rgba(255,255,255,.025); color: var(--cream); font-size: 12px; font-weight: 600; line-height: 1.5; transition: background .2s; }
.language-switch:hover { background: rgba(255,255,255,.1); }
.language-switch .icon { width: 14px; height: 14px; }
.brand-content { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 47px 0 43px; text-align: center; }
.brand-logo { width: 270px; height: auto; }
h1 { margin: 15px 0 0; font-size: 15px; font-weight: 400; line-height: 1.8; color: #ece8d9; }
.brand-rule { display: flex; align-items: center; justify-content: center; width: 135px; height: 1px; background: linear-gradient(90deg,transparent,rgba(189,168,125,.6),transparent); margin: 33px 0 25px; }
.brand-rule>span { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.brand-slogan { margin: 0; font-size: 28px; line-height: 1.65; font-weight: 500; }
.brand-slogan>span { display: block; }
.brand-slogan>span:last-child { color: #d5c7a7; font-weight: 300; }
.brand-slogan-secondary { font-family: "Segoe UI", Arial, sans-serif; font-size: 8px; letter-spacing: 1.65px; color: #b3beb4; margin: 17px 0 0; }
.brand-bottom { display: flex; gap: 12px; align-items: center; justify-content: center; font-family: "Segoe UI", Arial, sans-serif; font-size: 9px; letter-spacing: 2.3px; color: #b5c1b6; }
.detail-line { height: 1px; width: 24px; background: rgba(255,246,227,.23); }
.contact-panel { padding: 38px 33px 25px; }
.contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.eyebrow { font-size: 10px; margin: 0 0 4px; color: #7e785f; line-height: 1.6; font-weight: 500; }
h2 { margin: 0; font-size: 25px; line-height: 1.5; font-weight: 700; letter-spacing: -.5px; }
.intro { margin: 6px 0 0; font-size: 10px; color: var(--muted); line-height: 1.9; }
.small-button { display: inline-flex; align-items: center; justify-content: center; width: 41px; height: 41px; flex-shrink: 0; padding: 0; border: 1px solid #dbdfd5; border-radius: 10px; color: var(--green); background: transparent; transition: background .2s,border-color .2s; }
.small-button:hover { background: #eaece3; border-color: #bcc9be; }
.small-button .icon { width: 21px; height: 21px; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link { display: flex; align-items: center; min-height: 75px; gap: 14px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fffefa; transition: background .18s, border-color .18s, transform .18s,box-shadow .18s; }
.contact-link:hover { transform: translateY(-2px); border-color: #becdc0; box-shadow: 0 6px 16px rgba(3,43,35,.05); background: #fff; }
.contact-link:active { transform: translateY(0); }
.link-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #edf0e9; flex-shrink: 0; }
.link-icon .icon { width: 21px; height: 21px; }
.link-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; flex: 1; min-width: 0; }
.link-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.7; }
.link-description { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; }
.numeric { font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 1px; font-size: 14px; }
.latin { font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; letter-spacing: .15px; }
.link-arrow { height: 17px; width: 17px; color: #8e9f91; margin-inline-start: 2px; }
html[dir="rtl"] .link-arrow { transform: scaleX(-1); }
.whatsapp-link { background: var(--green); border-color: var(--green); color: var(--cream); min-height: 82px; box-shadow: 0 7px 17px -10px rgba(3,43,35,.4); }
.whatsapp-link:hover { background: #104135; border-color: #104135; }
.whatsapp-link .link-icon { background: rgba(255,246,227,.1); }
.whatsapp-link .link-icon .icon { width: 26px; height: 26px; }
.whatsapp-link .link-title { font-size: 14px; }
.whatsapp-link .link-description { color: #c8d3c4; font-size: 10px; }
.whatsapp-link .link-arrow { color: #d7c59d; }
.utility-actions { display: flex; gap: 9px; margin-top: 21px; }
.save-contact,.share-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #cdd6c9; border-radius: 10px; min-height: 48px; background: transparent; color: var(--ink); padding: 10px 12px; font-size: 11px; font-weight: 600; line-height: 1.6; transition: background .2s,border-color .2s; }
.save-contact { flex: 1; }
.save-contact .icon,.share-button .icon { width: 18px; height: 18px; }
.save-contact:hover,.share-button:hover { background: #edf0e7; border-color: #aabcae; }
.share-button { min-width: 96px; }
.contact-note { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 9px; color: #708274; margin-top: 22px; line-height: 1.7; }
.note-line { width: 24px; height: 1px; background: #cdd5c9; }
.page-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; padding: 21px 0 0; color: #62756a; font-size: 9px; }
.page-footer img { opacity: .65; }
.page-footer b { font-weight: 600; }
.footer-dot { margin: 0 8px; color: #9d977f; }
.copyright { font-family: "Segoe UI",Arial,sans-serif; font-size: 8px; letter-spacing: 1.5px; margin-inline-start: 12px; opacity: .85; }
.noscript-note { color: var(--muted); line-height: 1.8; font-size: 11px; }
.qr-dialog { border: 1px solid #e2e5da; padding: 0; max-width: calc(100% - 32px); width: 370px; max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 100px rgba(0,0,0,.2); text-align: center; }
.qr-dialog::backdrop { background: rgba(1,24,18,.7); backdrop-filter: blur(5px); }
.dialog-inner { position: relative; padding: 32px 24px 24px; }
.dialog-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-color: transparent; }
.dialog-close .icon { width: 18px; height: 18px; }
.dialog-logo { width: 150px; height: auto; margin: 5px auto 18px; }
.qr-dialog h2 { font-size: 20px; }
.qr-dialog p { color: var(--muted); font-size: 12px; margin: 7px 0 16px; }
.qr-image { width: 240px; height: 240px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.qr-url { display: block; font: 12px/1.6 "Segoe UI",Arial,sans-serif; margin: 13px 0 20px; color: #68796e; }
.dialog-actions { display: flex; gap: 9px; }
.qr-download { background: var(--green); border-color: var(--green); color: var(--cream); }
.qr-download:hover { background: var(--green-2); }
.copy-fallback label { display: block; margin-bottom: 8px; }
.copy-fallback input { width: 100%; border: 1px solid #bac9bc; border-radius: 7px; padding: 10px; background: white; font-size: 12px; color: var(--green); }
.toast { position: fixed; z-index: 1000; bottom: max(24px,env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%,15px); display: flex; align-items: center; gap: 9px; padding: 13px 20px; width: max-content; max-width: calc(100% - 28px); background: var(--green); color: var(--cream); border: 1px solid #4a6b56; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.17); font-size: 12px; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.toast .icon { width: 18px; height: 18px; }
html[lang="en"] { --font: "Segoe UI", Tahoma, Arial, sans-serif; }
html[lang="en"] h1 { font-size: 13px; letter-spacing: .45px; }
html[lang="en"] .brand-slogan { font-size: 28px; line-height: 1.35; letter-spacing: -.4px; }
html[lang="en"] .brand-slogan-secondary { font-family: "Noto Sans Arabic",Tahoma,Arial,sans-serif; font-size: 11px; letter-spacing: 0; }
html[lang="en"] .eyebrow { font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
html[lang="en"] .intro { font-size: 11px; }
html[lang="en"] .link-title { font-size: 13px; }
html[lang="en"] .whatsapp-link .link-title { font-size: 14px; }
html[lang="en"] .contact-note { font-size: 10px; }
@media (max-width: 760px) {
  .page-shell { max-width: 470px; padding: 20px 17px 18px; justify-content: flex-start; }
  .contact-card { grid-template-columns: 1fr; border-radius: 23px; }
  .brand-panel { padding: 20px 23px 19px; }
  .brand-pattern::before { width: 600px; height: 460px; inset-inline-start: -120px; bottom: -280px; opacity: .055; }
  .brand-pattern::after { inset: 12px; border-radius: 13px; }
  .brand-topbar { min-height: 32px; }
  .country-tag { font-size: 8px; letter-spacing: 1.6px; }
  .language-switch { min-height: 32px; min-width: 59px; font-size: 11px; }
  .brand-content { padding: 23px 0 18px; }
  .brand-logo { width: 242px; }
  h1 { margin-top: 9px; font-size: 12px; }
  .brand-rule { margin: 16px 0 13px; width: 100px; }
  .brand-slogan { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 6px; font-size: 19px; line-height: 1.7; }
  .brand-slogan-secondary { display: none; }
  .brand-bottom { font-size: 7px; letter-spacing: 1.9px; }
  .brand-bottom .detail-line { width: 20px; }
  .contact-panel { padding: 25px 23px 22px; }
  .contact-heading { margin-bottom: 18px; }
  h2 { font-size: 22px; }
  .eyebrow { font-size: 9px; margin-bottom: 3px; }
  .intro { font-size: 10px; margin-top: 4px; }
  .small-button { width: 38px; height: 38px; }
  .contact-links { gap: 9px; }
  .contact-link { min-height: 67px; gap: 12px; padding: 11px 13px; border-radius: 11px; }
  .whatsapp-link { min-height: 73px; }
  .link-icon { width: 38px; height: 38px; border-radius: 9px; }
  .link-title { font-size: 12px; }
  .whatsapp-link .link-title { font-size: 13px; }
  .numeric { font-size: 13px; }
  .latin { font-size: 12px; }
  .utility-actions { margin-top: 18px; }
  .save-contact,.share-button { min-height: 45px; font-size: 10px; }
  .share-button { min-width: 85px; }
  .contact-note { margin-top: 18px; font-size: 8px; }
  .page-footer { padding-top: 17px; }
  html[lang="en"] h1 { font-size: 11px; }
  html[lang="en"] .brand-slogan { font-size: 20px; }
  html[lang="en"] h2 { font-size: 23px; }
  html[lang="en"] .intro { font-size: 10px; }
  html[lang="en"] .link-title { font-size: 12px; }
  html[lang="en"] .whatsapp-link .link-title { font-size: 13px; }
  html[lang="en"] .contact-note { font-size: 9px; }
}
@media (max-width: 360px) {
  .page-shell { padding: 10px 10px 16px; }
  .brand-panel { padding-inline: 20px; }
  .brand-logo { width: 215px; }
  .contact-panel { padding-inline: 17px; }
  .contact-link { gap: 9px; padding-inline: 10px; }
  .latin { font-size: 11px; }
  .link-arrow { width: 14px; height: 14px; }
  .intro { font-size: 9px; }
  .share-button { min-width: 77px; }
  .copyright { margin-inline-start: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  body { background: white; }
  body::before,.background-mark,.language-switch,.utility-actions,.qr-trigger,.toast,.page-footer { display: none !important; }
  .page-shell { padding: 0; min-height: auto; }
  .contact-card { box-shadow: none; border: 1px solid #ddd; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
