/* =============================================================================
   Global Tech (جلوبل تك) — gteyemen.com
   Design tokens + mobile-first styles
   Brand: primary teal #026b79 | text #231f20 | gold accent #fdba5f (thin only)
   ============================================================================= */

:root {
  /* --- Tokens (documented) --- */
  --color-teal: #026b79;
  --color-teal-dark: #015560;
  --color-teal-soft: #e6f2f4;      /* muted teal tint for placeholders */
  --color-teal-mid: #84a8aa;      /* soft UI secondary */
  --color-ink: #231f20;
  --color-ink-muted: #445055; /* darkened for AA body contrast */
  --color-gold: #fdba5f;          /* thin accents / lines only — not large fills */
  --color-border: #c4c6c8;
  --color-surface: #ffffff;
  --color-surface-alt: #f7f9f9;
  --color-secondary-sage: #75928f;
  --color-secondary-mist: #a1b8b8;

  --font-ar: "Alexandria", "Tahoma", "Segoe UI", sans-serif;
  --font-lat: "Outfit", "Inter", system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-section: 4rem;

  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --header-h: 72px;
  --logo-h: 44px;
  --logo-clear: 22px;             /* ~0.5× logo height clearspace */
  --cta-min: 44px;                /* touch-friendly */

  --shadow-soft: 0 1px 3px rgba(35, 31, 32, 0.06);
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  overflow-x: clip;
  font-family: var(--font-lat);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: var(--font-ar);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-teal); text-decoration: none; }
a:hover { color: var(--color-teal-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0 0 var(--space-md);
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-ink);
}
p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  inset-inline-start: var(--space-md);
  top: -100px;
  background: var(--color-teal);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-sm); color: #fff; }

/* =============================================================================
   Header — logo clearspace, no busy bg
   ============================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface); /* clean — no busy bg behind logo */
  border-bottom: 1px solid var(--color-border);
  isolation: isolate;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-md);
  /* outer breathing room; mark clearspace comes from .logo-link padding */
  padding-block: calc(var(--logo-clear) * 0.35);
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* Clearspace ≥ 0.5× logo height on all sides of the mark */
  padding: var(--logo-clear);
  margin-block: calc(var(--logo-clear) * -0.25); /* keep header height reasonable */
}
.logo-link img {
  height: var(--logo-h);
  width: auto;
  max-height: var(--logo-h);
  aspect-ratio: 480 / 146; /* lock native logo-web.png ratio — no stretch */
  /* NO filter, shadow, gradient, recolor */
  object-fit: contain;
  object-position: center;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--cta-min);
  min-height: var(--cta-min);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle:hover { border-color: var(--color-teal); color: var(--color-teal); }
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--color-ink);
  font-weight: 500;
  padding: 0.65rem 0.5rem;
  min-height: var(--cta-min);
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
}
.site-nav a:hover {
  color: var(--color-teal);
  background: var(--color-teal-soft);
}
.lang-switch {
  font-weight: 600;
  color: var(--color-teal) !important;
  border: 1px solid var(--color-border);
  padding-inline: 0.85rem !important;
  justify-content: center;
}

@media (min-width: 768px) {
  :root { --logo-h: 48px; --logo-clear: 28px; --header-h: 84px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: var(--space-md);
  }
  .site-nav a { padding: 0.4rem 0.5rem; }
}

/* =============================================================================
   Buttons — WhatsApp is the ONLY primary style
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--cta-min);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Primary = WhatsApp teal filled — use ONLY for WhatsApp CTAs */
.btn-wa,
.btn-primary {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}
.btn-wa:hover,
.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: #fff;
}

/* Secondary = outline — for in-page nav only, never compete with WA */
.btn-secondary {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}
.btn-secondary:hover {
  background: var(--color-teal-soft);
  color: var(--color-teal-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--color-teal);
  border-color: transparent;
  padding-inline: 0.5rem;
}
.btn-ghost:hover { color: var(--color-teal-dark); text-decoration: underline; }

.btn-block { width: 100%; }
.btn-icon svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* =============================================================================
   Hero
   ============================================================================= */
.hero {
  padding-block: var(--space-xl) var(--space-2xl);
  background: var(--color-surface-alt);
  /* thin gold accent line under hero */
  border-bottom: 3px solid var(--color-gold);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}
.hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  margin-bottom: var(--space-md);
  max-width: 18em;
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--color-ink-muted);
  max-width: 38em;
  margin-bottom: var(--space-lg);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* =============================================================================
   Sections — consistent rhythm
   ============================================================================= */
.section {
  padding-block: var(--space-section);
}
.section-alt { background: var(--color-surface-alt); }
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: var(--space-sm);
}
.section-intro {
  color: var(--color-ink-muted);
  max-width: 40em;
  margin-bottom: var(--space-lg);
}
/* thin gold underline accent on titles */
.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--color-gold);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

/* =============================================================================
   About
   ============================================================================= */
.about-grid {
  display: grid;
  gap: var(--space-lg);
}
.about-text p { color: var(--color-ink); }
.about-text p + p { margin-top: var(--space-md); }

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: var(--space-xl);
  }
}

