/* 
  M.S Traders International - Hims.com Inspired Design System
  Ultra-fast, Responsive, Clean HTML/CSS/JS Architecture
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Hims Inspired Palette */
  --bg-main: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-subtle: #F3EFE9;
  --bg-dark: #0F172A;
  
  --text-main: #121619;
  --text-muted: #5C646B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --accent-primary: #1E3A8A;   /* Deep Royal Slate */
  --accent-glass: #0EA5E9;     /* Crystal Sky Blue */
  --accent-emerald: #059669;   /* WhatsApp Green / Trust */
  --accent-warm: #C86D51;      /* Warm Copper Accent */
  
  --border-light: #E7E1D7;
  --border-focus: #2563EB;
  
  --shadow-sm: 0 2px 8px rgba(18, 22, 25, 0.04);
  --shadow-md: 0 8px 24px rgba(18, 22, 25, 0.06);
  --shadow-lg: 0 16px 40px rgba(18, 22, 25, 0.1);
  --shadow-hover: 0 20px 48px rgba(14, 165, 233, 0.15);

  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ur: 'Noto Naskh Arabic', 'Amiri', 'Tajawal', serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Utility Containers */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

/* Typography Helpers */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: #EBF5FF;
  color: #0284C7;
  border: 1px solid #BAE6FD;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

[dir="rtl"] .tag-badge {
  font-weight: 700;
}

.tag-badge-warm {
  background-color: #FEF3C7;
  color: #D97706;
  border-color: #FDE68A;
}

/* Header & Navigation */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
}

.top-bar-link {
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.top-bar-link:hover {
  color: var(--text-white);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  transition: var(--transition);
}

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

/* Brand Logo Styling */
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--accent-primary);
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: var(--transition);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.mobile-only-quote {
  display: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-glass);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher Pill */
.lang-switch-btn {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  transition: var(--transition);
}

.lang-switch-btn:hover {
  background-color: var(--bg-card);
  border-color: var(--accent-glass);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: var(--accent-emerald);
  color: var(--text-white);
}

.btn-whatsapp:hover {
  background-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--text-main);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: var(--text-white);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* HERO SECTION - Hims Aesthetic */
.hero-section {
  padding: 4rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-headline {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

[dir="rtl"] .hero-headline {
  font-size: 2.8rem;
  line-height: 1.35;
}

.hero-headline .brand-title {
  display: block;
}

.hero-headline .gradient-text {
  display: block;
  color: var(--accent-primary);
  background: linear-gradient(135deg, #1E3A8A 0%, #0EA5E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheading {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  width: 100%;
}

/* Contact Fast Action Cards in Hero */
.contact-hero-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.contact-pill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.contact-phone {
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Hero Visual Box */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
}

.hero-image-wrapper img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[dir="rtl"] .hero-floating-badge {
  left: 2rem;
  right: 2rem;
}

.floating-badge-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
}

.floating-badge-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Trust Metric Highlights */
.trust-bar {
  background-color: var(--bg-card);
  border-y: 1px solid var(--border-light);
  padding: 2.5rem 0;
  margin-bottom: 4rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.trust-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.trust-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SECTIONS COMMON */
.section {
  padding: 5rem 0;
}

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

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

[dir="rtl"] .section-title {
  font-size: 2.2rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ABOUT US SECTION */
.about-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-lang-badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-glass);
}

.about-paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main);
}

.about-divider {
  height: 100%;
  width: 1px;
  background-color: var(--border-light);
}

/* PRODUCTS / SERVICES GRID (Hims Card Style) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-glass);
}

.product-img-box {
  height: 220px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

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

.product-card:hover .product-img-box img {
  transform: scale(1.06);
}

.product-badge-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

[dir="rtl"] .product-badge-top {
  left: auto;
  right: 1rem;
}

.product-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

.product-title-en {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.product-title-ur {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.4;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.product-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-rate-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* INTERACTIVE GLASS QUOTE CALCULATOR */
.calculator-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calculator-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.calculator-info p {
  color: #94A3B8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.calculator-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
}

.form-select, .form-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent-glass);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* CONTACT CARDS SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card-large {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.contact-card-large:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-glass);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-big-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #1E3A8A, #0EA5E9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

.contact-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.contact-card-role {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-card-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-actions .btn {
  flex: 1;
}

.map-card {
  margin-top: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* FLOATING WHATSAPP BUTTON */
.floating-wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  cursor: pointer;
}

[dir="rtl"] .floating-wa-btn {
  right: auto;
  left: 2rem;
}

.floating-wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

/* FOOTER */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #94A3B8;
  margin-top: 1rem;
  max-width: 400px;
  font-size: 0.95rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-white);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-glass);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748B;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .hero-grid, .calculator-grid, .about-card, .contact-grid {
    grid-template-columns: 1fr;
  }

  .calculator-grid > * {
    min-width: 0;
  }

  .calculator-section {
    padding: 3rem 2rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-subheading {
    margin: 0 auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-image-wrapper img {
    height: 380px;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  #nav-quote-btn {
    display: none;
  }

  .mobile-only-quote {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }

  .mobile-only-quote .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
    gap: 1.25rem;
    align-items: center;
    z-index: 999;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.5rem 0;
  }

  .top-bar-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .logo-img {
    height: 40px;
  }

  .logo {
    font-size: 1.15rem;
    gap: 0.6rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .about-card {
    padding: 2rem 1.5rem;
  }
  
  .map-card {
    padding: 1.5rem;
  }

  .calculator-section {
    padding: 2.5rem 1.5rem;
  }

  .calculator-form {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-pills {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contact-actions {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    text-align: center;
  }

  .product-footer .btn {
    width: 100%;
  }

  .hero-image-wrapper img {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .calculator-info h2 {
    font-size: 1.65rem;
  }

  .logo span:last-child {
    font-size: 0.65rem !important;
  }

  .calculator-section {
    padding: 2rem 1rem;
  }

  .calculator-form {
    padding: 1.25rem 1rem;
  }
}
