/* ==========================================================================
   FINETECH B2B THEME - MODERN ATLAS DISTRIBUTORS STYLE
   ========================================================================== */

:root {
  --primary: #0b3954;
  --primary-dark: #072538;
  --secondary: #e65100;
  --secondary-hover: #c44300;
  --accent: #087e8b;
  --dark: #1e293b;
  --light-gray: #f8fafc;
  --border-color: #e2e8f0;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 57, 84, 0.12);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ------------------- Top Utility Bar ------------------- */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding: 8px 5%;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar .contact-info span {
  margin-right: 20px;
}
.top-bar .contact-info i {
  color: var(--secondary);
  margin-right: 6px;
}

/* ------------------- Header & Navigation ------------------- */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1350px;
  margin: auto;
}
.logo {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.logo span {
  color: var(--secondary);
}
.logo small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary);
  bottom: -4px;
  left: 0;
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.btn-quote {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.25);
  transition: var(--transition);
}
.btn-quote::after {
  display: none !important;
}
.btn-quote:hover {
  background-color: var(--secondary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.35);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
}

/* ------------------- Hero Slider (16:9 Ratio Container) ------------------- */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary-dark);
}
.slides-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  width: 100%;
}
.slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 5% 90px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 37, 56, 0.92) 0%, rgba(11, 57, 84, 0.78) 100%);
  z-index: 1;
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: auto;
  animation: slideFadeUp 0.8s ease-out;
}
.slide-badge {
  display: inline-block;
  background: rgba(230, 81, 0, 0.25);
  border: 1px solid var(--secondary);
  color: #ff9d5c;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.slide-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.slide-content p {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  color: var(--white);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}
.slider-btn:hover {
  background: var(--secondary);
}
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--secondary);
  width: 32px;
  border-radius: 10px;
}

/* ------------------- Floating Metrics Bar ------------------- */
.metrics-bar {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  max-width: 1100px;
  margin: -45px auto 60px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 30px 20px;
  position: relative;
  z-index: 15;
  border-top: 5px solid var(--secondary);
}
.metric-item {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid var(--border-color);
}
.metric-item:last-child {
  border-right: none;
}
.metric-item h3 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}
.metric-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ------------------- Common Section Styles ------------------- */
section {
  padding: 70px 5%;
  max-width: 1350px;
  margin: auto;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 14px;
  display: inline-block;
  font-weight: 700;
}
.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1rem;
}

/* ------------------- Product & Category Cards (4:3 Image Ratio) ------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .card-img-wrap img {
  transform: scale(1.08);
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.card-body h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.card-link:hover {
  color: var(--secondary);
  gap: 12px;
}

/* ------------------- Brand Grid (1:1 Ratio Square Logos) ------------------- */
.brands-section {
  background-color: var(--light-gray);
  padding: 70px 5%;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1350px;
  margin: auto;
}
.brand-card {
  background: var(--white);
  padding: 25px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}
.brand-logo-wrap {
  width: 90px;
  height: 90px;
  aspect-ratio: 1 / 1;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-card h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.brand-card span {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
}

/* ------------------- Industries Section ------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.industry-box {
  background: var(--light-gray);
  padding: 30px 25px;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  transition: var(--transition);
}
.industry-box:hover {
  transform: translateX(6px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.industry-box i {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 15px;
}
.industry-box h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.industry-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ------------------- Associated Concerns (3:2 Ratio) ------------------- */
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.concern-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.concern-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.concern-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eee;
}
.concern-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.concern-card:hover .concern-img-wrap img {
  transform: scale(1.06);
}
.concern-body {
  padding: 25px;
}
.concern-card .badge {
  display: inline-block;
  background: #e0f2fe;
  color: var(--accent);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}
.concern-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.concern-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ------------------- Forms & Contact ------------------- */
.enquiry-container {
  max-width: 850px;
  margin: auto;
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 45px 35px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.1);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.checkbox-label {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--light-gray);
  padding: 40px 30px;
  border-radius: 12px;
  border-left: 5px solid var(--primary);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 16px;
}
.contact-item i {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-top: 3px;
}

/* ------------------- Footer ------------------- */
footer {
  background-color: #04141e;
  color: #94a3b8;
  padding: 70px 5% 25px 5%;
  font-size: 0.92rem;
}
.footer-container {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 8px;
  display: inline-block;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 6px;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  font-size: 0.85rem;
}

/* ------------------- Animation Utilities ------------------- */
@keyframes slideFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------- Mobile Responsive Breakpoints ------------------- */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    z-index: 1001;
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: block;
    z-index: 1002;
  }
  .top-bar {
    display: none;
  }
  .slide-content h1 {
    font-size: 2.1rem;
  }
  .form-grid, .contact-grid, .checkbox-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .slide-content h1 {
    font-size: 1.7rem;
  }
  .slide-content p {
    font-size: 0.95rem;
  }
  .slide {
    padding: 80px 5% 70px;
  }
  .metrics-bar {
    grid-template-columns: 1fr 1fr;
  }
  .metric-item {
    border-right: none;
    padding: 10px;
  }
}
