/* ==========================================================================
   MAFCO GROUP - Modern Advanced Future Contracting & Commercial
   Production Stylesheet - Clean, Fast, Responsive for cPanel Hosting
   ========================================================================== */

:root {
  --navy: #0A2540;
  --navy-dark: #06182a;
  --navy-light: #16385c;
  --gold: #f4d35e;
  --gold-hover: #e5be38;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --emerald: #10B981;
  --emerald-dark: #047857;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: 'Tajawal', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
  color: var(--slate-800);
  background-color: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

[dir="rtl"] {
  font-family: var(--font-arabic);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Utilities */
.bg-navy { background-color: var(--navy); }
.bg-navy-dark { background-color: var(--navy-dark); }
.bg-gold { background-color: var(--gold); }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-amber { color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 1rem;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(244, 211, 94, 0.4);
}
.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 211, 94, 0.5);
}

.btn-navy {
  background-color: var(--navy);
  color: #ffffff;
  border: 1px solid rgba(244, 211, 94, 0.4);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}
.btn-navy:hover {
  background-color: var(--navy-dark);
  transform: translateY(-2px);
  color: var(--gold);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover {
  background-color: var(--navy);
  color: #ffffff;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.top-bar {
  background-color: var(--navy-dark);
  color: var(--slate-300);
  font-size: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-contact-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate-200);
  transition: color 0.2s;
  font-family: monospace, monospace;
}

.top-contact-links a:hover {
  color: var(--gold);
}

.main-nav-bar {
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1100px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background-color: var(--slate-100);
}

.nav-link.active {
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
}

/* Mobile Menu Button & Drawer */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--navy);
  cursor: pointer;
}

@media (min-width: 1100px) {
  .mobile-menu-btn { display: none; }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open {
  display: block;
  opacity: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

[dir="rtl"] .drawer-content {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

.mobile-drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: var(--slate-800);
  background: var(--slate-50);
}

.drawer-link:hover, .drawer-link.active {
  background: var(--navy);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--slate-950);
  color: #ffffff;
  padding: 4rem 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 24, 42, 0.94) 0%, rgba(10, 37, 64, 0.86) 50%, rgba(2, 6, 23, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) { .hero-title { font-size: 3.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.25rem; } }

.hero-description {
  font-size: 1.05rem;
  color: var(--slate-200);
  margin-bottom: 2rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (min-width: 640px) { .hero-description { font-size: 1.25rem; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Stats Section */
.stats-bar {
  background-color: var(--navy);
  color: #ffffff;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }

.stat-box {
  padding: 1rem;
  background: rgba(6, 24, 42, 0.5);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: monospace, sans-serif;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate-300);
}

/* Grid & Cards */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--navy);
}

.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--slate-900);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(10, 37, 64, 0.9);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

[dir="rtl"] .card-badge {
  left: auto;
  right: 0.75rem;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Sections */
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--navy);
  background-color: rgba(10, 37, 64, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }

.section-subtitle {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-300);
  background-color: #ffffff;
  color: var(--slate-900);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.15);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: var(--navy);
  color: #ffffff;
  padding: 1.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 1rem;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-body {
  padding: 1.75rem;
  flex: 1;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #25D366;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.8125rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 1.5rem;
}

.whatsapp-float:hover {
  background-color: #20ba59;
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

/* Footer */
.site-footer {
  background-color: var(--navy);
  color: var(--slate-300);
  border-top: 4px solid var(--gold);
  margin-top: auto;
}

.footer-cta {
  background-color: var(--navy-dark);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
  padding: 4rem 0 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1.2fr 1fr 1.8fr; }
}

.footer-col-title {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8125rem;
}

.footer-links a {
  color: var(--slate-400);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  background-color: var(--navy-dark);
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: var(--slate-500);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Print Stylesheet */
@media print {
  .site-header, .site-footer, .whatsapp-float, .btn, .modal-backdrop {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
}
