/*
Theme Name: Badri International Courier
Theme URI: https://badriinternationalcourier.com
Author: Badri International Courier
Author URI: https://badriinternationalcourier.com
Description: Premium custom WordPress theme for Badri International Courier – safe, fast & reliable courier services.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: badri-courier
Tags: courier, shipping, logistics, business, responsive, custom-menu, custom-logo, featured-images
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ── CSS Variables ── */
:root {
  --bg: #f5f7fa;
  --fg: #1a2332;
  --card: #ffffff;
  --primary: #1a6dd4;
  --primary-fg: #ffffff;
  --muted: #f0f2f5;
  --muted-fg: #6b7a8d;
  --border: #e2e6ec;
  --gold: #d4a11a;
  --gold-fg: #1a2332;
  --navy: #162033;
  --navy-fg: #ffffff;
  --destructive: #e53e3e;
  --radius: 0.75rem;
  --shadow-card: 0 4px 24px -4px rgba(26,109,212,0.08);
  --shadow-elevated: 0 12px 40px -8px rgba(26,109,212,0.15);
  --gradient-hero: linear-gradient(135deg, #162033, #1a4a8a);
  --gradient-gold: linear-gradient(135deg, #d4a11a, #c08a10);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Utilities ── */
.container-narrow { max-width: 72rem; margin: 0 auto; }
.section-padding { padding: 4rem 1rem; }
@media (min-width: 768px) { .section-padding { padding: 6rem 2rem; } }
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-hero-gradient { background: var(--gradient-hero); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none;
}
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--gold-fg); }
.btn-gold:hover { opacity: 0.9; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
  background: transparent; border: 1px solid var(--border);
  color: var(--fg);
}
.btn-outline-dark:hover { background: var(--muted); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; padding: 0 1rem;
}
@media (min-width: 1024px) { .header-inner { padding: 0 2rem; } }
.site-logo { display: flex; align-items: center; gap: 0.5rem; }
.site-logo .logo-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: var(--primary-fg); font-weight: 800; font-size: 1rem;
}
.site-logo .logo-text {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem;
}
.site-logo .logo-text span { color: var(--primary); }

/* Navigation */
.main-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a {
  padding: 0.5rem 0.75rem; border-radius: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: var(--muted-fg);
  transition: all 0.2s;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: var(--primary); background: rgba(26,109,212,0.1);
}

/* Mobile menu */
.mobile-toggle {
  display: flex; padding: 0.5rem; background: none; border: none;
  cursor: pointer; font-size: 1.5rem;
}
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-nav {
  display: none; border-top: 1px solid var(--border);
  background: var(--card); padding: 1rem;
}
.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block; padding: 0.75rem 1rem; border-radius: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: var(--muted-fg);
}
.mobile-nav a:hover { color: var(--primary); }

/* ── Footer ── */
.site-footer { background: var(--navy); color: var(--navy-fg); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-heading {
  font-family: var(--font-heading); font-size: 0.875rem;
  font-weight: 600; color: var(--gold); margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; opacity: 0.8; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem; padding-top: 2rem; text-align: center;
  font-size: 0.875rem; opacity: 0.6;
}
.footer-contact { list-style: none; font-size: 0.875rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; opacity: 0.8; }

/* ── Cards ── */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-card); transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-4px); }
.card-body { padding: 1.5rem; }

