/* Tatweer Group — standalone static styles
   Deep Sapphire (#0B2143) & Rich Gold theme. Bilingual EN (LTR) / AR (RTL). */

:root {
  --bg: #f8fafc;
  --fg: #0f1729;
  --primary: #0b2143;
  --primary-hover: #0a1c3a;
  --primary-fg: #f7fafc;
  --accent: #d9a520;
  --muted: #eef2f6;
  --muted-fg: #64748b;
  --secondary: #f1f5f9;
  --border: #e2e8f0;
  --card: #ffffff;
  --teal: #096877;
  --font: 'Outfit', system-ui, sans-serif;
}

[dir="rtl"] {
  --font: 'Cairo', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.icon {
  width: 1em; height: 1em;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.logo-tile {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.25rem; color: #0f1729;
  background: linear-gradient(145deg, #EAD08A 0%, #D4A52A 45%, #B8860B 100%);
}
.main-nav { display: none; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: color 0.2s; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -28px;
  height: 2px; background: var(--primary); border-radius: 2px 2px 0 0;
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-btn {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.875rem; font-weight: 500;
  color: var(--muted-fg); background: none; border: none; cursor: pointer;
  padding: 0.5rem 0.75rem; border-radius: 6px; transition: all 0.2s;
}
.lang-btn .icon { width: 1rem; height: 1rem; }
.lang-btn:hover { color: var(--primary); background: var(--muted); }
.menu-btn { display: flex; background: none; border: none; cursor: pointer; color: var(--fg); padding: 0.5rem; }
.menu-btn .icon { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) { .menu-btn { display: none; } }
.mobile-nav { display: none; flex-direction: column; padding: 0.5rem 1rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 1rem 0; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid rgba(226, 232, 240, 0.5); }
.mobile-nav a:last-child { border-bottom: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 56px; padding: 0 2rem; font-family: inherit; font-size: 1rem; font-weight: 500;
  border-radius: 6px; cursor: pointer; transition: all 0.2s;
  border: 1px solid transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--bg); border-color: var(--border); color: var(--fg); }
.btn-outline:hover { background: var(--accent); color: #0f1729; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; padding: 6rem 0 8rem; text-align: center; }
.hero-max { max-width: 56rem; margin: 0 auto; }
.hero h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; line-height: 1.1; }
.hero p { font-size: 1.25rem; color: var(--muted-fg); max-width: 42rem; margin: 0 auto 2.5rem; line-height: 1.6; }
.hero .actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; }
.hero .blob { position: absolute; width: 24rem; height: 24rem; border-radius: 9999px; filter: blur(80px); z-index: 0; }
.hero .blob-1 { top: -8rem; right: -8rem; background: rgba(11, 33, 67, 0.05); }
.hero .blob-2 { bottom: -8rem; left: -8rem; background: rgba(217, 165, 32, 0.06); }
.hero .container { position: relative; z-index: 1; }
@media (min-width: 640px) { .hero .actions { flex-direction: row; } }
@media (min-width: 768px) { .hero { padding: 9rem 0 12rem; } .hero h1 { font-size: 4.5rem; } .hero p { font-size: 1.5rem; } }

/* Stats */
.stats { padding: 4rem 0; background: var(--primary); color: var(--primary-fg); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 1.5rem; }
.stat .icon { width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--accent); }
.stat .num { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat .lbl { color: rgba(247, 250, 252, 0.8); }
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat + .stat { border-inline-start: 1px solid rgba(247, 250, 252, 0.2); }
}

/* Generic sections */
.section { padding: 6rem 0; }
.section-secondary { background: rgba(241, 245, 249, 0.5); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 4rem; }
.eyebrow { font-size: 0.875rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-head h2, .section-head h3 { font-size: 2rem; font-weight: 700; }
.section-head p { margin-top: 1rem; font-size: 1.25rem; color: var(--muted-fg); }
@media (min-width: 768px) { .section-head h2, .section-head h3 { font-size: 3rem; } }

/* Portfolio cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--border); border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: all 0.3s; overflow: hidden;
}
.card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1); transform: translateY(-4px); }
.card-body { padding: 2.5rem; display: flex; flex-direction: column; height: 100%; }
.biz-logo { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 1.5rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.biz-logo.mal { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #22C55E 0%, #0D9488 100%); color: #fff; }
.biz-logo.mal .icon { width: 1.75rem; height: 1.75rem; stroke-width: 3; }
.biz-logo.letter { display: flex; align-items: center; justify-content: center; background: rgba(11, 33, 67, 0.1); color: var(--primary); font-weight: 700; font-size: 1.5rem; }
.card h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.card .tagline { font-size: 0.875rem; font-weight: 500; color: var(--accent); margin-bottom: 1rem; }
.card .desc { color: var(--muted-fg); margin-bottom: 2rem; flex-grow: 1; line-height: 1.6; }
.visit { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--primary); margin-top: auto; transition: color 0.2s; }
.visit:hover { color: var(--accent); }
.visit .icon { width: 1rem; height: 1rem; }

/* About */
.page-hero-dark { background: var(--primary); color: var(--primary-fg); padding: 6rem 0; }
.page-hero-dark .inner { max-width: 48rem; }
.page-hero-dark h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.page-hero-dark p { font-size: 1.25rem; color: rgba(247, 250, 252, 0.8); line-height: 1.6; }
@media (min-width: 768px) { .page-hero-dark h1 { font-size: 3.75rem; } .page-hero-dark p { font-size: 1.5rem; } }
.prose-block { max-width: 56rem; margin: 0 auto; }
.prose-block h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.prose-block p { color: var(--muted-fg); line-height: 2; font-size: 1.125rem; }
@media (min-width: 768px) { .prose-block h2 { font-size: 3rem; } }
.mv-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .mv-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.mv-card { background: var(--card); padding: 2.5rem; border-radius: 1rem; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.mv-icon { width: 64px; height: 64px; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.mv-icon .icon { width: 2rem; height: 2rem; }
.mv-icon.gold { background: rgba(217, 165, 32, 0.1); color: var(--accent); }
.mv-icon.blue { background: rgba(11, 33, 67, 0.1); color: var(--primary); }
.mv-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.mv-card p { color: var(--muted-fg); line-height: 1.6; font-size: 1.125rem; }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value { text-align: center; padding: 2rem; }
.value-icon { width: 80px; height: 80px; border-radius: 9999px; background: rgba(11, 33, 67, 0.05); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.value-icon .icon { width: 2.5rem; height: 2.5rem; }
.value h4 { font-size: 1.25rem; font-weight: 700; }

/* Contact */
.page-hero-light { background: rgba(241, 245, 249, 0.3); padding: 5rem 0; border-bottom: 1px solid var(--border); text-align: center; }
.page-hero-light .inner { max-width: 48rem; margin: 0 auto; }
.page-hero-light h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.page-hero-light p { font-size: 1.125rem; color: var(--muted-fg); line-height: 1.6; }
@media (min-width: 768px) { .page-hero-light h1 { font-size: 3rem; } .page-hero-light p { font-size: 1.25rem; } }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; gap: 6rem; } }
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-info p { color: var(--muted-fg); font-size: 1.125rem; margin-bottom: 1.5rem; line-height: 1.6; }
.contact-info a { color: var(--primary); }
.contact-info a:hover { text-decoration: underline; }
.partner-box { padding: 2rem; background: var(--primary); color: var(--primary-fg); border-radius: 1rem; margin-top: 3rem; }
.partner-box h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.partner-box p { opacity: 0.8; line-height: 1.6; }
.form-card { background: var(--card); padding: 2rem; border-radius: 1.5rem; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.form-card h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } .form-card { padding: 3rem; } }
.field { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.form-row .field { margin-bottom: 0; }
.field label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.875rem; padding: 0.625rem 0.75rem;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--fg);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.8125rem; color: var(--muted-fg); margin-top: 1rem; }
.btn-submit { margin-top: 0.5rem; }

/* Footer */
.site-footer { background: var(--fg); color: var(--bg); padding: 3rem 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .site-footer { padding: 4rem 0; } .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-brand .brand { margin-bottom: 1rem; color: #fff; }
.footer-tagline { color: rgba(148, 163, 184, 0.7); max-width: 24rem; margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; }
.footer-col h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; color: var(--primary-fg); }
.footer-links, .footer-contact { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a, .footer-contact li { color: rgba(148, 163, 184, 0.7); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(226, 232, 240, 0.2); }
.footer-bottom p { font-size: 0.875rem; color: rgba(148, 163, 184, 0.5); }
