/* =============================================
   TRIVENI LOGISTICS — Global Styles
   ============================================= */

:root {
  --primary:    #0d47a1;
  --primary-lt: #1565c0;
  --accent:     #f57c00;
  --accent-lt:  #ff9800;
  --dark:       #1a1a2e;
  --light:      #f4f6fb;
  --text:       #333;
  --muted:      #666;
  --white:      #ffffff;
  --border:     #dde3ef;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(13,71,161,.12);
  --transition: .28s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.navbar .brand .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  padding: .3rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent-lt);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-content { position: relative; max-width: 820px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: .35rem 1.1rem;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -.5px;
}

.hero h1 span { color: var(--accent-lt); }

.hero p {
  font-size: 1.15rem;
  opacity: .88;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(245,124,0,.45);
}
.btn-primary:hover {
  background: var(--accent-lt);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,124,0,.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── SECTIONS ── */
section { padding: 5rem 1.5rem; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .tag {
  display: inline-block;
  background: rgba(13,71,161,.1);
  color: var(--primary);
  border-radius: 50px;
  padding: .3rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .6rem;
}
.section-header p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ── SERVICES GRID ── */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}

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

/* ── WHY CHOOSE US ── */
.why { background: var(--light); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.why-card .num {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.why-card p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }

/* ── CONTACT ── */
.contact { background: var(--white); }
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.contact-card .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.contact-card h4 { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.contact-card a, .contact-card p { font-size: 1rem; font-weight: 600; color: var(--dark); word-break: break-all; }
.contact-card a:hover { color: var(--primary); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 2.4rem 1.5rem;
  font-size: .88rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  list-style: none;
}

footer .footer-links a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
footer .footer-links a:hover { color: var(--accent-lt); }

footer .footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .4rem;
}

/* ── LEGAL PAGES ── */
.legal-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .5rem; }
.legal-hero p { opacity: .8; }

.legal-content {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2rem 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
}

.legal-content p, .legal-content li {
  color: var(--muted);
  margin-bottom: .6rem;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal-content strong { color: var(--dark); }

.legal-content .contact-box {
  background: rgba(13,71,161,.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin-top: 2rem;
}
.legal-content .contact-box p { margin: .2rem 0; }

/* ── RESPONSIVE NAV ── */
@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .navbar .brand span { display: none; }
}