/* ── Hero ── */
.hero { text-align: center; position: relative; overflow: hidden; }
.hero h1 {
  font-size: 2.25rem; font-weight: 800; color: #fff; margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.125rem; max-width: 42rem; margin: 0 auto 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  background: rgba(212,161,26,0.2); color: var(--gold);
  font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Section headers ── */
.section-label {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.section-label-primary { color: var(--primary); }
.section-label-gold { color: var(--gold); }
.section-title {
  font-size: 1.875rem; font-weight: 700; color: var(--fg); margin-bottom: 0;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* ── Icon boxes ── */
.icon-box {
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.5rem;
}
.icon-box-primary { background: rgba(26,109,212,0.1); color: var(--primary); }
.icon-box-gold { background: rgba(212,161,26,0.1); color: var(--gold); }
.icon-circle {
  width: 4rem; height: 4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.75rem;
}

/* ── Testimonials ── */
.stars { color: var(--gold); margin-bottom: 1rem; }
.testimonial-text { font-size: 0.875rem; color: var(--muted-fg); font-style: italic; margin-bottom: 1rem; }
.testimonial-name { font-weight: 600; font-size: 0.875rem; color: var(--fg); }
.testimonial-role { font-size: 0.75rem; color: var(--muted-fg); }

/* ── Stats ── */
.stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
@media (min-width: 768px) { .stat-value { font-size: 2.5rem; } }
.stat-label { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* ── Blog ── */
.post-card .post-category {
  display: inline-block; font-size: 0.75rem; font-weight: 500;
  color: var(--primary); background: rgba(26,109,212,0.1);
  padding: 0.25rem 0.5rem; border-radius: 0.25rem;
}
.post-card h3 { margin-top: 0.75rem; margin-bottom: 0.5rem; font-size: 1rem; font-weight: 600; }
.post-card h3 a { transition: color 0.2s; }
.post-card h3 a:hover { color: var(--primary); }
.post-card .post-excerpt { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 1rem; }
.post-meta { font-size: 0.75rem; color: var(--muted-fg); display: flex; gap: 1rem; }
.featured-bar { height: 0.25rem; background: var(--gold); border-radius: var(--radius) var(--radius) 0 0; }

/* ── Single Post ── */
.entry-content h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 1rem; }
.entry-content p { color: var(--muted-fg); line-height: 1.8; margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { color: var(--muted-fg); margin-bottom: 0.5rem; }
.entry-content strong { color: var(--fg); }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 500;
  margin-bottom: 0.375rem; color: var(--fg);
}
.form-control {
  width: 100%; padding: 0.625rem 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.875rem; font-family: var(--font-body);
  background: var(--card); color: var(--fg);
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,109,212,0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ── Tracking ── */
.tracking-input {
  display: flex; gap: 0.75rem; max-width: 28rem; margin: 0 auto;
}
.tracking-input input {
  flex: 1; padding: 0.75rem 1rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1);
  color: #fff; font-size: 0.875rem;
}
.tracking-input input::placeholder { color: rgba(255,255,255,0.5); }
.tracking-timeline { position: relative; }
.timeline-item { display: flex; gap: 1rem; }
.timeline-dot {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.875rem;
}
.timeline-dot.completed { background: var(--primary); color: var(--primary-fg); }
.timeline-dot.pending { background: var(--muted); color: var(--muted-fg); }
.timeline-line {
  width: 2px; min-height: 2.5rem; margin: 0.25rem auto;
}
.timeline-line.completed { background: var(--primary); }
.timeline-line.pending { background: var(--border); }
.timeline-content { padding-bottom: 1.5rem; }

/* ── Services detail ── */
.service-block { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .service-block { grid-template-columns: 1fr 1fr; } }
.service-features { background: var(--muted); border-radius: var(--radius); padding: 1.5rem; }
.feature-list { list-style: none; }
.feature-list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 0.5rem;
}
.feature-list li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.benefit-list li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* ── Contact info ── */
.contact-info-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: rgba(26,109,212,0.1); display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.125rem; color: var(--primary);
}
.contact-label { font-weight: 600; font-size: 0.875rem; color: var(--fg); }
.contact-value { font-size: 0.875rem; color: var(--muted-fg); }
.contact-value a:hover { color: var(--primary); }

/* ── WhatsApp Button ── */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-elevated); transition: transform 0.2s;
  font-size: 1.5rem; animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── 404 ── */
.page-404 {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center;
}

/* ── Search ── */
.search-form { display: flex; gap: 0.5rem; max-width: 32rem; margin: 0 auto; }
.search-form input { flex: 1; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination a, .pagination span {
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-size: 0.875rem; border: 1px solid var(--border);
}
.pagination .current { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* ── WordPress alignment ── */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }

/* ── Accessibility ── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute;
  height: 1px; width: 1px; overflow: hidden;
}
