/* ==========================================================================
   MARIMEX GLOBAL PVT. LTD. — OFFICIAL STANDALONE STYLESHEET
   A company of QHS GROUPS | Navigating Success Worldwide.
   ========================================================================== */

:root {
  --color-primary: #0369a1;
  --color-primary-dark: #075985;
  --color-primary-light: #38bdf8;
  --color-accent: #f59e0b;
  --color-accent-dark: #b45309;
  --color-navy: #0f172a;
  --color-navy-dark: #020617;
  --color-bg-light: #f8fafc;
  --color-card-border: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 10px 15px -3px rgba(3, 105, 161, 0.3);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #0f172a;
}

.btn-accent:hover {
  background-color: #fbbf24;
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

/* 1. Header & Top Utility Strip */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-card-border);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 1.25rem 0;
  gap: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-container img {
  height: 52px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

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

.nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 9999px;
}

/* Services Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  width: 280px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  list-style: none;
  z-index: 110;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.nav-dropdown-item a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.78125rem;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.2s ease;
}

.nav-dropdown-item a:hover {
  background-color: #f0f9ff;
  color: var(--color-primary);
}

.nav-dropdown-item small {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-main);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
}

/* 2. Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--color-navy-dark);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: softDrift 28s ease-in-out infinite alternate;
}

@keyframes softDrift {
  0% { transform: scale(1.02); }
  50% { transform: scale(1.045) translate(-0.3%, -0.2%); }
  100% { transform: scale(1.02) translate(0.2%, 0.1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.45) 55%, rgba(2, 6, 23, 0.1) 100%),
              linear-gradient(to top, rgba(2, 6, 23, 0.8) 0%, transparent 60%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  padding: 5rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: rgba(3, 105, 161, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--color-primary-light);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: #cbd5e1;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 650px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Fraction-of-time Progress Bar */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(3, 105, 161, 0.3);
  z-index: 20;
}

.hero-progress-line {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #0284c7, #38bdf8, #fbbf24);
  transition: width 0.1s linear;
}

/* 3. Section Styling */
.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--color-navy);
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
}

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

.section-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-dark .section-kicker {
  color: var(--color-primary-light);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-dark .section-title {
  color: #ffffff;
}

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

.section-dark .section-desc {
  color: #94a3b8;
}

/* 4. Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background-color: #020617;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.15);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  color: #ffffff;
  font-family: monospace;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding-top: 0.75rem;
}

/* 5. Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-col;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 20px 35px -10px rgba(2, 132, 199, 0.15), 0 0 20px 2px rgba(56, 189, 248, 0.2);
}

.service-card h3 {
  font-size: 1.125rem;
  margin: 1rem 0 0.5rem 0;
}

.service-card p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* 6. Testimonials Slider */
.testimonial-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-weight: 300;
  font-style: italic;
  color: #f8fafc;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 7. Forms */
.form-card {
  background: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
}

/* 8. Footer */
.site-footer {
  background-color: var(--color-navy-dark);
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 5rem 0 2rem 0;
  font-size: 0.8125rem;
}

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

.footer-logo-card {
  display: inline-block;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e2e8f0;
}

.footer-logo-card img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

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

.social-icons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  background-color: #0f172a;
  border: 1px solid #1e293b;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  color: #ffffff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
