/* ============================================================
   Adnan Hair — Styles
   يعتمد على متغيرات tokens.css (هوية أزرق الشعار + خلفيات فاتحة)
   ============================================================ */

@import url("tokens.css");

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-800);
}

/* الشعار في الهيدر — PNG شفاف، يُعرض بحجم ثابت دون تشويه */
.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 4px 0;
  transition: color var(--dur) var(--ease);
}

.nav a:hover { color: var(--brand-600); }

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* زر قائمة الموبايل */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-sm);
  background: var(--neutral-0);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--brand-400);
  background: var(--brand-50);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--brand-700);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad-brand);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(30, 95, 168, 0.36);
}

.btn-outline {
  background: var(--neutral-0);
  border-color: var(--border-brand);
  color: var(--brand-700);
}

.btn-outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
  background: var(--brand-50);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--brand-600);
  border-color: var(--brand-300);
  background: var(--brand-50);
}

/* ============ Hero ============ */
.hero {
  padding: 80px 0 70px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(79, 168, 224, 0.22), transparent 60%),
    radial-gradient(700px 420px at 0% 20%, rgba(169, 214, 245, 0.35), transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-600);
  background: var(--brand-100);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--brand-800);
}

.hero h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 26px;
  max-width: 520px;
}

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

.hero-media {
  position: relative;
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
}

/* ============ Trust bar ============ */
.trust-bar {
  background: var(--brand-25);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--brand-100);
  color: var(--brand-700);
}

.trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.trust-text strong {
  color: var(--brand-800);
  font-size: 15px;
}

.trust-text span {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ Placeholders ============ */
.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 200px;
  border: 1px dashed var(--border-brand);
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.media-placeholder span { font-weight: 700; color: var(--brand-700); }
.media-placeholder small { font-size: 12px; color: var(--text-muted); }

/* ============ Sections ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 8px;
  text-align: center;
  color: var(--brand-800);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 38px;
}

.grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-brand);
}

.card h3 {
  margin: 0;
  font-size: 19px;
  color: var(--brand-800);
}

.card p { margin: 0 0 8px; color: var(--text-muted); }
.card .btn { align-self: flex-start; }

/* Service card with image */
.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card .card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--brand-50);
}

.service-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.service-card:hover .card-media img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--grad-brand);
  color: var(--text-on-brand);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-brand);
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 24px 22px;
}

.service-body h3 {
  margin: 0;
  font-size: 19px;
  color: var(--brand-800);
}

.service-body p {
  margin: 0;
  color: var(--text-muted);
}

.service-meta {
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed var(--border-soft);
  padding-top: 10px;
}

.service-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.meta-label { color: var(--text-subtle); }
.meta-value { color: var(--brand-800); font-weight: 700; }
.meta-price { color: var(--brand-600); }

.service-body .btn { align-self: flex-start; margin-top: 4px; }

.services-note {
  text-align: center;
  color: var(--text-subtle);
  font-size: 13px;
  margin: 26px 0 0;
}

/* ============ Why ============ */
.why-grid {
  grid-template-columns: repeat(3, 1fr);
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-brand);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--brand-100);
  color: var(--brand-700);
  margin-bottom: 14px;
}

.why-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--brand-800);
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ============ Team ============ */
.team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-brand);
}

.team-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--grad-brand-light);
  color: var(--brand-600);
  border: 1px solid var(--border-brand);
  margin-bottom: 6px;
}

.team-card h3 {
  margin: 0;
  font-size: 19px;
  color: var(--brand-800);
}

.team-role {
  margin: 0;
  color: var(--brand-600);
  font-weight: 700;
  font-size: 14px;
}

.team-bio {
  margin: 4px 0 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-soft);
}

.team-note {
  text-align: center;
  color: var(--text-subtle);
  font-size: 13px;
  margin: 26px 0 0;
}

/* ============ About ============ */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}

.about-text .section-title { margin-bottom: 16px; text-align: right; }

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-50);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  border-color: var(--brand-400);
  box-shadow: var(--shadow-md);
  outline: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(11, 42, 91, 0.85), rgba(11, 42, 91, 0));
  text-align: right;
}

.gallery-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 22px 0 0;
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 30, 66, 0.94);
  padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: min(92vw, 1000px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--brand-300);
  box-shadow: 0 20px 60px rgba(7, 30, 66, 0.6);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brand-300);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { border-color: var(--brand-200); color: var(--brand-200); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--brand-300);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover { border-color: var(--brand-200); color: var(--brand-200); }

.lightbox-prev { inset-inline-start: 20px; }
.lightbox-next { inset-inline-end: 20px; }

/* ============ Contact ============ */
.contact-inner { text-align: center; }

.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--brand-800);
  color: var(--brand-100);
  padding: 40px 0 24px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
}

/* الشعار في الفوتر — خلفية بيضاء ناعمة لضمان وضوح الشعار الملوّن على الأزرق الداكن */
.footer-logo {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  background: var(--neutral-0);
  border-radius: var(--radius-sm);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(4, 21, 47, 0.35);
}

.footer-tagline {
  margin: 0;
  color: var(--brand-200);
  font-size: 14px;
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-heading {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--brand-200);
}

.footer-list a:hover { color: #fff; }

.footer-copy {
  color: var(--brand-200);
  font-size: 13px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(169, 214, 245, 0.2);
  width: 100%;
  text-align: center;
}

/* ============ Floating WhatsApp ============ */
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--dur-fast) var(--ease), background var(--dur) var(--ease);
}

.wa-float:hover {
  transform: scale(1.06);
  background: var(--wa-dark);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--neutral-0);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    padding: 8px 20px 16px;
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav a:last-child { border-bottom: none; }

  .nav a::after { display: none; }

  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-caption { font-size: 12px; padding: 8px 10px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .header-cta { padding: 9px 14px; font-size: 14px; }
  .trust-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox-prev { inset-inline-start: 8px; }
  .lightbox-next { inset-inline-end: 8px; }
  .lightbox-close { top: 8px; inset-inline-end: 8px; }

  /* تصغير طفيف للشعار على الشاشات الصغيرة دون كسر التخطيط */
  .brand-logo { width: 40px; height: 40px; }
  .footer-logo { width: 40px; height: 40px; }
}
