/* AM Store - خدمات التسويق والإعلانات
   الهوية: ألوان ولوجو AM Store */

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0f2b45;
  --navy-2: #163957;
  --blue: #045ca9;
  --blue-hover: #034b8b;
  --blue-dark: #013d70;
  --cyan: #4ce1fd;
  --sky: #4a90e2;
  --ink: #17232f;
  --muted: #5b6b7c;
  --line: #e2eaf2;
  --bg: #f6f9fc;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(15, 43, 69, .08);
  --shadow-sm: 0 2px 10px rgba(15, 43, 69, .06);
  --wa: #25d366;
  --wa-dark: #1eb457;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--bg); }
.center { text-align: center; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { inset-inline-start: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 46px; height: 46px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name b { font-size: 1.02rem; color: var(--navy); }
.brand-name span { font-size: .72rem; color: var(--muted); }

.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--ink); font-size: .95rem; font-weight: 600;
}
.site-nav a:hover { background: var(--bg); color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); background: #eaf4fd; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; margin-inline-start: auto;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--navy);
  position: absolute; inset-inline-start: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-align: center; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: #c9d7e4; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef6fd; color: var(--navy); }
.btn-email { background: var(--blue); color: #fff; }
.btn-email:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(76, 225, 253, .22), transparent 60%),
    linear-gradient(135deg, #0b2338 0%, var(--navy) 45%, #10395c 100%);
  color: #eaf2f9;
  padding: 76px 0 72px;
}
.hero h1 { color: #fff; }
.hero p { color: #c8dcec; }
.hero .lead { color: #cfe2f1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: #a9c4d9; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-note span::before { content: '✓'; color: var(--cyan); margin-inline-end: 6px; font-weight: 700; }
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 26px;
}
.hero-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 10px; font-size: .95rem; color: #d6e6f3; }
.hero-card li b { color: #fff; font-weight: 700; }
.hero-card .dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-top: 10px; }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, #0b2338, #10395c);
  color: #dceaf6; padding: 46px 0;
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #b9d2e5; margin: 0; max-width: 70ch; }
.crumbs { font-size: .88rem; color: #93b2ca; margin-bottom: 12px; }
.crumbs a { color: #cfe4f4; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 1em; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: #eaf4fd; color: var(--blue);
}
.card .icon svg { width: 24px; height: 24px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.price small { font-weight: 400; color: var(--muted); font-size: .78rem; display: block; }

.feature { display: flex; gap: 14px; }
.feature .icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #eaf4fd; color: var(--blue); display: grid; place-items: center; }
.feature h3 { font-size: 1.02rem; margin-bottom: .2em; }
.feature p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; margin-top: 14px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; inset-inline-start: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .92rem;
  display: grid; place-items: center;
}
.step h3 { font-size: 1rem; margin: 6px 0 .3em; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 16px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--navy); color: #fff; font-size: .95rem; font-weight: 700; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td.amount { font-weight: 700; color: var(--blue); white-space: nowrap; }
.price-table td.detail { color: var(--muted); font-size: .92rem; }

/* ---------- Service detail ---------- */
.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; }
.svc + .svc { margin-top: 18px; }
.svc-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.svc-head h2 { margin: 0; font-size: 1.25rem; }
.svc-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.svc-list li { padding-inline-start: 26px; position: relative; font-size: .96rem; color: #33465a; }
.svc-list li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--wa-dark); font-weight: 700; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-size: .84rem; background: var(--bg); border: 1px solid var(--line); color: #3c5165; border-radius: 999px; padding: 5px 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark), #0b2338);
  color: #e6f1fa; border-radius: 18px; padding: 40px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: #bdd7ea; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }

/* ---------- Forms ---------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .94rem; margin-bottom: 7px; color: var(--navy); }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfdbe6; border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(4, 92, 169, .25); border-color: var(--blue);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .err { color: #c0392b; font-size: .86rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #eafaf1; border: 1px solid #b9ebcd; color: #14663c; font-size: .94rem; }
.form-status.show { display: block; }
.summary-box { background: var(--bg); border: 1px dashed #c3d4e2; border-radius: 12px; padding: 16px; margin-top: 16px; font-size: .93rem; white-space: pre-wrap; display: none; }
.summary-box.show { display: block; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.contact-list .icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #eaf4fd; color: var(--blue); display: grid; place-items: center; }
.contact-list b { display: block; color: var(--navy); }
.contact-list a { font-weight: 700; }

/* ---------- Legal ---------- */
.legal { max-width: 76ch; }
.legal h2 { margin-top: 1.8em; font-size: 1.25rem; }
.legal h3 { margin-top: 1.4em; font-size: 1.02rem; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: .5em; }
.legal .updated { font-size: .88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9cddf; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 12px; }
.site-footer a { color: #cfe2f1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 52px; height: 52px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand b { color: #fff; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .86rem; color: #93aec5; }




/* ---------- Currency estimate ---------- */
.fx-note { margin: 0 0 18px; font-size: .82rem; color: var(--muted); max-width: 56ch; line-height: 1.6; }
.fx { display: block; font-size: .8rem; font-weight: 600; color: var(--sky); margin-top: 2px; direction: ltr; unicode-bidi: isolate; text-align: right; letter-spacing: .01em; }
.fx:empty { display: none; }
td.amount .fx { display: block; }

/* ---------- Two-column layouts ---------- */
.layout-form { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.layout-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) {
  .layout-form, .layout-2 { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .header-inner { min-height: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15,43,69,.08); padding: 10px 20px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px; }
  .header-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 48px; }
  .cta-band { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .price-table td { border: 0; padding: 6px 18px; }
  .price-table td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); }
  .svc { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
