/* ============================================================
   Ahmed Eldakroury Web Studio — style.css
   Design system: black / white / subtle blue, mobile-first
   ============================================================ */

:root {
  --black: #0a0a0f;
  --ink: #14141c;
  --ink-soft: #1d1d28;
  --white: #ffffff;
  --paper: #f7f7f9;
  --gray-100: #ececf1;
  --gray-300: #c9c9d4;
  --gray-500: #7a7a8c;
  --gray-700: #45455a;
  --blue: #2f6bff;
  --blue-soft: #e8efff;
  --blue-dark: #1c4fd6;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -18px rgba(10, 10, 25, 0.22);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --maxw: 1160px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--black);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: var(--white);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.06rem;
  color: var(--black); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand span em { font-style: normal; color: var(--blue); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--gray-100); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--black); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  list-style: none;
  display: flex; flex-direction: column;
  padding: 10px 22px 22px;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-menu.open { transform: none; opacity: 1; visibility: visible; }
.nav-menu a {
  display: block; padding: 13px 6px;
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}
.nav-menu a:hover { color: var(--blue); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav-cta { margin-top: 14px; }
.nav-cta a {
  border-bottom: none; text-align: center;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; flex-direction: row; align-items: center;
    padding: 0; border: none; background: none;
    opacity: 1; visibility: visible; transform: none; gap: 4px;
  }
  .nav-menu a { border: none; padding: 9px 13px; border-radius: var(--radius-sm); font-size: .95rem; }
  .nav-menu a:hover { background: var(--blue-soft); }
  .nav-cta { margin: 0 0 0 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 26px -10px rgba(47, 107, 255, .55); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); color: var(--white); }
.btn-outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* ---------- Sections ---------- */
main { flex: 1; }
.section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--black); color: var(--gray-100); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section-lead { color: var(--gray-700); max-width: 640px; font-size: 1.06rem; }
.section-dark .section-lead { color: var(--gray-300); }
.section-head { margin-bottom: 46px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--white);
  padding: 96px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 340px at 82% 12%, rgba(47, 107, 255, .28), transparent 62%),
    radial-gradient(480px 300px at 8% 88%, rgba(47, 107, 255, .16), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.15rem, 5.6vw, 3.9rem);
  max-width: 15ch; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--blue); }
.hero p { color: var(--gray-300); font-size: 1.12rem; max-width: 54ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 58px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 12px 34px;
  color: var(--gray-300); font-size: .92rem;
}
.hero-meta strong { color: var(--white); font-weight: 600; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gray-300); }
.card h3 { font-size: 1.16rem; margin: 16px 0 10px; }
.card p { color: var(--gray-700); font-size: .97rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.8; }

/* ---------- Portfolio ---------- */
.work-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.work-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.work-body { padding: 22px 24px 26px; }
.work-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.work-body p { color: var(--gray-700); font-size: .96rem; margin-bottom: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px;
  background: var(--paper); color: var(--gray-700);
  border: 1px solid var(--gray-100);
}
.tag-concept {
  background: var(--blue-soft); color: var(--blue-dark); border-color: transparent;
  text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- Project detail ---------- */
.project-hero { padding: 64px 0 40px; }
.project-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.project-preview { border-radius: var(--radius); border: 1px solid var(--gray-100); overflow: hidden; margin: 34px 0; box-shadow: var(--shadow); }
.feature-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.feature-list li {
  position: relative; padding-left: 32px; color: var(--gray-700);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232f6bff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
}
.device-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--blue-soft); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 28px; color: var(--blue-dark); font-size: .95rem;
}
.device-note svg { width: 22px; height: 22px; flex: 0 0 auto; stroke: var(--blue-dark); fill: none; stroke-width: 1.9; margin-top: 2px; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card h3 { margin-top: 0; }
.price-tier { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.price-note { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--black); margin: 10px 0 4px; }
.price-card ul { list-style: none; margin: 20px 0 26px; display: grid; gap: 10px; flex: 1; }
.price-card li { position: relative; padding-left: 28px; color: var(--gray-700); font-size: .95rem; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232f6bff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 10px no-repeat;
}
.price-featured { border: 2px solid var(--blue); position: relative; }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--blue); background: var(--blue-soft);
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--gray-700); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 34px; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }

.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .16);
}
.field .error-text { color: #c81e3a; font-size: .85rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c81e3a; }
.field.invalid .error-text { display: block; }
.form-status { border-radius: var(--radius-sm); padding: 15px 18px; font-size: .96rem; display: none; }
.form-status.ok { display: block; background: #e7f7ee; color: #146c3a; border: 1px solid #b9e6c9; }
.form-status.err { display: block; background: #fdecef; color: #a01730; border: 1px solid #f5c2cc; }

.contact-aside { display: grid; gap: 18px; align-content: start; }
.contact-method {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 22px; background: var(--white);
}
.contact-method h3 { font-size: 1.02rem; margin-bottom: 5px; }
.contact-method p { color: var(--gray-700); font-size: .94rem; overflow-wrap: anywhere; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--black); color: var(--white); text-align: center; padding: 84px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 50% 0%, rgba(47,107,255,.32), transparent 65%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: var(--gray-300); max-width: 52ch; margin: 0 auto 30px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--black); color: var(--white); padding: 74px 0; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 280px at 85% 20%, rgba(47,107,255,.26), transparent 62%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--gray-300); max-width: 62ch; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--gray-300); padding: 58px 0 30px; margin-top: auto; }
.footer-grid { display: grid; gap: 34px; margin-bottom: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-brand p { font-size: .94rem; max-width: 34ch; margin-top: 12px; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-links a { color: var(--gray-300); font-size: .94rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px; font-size: .86rem;
  display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .work-card:hover { transform: none; }
}

/* ---------- Misc ---------- */
.prose p { color: var(--gray-700); margin-bottom: 16px; max-width: 68ch; }
.prose h2 { font-size: 1.45rem; margin: 34px 0 14px; }
.prose ul { margin: 0 0 16px 22px; color: var(--gray-700); }
.prose li { margin-bottom: 8px; }
.market-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.market-list span {
  border: 1px solid var(--gray-300); border-radius: 999px;
  padding: 8px 18px; font-size: .9rem; font-weight: 500; color: var(--ink);
}

/* ---------- Currency switcher ---------- */
.currency-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: center; }
.currency-label { font-weight: 600; color: var(--gray-700); }
.currency-switch {
  display: inline-flex; background: var(--paper); border: 1px solid var(--gray-100);
  border-radius: 999px; padding: 5px;
}
.cur-btn {
  font: inherit; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  border: none; background: transparent; color: var(--gray-700);
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cur-btn.active { background: var(--black); color: var(--white); }
.cur-btn:not(.active):hover { color: var(--blue); }
.price-meta { color: var(--gray-700); font-size: .92rem; margin-top: 2px; }
.fine-print {
  margin-top: 30px; text-align: center; color: var(--gray-500); font-size: .9rem;
  max-width: 720px; margin-inline: auto;
}
