/* ==========================================================
   Rei Global Logistics - Premium Stylesheet
   ========================================================== */

:root {
  --primary: #0B3C5D;
  --secondary: #1E88E5;
  --accent: #F57C00;
  --bg: #F5F7FA;
  --dark: #082539;
  --text: #1E2A32;
  --muted: #6B7B88;
  --white: #ffffff;
  --shadow: 0 12px 35px rgba(11, 60, 93, 0.15);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  opacity: 0;
  overflow-x: hidden;
  transition: opacity 0.4s ease;
}

body.page-loaded {
  opacity: 1;
}

body.page-leave {
  opacity: 0;
}

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  color: var(--primary);
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  color: var(--muted);
}

/* =========================
   Utility
   ========================= */

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Header / Navbar
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
  position: relative;
}

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

.logo img {
  width: auto;
  height: 74px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links .btn-small {
  display: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--primary);
  transition: transform 0.3s ease;
}

/* =========================
   Buttons + Ripple
   ========================= */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: capitalize;
}

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

.btn-accent:hover {
  background: #e56f00;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

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

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: #0b2f47;
}

.btn-animated {
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.4); }
  70% { transform: translateY(-2px); box-shadow: 0 0 0 12px rgba(245, 124, 0, 0); }
  100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(245, 124, 0, 0); }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background: rgba(255, 255, 255, 0.45);
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* =========================
   Hero
   ========================= */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(11, 60, 93, 0.88), rgba(11, 60, 93, 0.55)),
    url("../images/hero.jpg") center/cover no-repeat;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 1s ease both;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  margin-bottom: 18px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.hero-actions .btn {
  min-height: 52px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  justify-content: center;
}

.hero-trust i {
  color: var(--accent);
  margin-right: 6px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Grid / Cards
   ========================= */

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 45px rgba(11, 60, 93, 0.2);
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 136, 229, 0.12);
  color: var(--secondary);
  font-size: 24px;
  margin-bottom: 16px;
}

.service-card i {
  font-size: 24px;
}

/* Curved accent for service cards only (screenshot style) */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: linear-gradient(90deg, #b21a1a 0%, var(--accent) 45%, var(--secondary) 100%);
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature i {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* =========================
   Stats
   ========================= */

.stats-section {
  background: var(--white);
}

.stat-card {
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary);
}

.stat-card p {
  color: var(--muted);
}

/* =========================
   Partner Logos
   ========================= */

.logo-strip {
  padding: 50px 0;
  background: var(--primary);
  color: var(--white);
}

.logo-strip h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 22px;
}

.logo-marquee {
  overflow: hidden;
}

.logo-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.logo-item {
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================
   Timeline
   ========================= */

.timeline {
  display: grid;
  gap: 26px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(30, 136, 229, 0.3);
}

.timeline-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
}

.timeline-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow);
  z-index: 2;
}

/* =========================
   Global Logistics
   ========================= */

.global-section {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(120deg, rgba(11, 60, 93, 0.9), rgba(11, 60, 93, 0.6)),
    url("../images/world-map.svg") center/cover no-repeat;
  color: var(--white);
  text-align: center;
}

.global-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 60, 93, 0.5);
}

.global-section .container {
  position: relative;
  z-index: 1;
}

.global-section h2 {
  color: var(--white);
}

.global-section p {
  color: rgba(255, 255, 255, 0.85);
}

/* =========================
   Testimonials
   ========================= */

.testimonial {
  background: var(--white);
}

.stars {
  color: var(--accent);
  margin-bottom: 12px;
}

.testimonial h4 {
  margin-top: 16px;
}

.testimonial span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================
   CTA
   ========================= */

.cta {
  background: linear-gradient(120deg, var(--secondary), var(--primary));
  color: var(--white);
  padding: 60px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 8px;
}

/* =========================
   Contact Preview
   ========================= */

.contact-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================
   Page Hero
   ========================= */

.page-hero {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(120deg, rgba(11, 60, 93, 0.85), rgba(11, 60, 93, 0.55)),
    url("../images/page-hero.jpg") center/cover no-repeat;
  color: var(--white);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
}

/* =========================
   Split Layout
   ========================= */

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.image-card {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================
   Services List
   ========================= */

.benefits {
  margin-top: 14px;
  list-style: none;
  color: var(--muted);
}

.benefits li {
  margin-bottom: 6px;
}

/* =========================
   Contact Page
   ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.contact-form-wrap {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

input, textarea {
  padding: 12px 14px;
  border: 1px solid #d4dbe1;
  border-radius: 8px;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: 2px solid rgba(30, 136, 229, 0.3);
  border-color: var(--secondary);
}

.contact-details {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-details ul {
  list-style: none;
  margin: 16px 0 24px;
}

.contact-details li {
  margin-bottom: 10px;
}

.business-hours h3 {
  margin-bottom: 10px;
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius);
}

/* =========================
   Floating WhatsApp Button
   ========================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.4);
}

/* =========================
   Footer
   ========================= */

.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.footer a {
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer ul {
  list-style: none;
  margin-top: 12px;
}

.footer li {
  margin-bottom: 8px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 14px;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1024px) {
  .section {
    padding: 72px 0;
  }

  .hero-content {
    max-width: 760px;
    padding-inline: 16px;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
  }

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

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

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

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .container {
    width: min(100% - 32px, 1200px);
  }

  .navbar {
    padding: 16px 0;
  }

  .nav-links,
  .navbar .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links.open {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: var(--dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: menuDrop 0.24s ease;
  }

  .nav-links.open a {
    color: var(--white);
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-links.open a:hover,
  .nav-links.open a:focus-visible,
  .nav-links.open a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
  }

  .nav-links.open .btn-small {
    display: inline-flex;
    justify-content: center;
    margin-top: 4px;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 72px;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.34);
  }

  .hero-content {
    max-width: 100%;
    padding-inline: 10px;
  }

  .hero-kicker {
    font-size: 0.78rem;
    letter-spacing: 1.6px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 7vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.96);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 12px 18px;
    font-size: 0.95rem;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .contact-preview,
  .contact-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .contact-form-wrap,
  .contact-details,
  .contact-preview {
    padding: 24px 20px;
  }

  .service-card {
    width: 100%;
  }

  .feature {
    padding: 20px 12px;
  }

  .timeline-step {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .footer {
    padding: 56px 0 104px;
  }
  .footer-brand img {
  width: auto;
  height: 25px;
  display: block;
  object-fit: contain;
  margin-bottom: 16px;
}

  .footer-grid,
  .footer-bottom,
  .socials {
    text-align: center;
    justify-content: center;
  }

  .footer-bottom p {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .footer-bottom a {
    display: inline-block;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 20px;
    font-size: 22px;
  }

  .logo-track {
    animation-duration: 28s;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 48px 0;
  }

  .container {
    width: min(100% - 24px, 1200px);
  }

  .logo {
    font-size: 1.05rem;
  }

  .hero {
    padding: 104px 0 64px;
  }

  .hero-content {
    padding-inline: 6px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-links.open {
    top: calc(100% + 8px);
    padding: 16px;
  }

  .card,
  .contact-form-wrap,
  .contact-details,
  .contact-preview {
    padding: 22px 18px;
  }

  .footer {
    padding-bottom: 112px;
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
