/* ==========================================
   Mohamed Taha Advertising - Master Stylesheet
   Part 1: Core Setup, Header, Hero & Buttons
   ========================================== */

/* 1. Reset & Root Variables */
:root {
  --bg: #0e1117;
  --panel: #1b1f24;
  --panel-line: #2d333b;
  --accent: #ff7a29;
  --accent-hover: #ff914d;
  --text: #f0f6fc;
  --text-dim: #adbac7;
  --radius-plate: 20px;
  --radius-card: 16px;
  --radius-btn: 10px;
  
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
}

/* Color Themes Per Page */
body.theme-signage  { --accent: #ff7a29; --accent-hover: #ff914d; }
body.theme-printing { --accent: #00a8ff; --accent-hover: #33b8ff; }
body.theme-stickers { --accent: #e056fd; --accent-hover: #e773fe; }
body.theme-textile  { --accent: #2ed573; --accent-hover: #55e08f; }
body.theme-gifts    { --accent: #ffa502; --accent-hover: #ffb733; }
body.theme-design   { --accent: #ff4757; --accent-hover: #ff6b81; }
body.theme-cups     { --accent: #1e90ff; --accent-hover: #4ba3ff; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

a {
  color: inherit;
  text-decoration: none;
}

/* 2. Layout Sections */
.section {
  padding: var(--sp-7) 0;
}

.section-alt {
  background-color: rgba(27, 31, 36, 0.5);
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--sp-6);
}

.section-head h1, .section-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* 3. Header & Navigation */
.site-header {
  background: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-line);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--sp-3) 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--sp-4);
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.lang-switch {
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  width: 36px;
  height: 36px;
}

@media (max-width: 991px) {
  .site-header .container {
    position: relative;
    gap: var(--sp-3);
  }

  /* Keep the menu button reachable; hide only the links until the menu opens. */
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-2);
    margin-inline-start: auto;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .nav-links {
    display: none;
  }

  .main-nav.open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + var(--sp-3));
    inset-inline: var(--sp-3);
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    padding: var(--sp-4);
    gap: var(--sp-3);
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  .nav-links a {
    display: block;
    padding: var(--sp-2);
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-2);
    width: auto;
    margin: 0;
  }
}

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-accent {
  background: var(--accent);
  color: #0e1117;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--panel-line);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* 5. Hero Section */
.hero {
  padding: var(--sp-7) 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,122,41,0.08) 0%, transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}

@media (max-width: 991px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.hero-kicker {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-copy h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .hero-actions { justify-content: center; }
}

.hero-plate {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-plate);
  padding: var(--sp-3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-plate-inner {
  border-radius: calc(var(--radius-plate) - 4px);
  overflow: hidden;
  position: relative;
}

.hero-plate img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}/* ==========================================
   Mohamed Taha Advertising - Master Stylesheet
   Part 2: Service Cards, Grids, Form & Utilities
   ========================================== */

/* 6. Service Grids & Cards */
.service-grid, .index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
}

.service-card, .index-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .index-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #15181e;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .card-media img,
.index-card:hover .card-media img {
  transform: scale(1.05);
}

.service-card-body, .index-card-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card h3, .index-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.service-card p, .index-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}

/* Index Card Specifics */
.index-card {
  position: relative;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-left: 8px;
}

.go {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 7. Reasons & Features Section */
.reason-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 800px;
  margin: 0 auto;
}

.reason-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-card);
}

.mark {
  background: rgba(255, 122, 41, 0.15);
  color: var(--accent);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* 8. Steps / Process Section */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.step {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: var(--sp-5);
  border-radius: var(--radius-card);
  text-align: center;
  position: relative;
}

.step-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: var(--sp-2);
  opacity: 0.8;
}

/* 9. CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--panel) 0%, rgba(255, 122, 41, 0.12) 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-plate);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  margin: var(--sp-7) 0;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.cta-banner p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto var(--sp-5);
  font-size: 1.05rem;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* 10. Contact Page Components */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-6);
  align-items: start;
}

