/* =========================================================
   متجر الإبداع - Professional Arabic Business Website
   Main stylesheet
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --navy: #0f2d4d;
  --navy-deep: #081c31;
  --navy-soft: #1b4670;
  --gold: #d4a449;
  --gold-deep: #bd8f34;
  --gold-light: #f0cd82;
  --cream: #f7f3ea;
  --cream-dark: #ece5d7;
  --white: #ffffff;
  --text: #1d2b3a;
  --muted: #64748b;
  --border: #e3e8ee;
  --danger: #c2413b;
  --success: #1d7a53;
  --whatsapp: #25d366;
  --shadow-sm: 0 4px 18px rgba(15, 45, 77, .08);
  --shadow-md: 0 16px 40px rgba(15, 45, 77, .13);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: .25s ease;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.35; font-weight: 800; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea { font: inherit; }

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

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

.section { padding: 96px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), color var(--transition);
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(212, 164, 73, .3);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(212, 164, 73, .45); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, .75);
  color: var(--white);
  background: rgba(255, 255, 255, .05);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-soft); box-shadow: var(--shadow-md); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  white-space: nowrap;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  width: fit-content;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .25);
}
.btn-whatsapp:hover { background: #1eb857; box-shadow: 0 14px 30px rgba(37, 211, 102, .38); }

.btn-block { width: 100%; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(15, 45, 77, .08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--navy-deep);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(212, 164, 73, .35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.22rem; color: var(--navy); font-weight: 800; }
.brand-text small { font-size: .72rem; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav > a {
  position: relative;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  color: #3d4f61;
  transition: color var(--transition), background-color var(--transition);
}

.main-nav > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 18px;
  left: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav > a:hover { color: var(--navy); background: var(--cream); }
.main-nav > a.active { color: var(--navy); }
.main-nav > a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 11px 10px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Shared section headings ---------- */
.section-kicker,
.eyebrow {
  display: inline-block;
  color: var(--gold-deep);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: 10px;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 10px;
}

.section-heading { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-heading h2 { font-size: 2.2rem; color: var(--navy); }
.section-heading p { color: var(--muted); margin-bottom: 0; }
.section-heading-light h2 { color: var(--white); }
.section-heading-light .section-kicker { color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: var(--navy-deep) url("../assets/images/hero.svg") center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg,
    rgba(8, 28, 49, .96) 0%,
    rgba(8, 28, 49, .82) 36%,
    rgba(8, 28, 49, .35) 72%,
    rgba(8, 28, 49, .08) 100%);
  z-index: -1;
}

.hero-content { max-width: 620px; padding: 90px 0; color: var(--white); }

.hero .eyebrow {
  color: var(--gold-light);
  background: rgba(212, 164, 73, .12);
  border: 1px solid rgba(240, 205, 130, .35);
  padding: 6px 16px;
  border-radius: 100px;
}

.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); line-height: 1.25; margin: 18px 0 20px; }
.hero h1 span { color: var(--gold-light); }
.hero p { font-size: 1.1rem; color: #d6e0e9; max-width: 540px; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  color: #b8c8d6;
  font-size: .88rem;
}
.hero-note-line { width: 36px; height: 2px; background: var(--gold); }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 90px;
  align-items: center;
}

.about-visual { position: relative; padding: 0 0 34px 24px; }

.about-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 8px solid var(--cream);
}
.about-frame img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }

.about-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px 26px;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.about-badge strong { font-size: 1.9rem; color: var(--gold-light); }
.about-badge span { font-size: .82rem; }