/* =============================================================================
   Image placeholders — muted teal-tinted
   ============================================================================= */
.img-placeholder {
  background: var(--color-teal-soft);
  border: 1px dashed var(--color-teal-mid);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  color: var(--color-ink-muted);
  font-size: 0.9rem;
  min-height: 160px;
}
.img-placeholder-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-sm);
  opacity: 0.45;
  color: var(--color-teal);
}
.img-placeholder-caption {
  max-width: 14em;
  line-height: 1.4;
}

/* =============================================================================
   Services cards — commercial → small industrial → home
   ============================================================================= */
.services-grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--color-teal-mid); }
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-teal-soft);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0;
}
.card p {
  color: var(--color-ink-muted);
  flex: 1;
  font-size: 0.95rem;
}
.card .btn-ghost {
  align-self: flex-start;
  margin-top: var(--space-xs);
  min-height: var(--cta-min);
}

/* =============================================================================
   How we work
   ============================================================================= */
.how-list {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .how-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .how-list { grid-template-columns: repeat(2, 1fr); }
}

.how-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.how-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.how-item p {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  margin: 0;
}

/* =============================================================================
   WhatsApp CTA block
   ============================================================================= */
.cta-block {
  padding-block: var(--space-xl);
  background: var(--color-teal);
  color: #fff;
  text-align: center;
  /* gold accent top edge */
  border-top: 3px solid var(--color-gold);
}
.cta-block h2 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.cta-block h2::after {
  background: var(--color-gold);
  margin-inline: auto;
}
.cta-block p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36em;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}
.cta-block .btn-wa {
  background: #fff;
  color: var(--color-teal);
  border-color: #fff;
}
.cta-block .btn-wa:hover {
  background: var(--color-teal-soft);
  color: var(--color-teal-dark);
  border-color: var(--color-teal-soft);
}
.cta-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================================================
   Soft gallery / contact placeholders
   ============================================================================= */
.gallery-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-soft {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
}
.contact-soft a[data-placeholder] {
  color: var(--color-ink-muted);
  border-bottom: 1px dashed var(--color-border);
  pointer-events: none;
}

/* =============================================================================
   Sticky mobile WhatsApp CTA
   ============================================================================= */
.wa-sticky {
  position: fixed;
  bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(var(--space-md) + env(safe-area-inset-right, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--cta-min);
  padding: 0.65rem 1.1rem;
  background: var(--color-teal);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(2, 107, 121, 0.35);
  border: none;
}
.wa-sticky:hover { background: var(--color-teal-dark); color: #fff; }
.wa-sticky svg { width: 1.35rem; height: 1.35rem; }
@media (min-width: 768px) {
  .wa-sticky .wa-sticky-label { display: inline; }
}
/* hide label on very small to keep compact */
@media (max-width: 380px) {
  .wa-sticky .wa-sticky-label { display: none; }
  .wa-sticky { padding: 0.75rem; border-radius: 50%; }
}

/* =============================================================================
   Footer
   ============================================================================= */
/* sticky WA clearance so FAB does not cover disclaimer */
body {
  padding-bottom: calc(var(--cta-min) + var(--space-lg));
}
@media (min-width: 768px) {
  body { padding-bottom: calc(var(--cta-min) + var(--space-md)); }
}

.site-footer {
  background: var(--color-ink);
  color: #c4c6c8;
  padding-block: var(--space-xl) var(--space-lg);
}
.site-footer a { color: #a1b8b8; }
.site-footer a:hover { color: var(--color-gold); }
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}
.footer-tagline {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}
.footer-services {
  font-size: 0.875rem;
  color: var(--color-secondary-mist);
}
.footer-heading {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.footer-heading::after { display: none; }
.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--cta-min);
  min-height: var(--cta-min);
  padding: 0.4rem 0.75rem;
  border: 1px solid #586770;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: #c4c6c8;
}
.social-list a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.footer-disclaimer {
  border-top: 1px solid #586770;
  padding-top: var(--space-md);
  font-size: 0.8rem;
  color: #7b7c7f;
  line-height: 1.5;
}
.footer-bottom {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: #7b7c7f;
}

/* =============================================================================
   Utilities / ≤480 mobile polish
   ============================================================================= */
@media (max-width: 480px) {
  :root {
    --space-section: 3rem;
    --logo-h: 40px;
    --logo-clear: 20px; /* 0.5× of 40px */
    --header-h: 68px;
  }
  .hero { padding-block: var(--space-lg) var(--space-xl); }
  .hero h1 { font-size: clamp(1.45rem, 6.5vw, 1.75rem); }
  .hero-lead { font-size: 0.98rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; }
  .btn {
    padding-inline: 1rem;
    white-space: normal;
    text-wrap: balance;
  }
  .card { padding: var(--space-md); }
  .header-inner { gap: var(--space-sm); }
  .container { padding-inline: 1rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* Social placeholders (no link until URLs ready) */
.social-list span[data-placeholder] {
  color: inherit;
  opacity: 0.55;
  cursor: default;
}