@media (max-width: 991px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: var(--sp-5);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 122, 41, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-form-section {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: var(--sp-6);
  border-radius: var(--radius-plate);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.form-group {
  margin-bottom: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #12151a;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.btn-submit-wa {
  background: #25d366;
  color: #0e1117;
  flex: 1;
}

.btn-submit-wa:hover {
  background: #20bd5a;
}

.btn-submit-email {
  background: transparent;
  border: 1px solid var(--panel-line);
  color: var(--text);
  flex: 1;
}

.btn-submit-email:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Map Section */
.map-section {
  margin-top: var(--sp-7);
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-plate);
  overflow: hidden;
  border: 1px solid var(--panel-line);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 11. Footer Components */
.site-footer {
  background: #090b0e;
  border-top: 1px solid var(--panel-line);
  padding: var(--sp-7) 0 var(--sp-4);
  margin-top: var(--sp-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.footer-grid h4 {
  color: var(--text);
  margin-bottom: var(--sp-3);
  font-size: 1.1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--panel-line);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* 12. Floating Actions */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s ease;
}

.float-whatsapp:hover {
  transform: scale(1.1);
}

.float-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #0e1117;
}

/* Small-screen overflow and spacing safeguards */
@media (max-width: 680px) {
  .container { min-width: 0; }
  .header-actions .btn-accent { display: none; }
  .header-actions .btn { padding: 7px 10px; }
  .service-grid, .index-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .contact-form-section { padding: var(--sp-4); }
  .form-actions { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: center; gap: var(--sp-2); text-align: center; }
  .hero-actions .btn { max-width: 100%; }
}


/* English pages follow their declared left-to-right reading direction. */
html[lang="en"] body { direction: ltr; font-family: "IBM Plex Sans", Arial, sans-serif; }


/* Keep in-page section targets visible below the sticky header. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Shared two-row desktop header keeps the logo separate from navigation. */
.site-header .container {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas: "brand controls" "nav nav";
  align-items: center;
  column-gap: 20px;
  row-gap: 10px;
}
.brand { grid-area: brand; display: flex; align-items: center; justify-content: flex-start; width: 72px; min-width: 72px; }
.brand-logo { display: block; width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; }
.header-controls { grid-area: controls; display: flex; align-items: center; justify-content: flex-end; min-width: 0; gap: 10px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); width: auto; margin: 0; white-space: nowrap; }
.main-nav { grid-area: nav; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; margin: 0; }
.nav-links { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; width: 100%; min-width: 0; list-style: none; gap: 8px clamp(12px, 1.4vw, 22px); white-space: normal; }
.nav-links a { display: block; padding: 2px 0; font-size: clamp(.85rem, .95vw, .98rem); line-height: 1.5; white-space: nowrap; }
.nav-toggle { display: none; }

/* Compact header on tablet and mobile; the menu opens below the controls. */
@media (max-width: 1199px) {
  .site-header .container { position: relative; display: flex; justify-content: space-between; gap: 12px; }
  .brand { flex: 0 0 52px; width: 52px; min-width: 52px; }
  .brand-logo { width: 52px; height: 52px; flex-basis: 52px; }
  .header-controls { margin-inline-start: auto; gap: 8px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; background: transparent; border: 0; color: var(--text); cursor: pointer; }
  .main-nav { position: absolute; top: calc(100% + var(--sp-3)); inset-inline: 0; z-index: 1001; display: block; width: auto; pointer-events: none; }
  .nav-links { display: none; }
  .main-nav.open { pointer-events: auto; }
  .main-nav.open .nav-links { position: static; inset-inline: auto; top: auto; z-index: auto; display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: var(--sp-4); gap: var(--sp-2); background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius-card); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
  .main-nav.open .nav-links a { padding: var(--sp-2); font-size: .95rem; }
}

@media (max-width: 680px) {
  .header-actions .btn-accent { display: none; }
  .header-actions .btn { padding: 7px 10px; }
}

@media (max-width: 380px) {
  .brand, .brand-logo { width: 46px; min-width: 46px; height: 46px; flex-basis: 46px; }
  .site-header .container { gap: 8px; }
  .header-controls { gap: 6px; }
}

/* Accessible feedback and mobile-safe form controls */
.form-status{min-height:1.5em;margin:12px 0;color:var(--text,#222);font-size:.95rem;line-height:1.6}
.form-status a{font-weight:700}
input,select,textarea{font-size:16px}


/* Shared button system for Arabic and English pages. */
.btn,
.btn-submit-wa,
.btn-submit-email {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.header-actions .btn-accent { width: 170px; min-height: 48px; padding: 10px 16px; white-space: nowrap; }
.header-actions .lang-switch { width: 84px; min-height: 48px; padding: 10px 12px; }
.hero-actions .btn,
.cta-banner-actions .btn,
.not-found-actions .btn { flex: 0 1 240px; width: 240px; min-height: 52px; }
.form-actions { align-items: stretch; gap: 12px; }
.form-actions > button { flex: 1 1 0; min-width: 0; }
.btn-submit-wa { border: 1px solid transparent; }
.btn-submit-email { border: 1px solid var(--panel-line); }
.btn:focus-visible,
.btn-submit-wa:focus-visible,
.btn-submit-email:focus-visible,
.float-whatsapp:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 680px) {
  .header-actions .btn-accent { display: none; }
  .hero-actions .btn,
  .cta-banner-actions .btn,
  .not-found-actions .btn { flex: 1 1 100%; width: 100%; max-width: 360px; }
  .form-actions > button { flex-basis: auto; width: 100%; }
}

/* Direct return-to-home link on phones */
.mobile-home-link { display: none; }
@media (max-width: 680px) {
  .mobile-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--panel-line);
    border-radius: var(--radius-btn);
    color: var(--text);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
  .mobile-home-link:hover,
  .mobile-home-link:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
  }
}
@media (max-width: 380px) {
  .mobile-home-link { padding-inline: 7px; font-size: .82rem; }
}

/* Compact mobile header and hero sizing */
@media (max-width: 680px) {
  .site-header .container { gap: 6px; }
  .header-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
  .header-actions { gap: 6px; }
  .header-actions .lang-switch { width: 56px; min-width: 56px; min-height: 40px; padding: 7px 8px; }
  .nav-toggle { display: flex; flex: 0 0 40px; width: 40px; height: 40px; }
  .mobile-home-link { min-width: 74px; min-height: 40px; padding: 0 8px; font-size: .85rem; }
  .hero { padding: 24px 0; }
  .hero-copy { gap: 12px; }
  .hero-kicker { font-size: .86rem; line-height: 1.5; }
  .hero-copy h1 { font-size: clamp(1.75rem, 7.2vw, 2.15rem); line-height: 1.25; }
  .lead { font-size: 1rem; line-height: 1.6; }
  .hero-actions { gap: 10px; }
  .hero-plate { padding: 8px; }
}
@media (max-width: 380px) {
  .header-actions .lang-switch { width: 50px; min-width: 50px; padding-inline: 6px; }
  .mobile-home-link { min-width: 68px; padding-inline: 5px; font-size: .8rem; }
  .hero-copy h1 { font-size: 1.7rem; }
  .hero-kicker { font-size: .82rem; }
  .lead { font-size: .96rem; }
}