.about-text h2 { font-size: 2.25rem; color: var(--navy); }
.about-text > p { color: #546579; }

.check-list { margin: 24px 0 30px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-right: 30px;
  font-weight: 600;
  color: #3b4c5e;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212, 164, 73, .18);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
}

/* ---------- Values ---------- */
.values { background: var(--cream); padding: 62px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.value-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.value-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(212, 164, 73, .16);
  color: var(--gold-deep);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.value-item h3 { font-size: 1.15rem; color: var(--navy); }
.value-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--navy-deep), var(--navy-soft));
  color: var(--white);
  padding: 56px 0;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(240, 205, 130, .16);
  pointer-events: none;
}
.cta-band::before { width: 320px; height: 320px; top: -180px; right: -60px; }
.cta-band::after { width: 220px; height: 220px; bottom: -140px; left: 8%; }

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-inner h2 { font-size: 1.85rem; }
.cta-inner p { margin: 0; color: #c6d5e2; }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(212, 164, 73, .22), transparent 40%),
              linear-gradient(120deg, var(--navy-deep), var(--navy-soft));
  color: var(--white);
  padding: 84px 0 88px;
  text-align: center;
}
.page-banner::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(240, 205, 130, .16);
  border-radius: 50%;
  bottom: -200px;
  left: -60px;
}
.page-banner .eyebrow { color: var(--gold-light); }
.page-banner h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 10px; }
.page-banner p { color: #cad8e5; max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-section { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.service-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.service-image { overflow: hidden; aspect-ratio: 4 / 3; }
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.service-card:hover .service-image img { transform: scale(1.06); }

.service-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service-number {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 800;
  color: var(--gold-deep);
  background: rgba(212, 164, 73, .13);
  border-radius: 8px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
.service-body h3 { font-size: 1.35rem; color: var(--navy); }
.service-body p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
  width: fit-content;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: color var(--transition), gap var(--transition);
}
.service-link:hover { color: var(--gold-deep); gap: 14px; }

/* ---------- Process ---------- */
.process { background: var(--navy-deep); padding: 90px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }

.process-grid li {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: background-color var(--transition), transform var(--transition);
}
.process-grid li:hover { background: rgba(255, 255, 255, .08); transform: translateY(-4px); }
.process-grid li > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  margin-bottom: 18px;
}
.process-grid h3 { color: var(--white); font-size: 1.1rem; }
.process-grid p { color: #adc0d1; font-size: .9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { font-size: 2.2rem; color: var(--navy); }
.contact-intro { color: var(--muted); margin-bottom: 28px; }

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.info-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--gold-deep);
  box-shadow: var(--shadow-sm);
}
.info-card h3 { margin: 0 0 2px; font-size: 1rem; color: var(--navy); }
.info-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.ltr-text { direction: ltr; text-align: right; }

.btn-whatsapp { margin-top: 14px; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h2 { font-size: 1.7rem; color: var(--navy); }
.contact-form-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 700;
  color: #34485c;
  margin-bottom: 8px;
  font-size: .93rem;
}
.form-group label span { color: var(--danger); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fcfdfe;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ba9b6; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 164, 73, .14);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: var(--danger); }

.field-error { display: block; color: var(--danger); font-size: .82rem; margin-top: 5px; min-height: 0; }

.form-status {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: .92rem;
  color: var(--success);
  min-height: 1.4em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c9d8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.brand-footer .brand-text strong { color: var(--white); }
.footer-desc { margin-top: 16px; max-width: 280px; font-size: .93rem; }

.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a,
.footer-contact { transition: color var(--transition); }
.footer-links a:hover,
.footer-contact:hover { color: var(--gold-light); }
.footer-contact { display: block; margin-bottom: 8px; font-size: .93rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: .85rem; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.09) translateY(-3px); box-shadow: 0 12px 30px rgba(37, 211, 102, .55); }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .about-grid { gap: 52px; }
  .contact-grid { gap: 36px; }
  .services-grid { gap: 20px; }
  .service-body { padding: 22px; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { max-width: 620px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1180px); }

  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.25rem; }
  .brand-text strong { font-size: 1.08rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 14px 16px 20px;
    box-shadow: 0 16px 24px rgba(15, 45, 77, .12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 12px 16px; }
  .main-nav > a::after { right: 16px; left: 16px; }

  .hero { min-height: 560px; }
  .hero-overlay {
    background: linear-gradient(270deg,
      rgba(8, 28, 49, .93) 0%,
      rgba(8, 28, 49, .76) 60%,
      rgba(8, 28, 49, .45) 100%);
  }
  .hero-content { padding: 70px 0; }
  .hero-actions .btn { flex: 1 1 180px; }
  .hero-note { margin-top: 32px; }

  .section-heading { margin-bottom: 36px; }
  .section-heading h2,
  .about-text h2,
  .contact-info h2 { font-size: 1.85rem; }

  .values-grid,
  .services-grid,
  .process-grid { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner h2 { font-size: 1.55rem; }

  .page-banner { padding: 60px 0 66px; }
  .contact-form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer { padding-top: 48px; }
  .whatsapp-float { bottom: 18px; left: 18px; width: 52px; height: 52px; }
}

@media (max-width: 420px) {
  .brand-text small { display: none; }
  .hero h1 { font-size: 2.15rem; }
  .about-badge { padding: 12px 18px; }
  .about-badge strong { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
