/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Updated navigation with professional blue theme inspired by american-trading.com */
/* Navigation */
.navbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* allow mobile dropdown to anchor */
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
}

.lang-switch a {
  color: #1e3a8a;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.lang-switch a:hover {
  background: #e0e7ff;
}

.lang-switch a.active {
  background: #fbbf24;
  color: #1e293b;
}

.nav-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

/* Added text-transform for navigation links to ensure Title Case */
.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  text-transform: capitalize;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: 0.3s;
}

/* Hamburger active (turn into an X) */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Updated hero with professional blue gradient theme */
/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231e3a8a" width="1200" height="600"/><g fill-opacity="0.08"><circle fill="%23fff" cx="200" cy="100" r="150"/><circle fill="%23fff" cx="800" cy="400" r="200"/><circle fill="%23fff" cx="1000" cy="150" r="100"/></g></svg>');
  background-size: cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.6;
}

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

/* Updated buttons with professional styling */
/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #1e3a8a;
}

.btn-light {
  background-color: white;
  color: #1e3a8a;
}

.btn-light:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Highlights Section */
.highlights {
  padding: 5rem 0;
  background: #f8fafc;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.12);
  border-color: #2563eb;
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1e3a8a;
  font-weight: 700;
}

.highlight-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.7;
}

/* Trade Categories */
.trade-categories {
  padding: 5rem 0;
  background-color: #fff;
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.trade-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.trade-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.trade-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Make category icons bigger and clearer */
.trade-card .trade-icon img {
  width: 110px;
  height: 110px;
  display: inline-block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}

.trade-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Featured Brand */
.featured-brand {
  padding: 5rem 0;
  background: #f8fafc;
}

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

.featured-text h2 {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pink-heading {
  font-size: 3rem;
  font-weight: 900;
  color: #e91e8c;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.featured-text p {
  font-size: 1.05rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.pink-stuff-showcase {
  background: linear-gradient(135deg, #e91e8c 0%, #ff69b4 100%);
  height: 300px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(233, 30, 140, 0.25);
}

/* Brands Gallery */
.brands-gallery {
  padding: 5rem 0;
  background: #fff;
}

.brands-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.brand-item {
  background: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}

.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.12);
  border-color: #2563eb;
}

/* Jordanian Exports */
.jordanian-exports {
  padding: 5rem 0;
  background: #f8fafc;
}

.export-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.export-item {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
  transition: all 0.3s;
}

.export-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

/* Updated CTA section with professional blue gradient */
/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Updated footer with professional dark blue theme */
/* Footer */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* About Page */
.about-hero,
.brands-hero,
.contact-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.about-hero h1,
.brands-hero h1,
.contact-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.about-content,
.brands-content {
  padding: 5rem 0;
}

.about-section {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e3a8a;
  font-weight: 700;
}

.about-section p {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.value-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.12);
  border-color: #2563eb;
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e3a8a;
  font-weight: 700;
}

/* Brands Page */
.brands-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.featured-brand-large {
  background: linear-gradient(135deg, #ffe5f0 0%, #fff0f7 100%);
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.1);
}

.featured-header h3 {
  color: #64748b;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.featured-header h2 {
  font-size: 3rem;
  color: #e91e8c;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.featured-description p {
  font-size: 1.05rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.category-grid,
.origins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card,
.origin-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}

.category-card:hover,
.origin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.12);
  border-color: #2563eb;
}

.category-card h3,
.origin-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e3a8a;
  font-weight: 700;
}

.category-card ul {
  list-style: none;
}

.category-card li {
  padding: 0.5rem 0;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.category-card li:last-child {
  border-bottom: none;
}

/* Contact Page */
.contact-content {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* Center Arabic contact grid within the page */
html[dir="rtl"] .contact-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e3a8a;
  font-weight: 700;
}

.info-block {
  margin-bottom: 2rem;
}

.info-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1e3a8a;
  font-weight: 600;
}

.info-block p {
  color: #64748b;
}

.info-block a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.info-block a:hover {
  text-decoration: underline;
}

.contact-cta {
  margin-top: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
}

.form-group textarea {
  resize: vertical;
}

/* Inline status message for form submissions */
.form-status {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #16a34a; /* green for success */
}
.form-status.success { color: #16a34a; }
/* Thank you banner */
.form-thanks {
  margin: 0 0 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid #16a34a;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 8px;
}
/* optional red text if JS sets inline color for error */

.map-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.map-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e3a8a;
  font-weight: 700;
}

.map-section p {
  text-align: center;
  color: #64748b;
}

.map-placeholder {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    /* hidden by default on mobile; revealed via .active */
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 0.5rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .hamburger {
    display: flex;
  }

  .nav-link {
    padding: 0.9rem 0.9rem;
    border-radius: 6px;
  }

  .lang-switch a { font-size: 0.8rem; padding: 5px 8px; }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .featured-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Keep Arabic contact grid centered on small screens */
  html[dir="rtl"] .contact-grid {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .pink-heading {
    font-size: 2rem;
  }
}

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

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* Shorter hero on mobile for better first paint */
  .hero {
    min-height: 440px;
    padding: 2.5rem 0;
  }
}

/* Prevent background scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Center footer sections on Arabic pages */
html[dir="rtl"] .footer .footer-content {
  justify-items: center;
}
html[dir="rtl"] .footer .footer-section,
html[dir="rtl"] .footer .footer-bottom {
  text-align: center;
}

/* Force phone numbers to render LTR inside RTL pages */
.phone-ltr,
a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
}
