/* Top10 Packers and Movers - Main Stylesheet */
:root {
  --primary: #e67e22;
  --primary-dark: #d35400;
  --primary-light: #f39c12;
  --secondary: #2c3e50;
  --accent: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #dee2e6;
  --text: #2d3748;
  --text-muted: #718096;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Typography */
h1,h2,h3,h4,h5,h6 { color: var(--secondary); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

/* Navbar */
.navbar {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 1000;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.5rem; height: 64px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: var(--secondary);
}
.navbar-brand span { color: var(--primary); }
.navbar-brand img { height: 36px; }
.navbar-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.navbar-nav a {
  padding: .4rem .85rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: background .2s, color .2s;
}
.navbar-nav a:hover, .navbar-nav a.active { background: var(--bg); color: var(--primary); }
.navbar-search { flex: 1; max-width: 340px; position: relative; }
.navbar-search input {
  width: 100%; padding: .45rem 1rem .45rem 2.5rem;
  border: 1.5px solid var(--border); border-radius: 25px;
  font-size: .9rem; background: var(--bg); outline: none;
  transition: border-color .2s;
}
.navbar-search input:focus { border-color: var(--primary); }
.navbar-search .search-icon {
  position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: #1a252f; color: #fff; }
.btn-success { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-success:hover { background: #219a52; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-sm { padding: .3rem .7rem; font-size: .82rem; }
.btn-lg { padding: .75rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-google {
  background: #fff; color: #333; border: 2px solid var(--border);
  font-weight: 600; display: flex; align-items: center; gap: .6rem;
}
.btn-google:hover { background: #f1f3f4; color: #333; border-color: #bbb; }
.btn-google img { width: 20px; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--text-muted); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 60%, #2d3e50 100%);
  color: #fff; padding: 5rem 0 4rem; text-align: center;
}
.hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: 1rem; }
.hero h1 span { color: var(--primary); }
.hero p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-search {
  background: #fff; border-radius: 50px; padding: .4rem .4rem .4rem 1.5rem;
  display: flex; align-items: center; max-width: 580px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1; border: none; outline: none; font-size: 1rem;
  background: transparent; color: var(--text);
}
.hero-stats {
  display: flex; justify-content: center; gap: 3rem; margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: .88rem; color: rgba(255,255,255,.7); }

/* Cards */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.25rem; }
.card-img { width: 100%; height: 160px; object-fit: cover; }

/* Agency Card */
.agency-card { display: flex; flex-direction: column; height: 100%; }
.agency-card-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.25rem .75rem;
}
.agency-logo {
  width: 60px; height: 60px; border-radius: 10px; object-fit: contain;
  border: 1px solid var(--border); background: var(--bg); padding: 4px;
  flex-shrink: 0;
}
.agency-logo-placeholder {
  width: 60px; height: 60px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; flex-shrink: 0;
}
.agency-name { font-size: 1.05rem; font-weight: 700; color: var(--secondary); margin-bottom: .2rem; }
.agency-location { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }
.agency-body { padding: 0 1.25rem 1rem; flex: 1; }
.agency-desc { font-size: .88rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .75rem; }
.agency-footer {
  padding: .75rem 1.25rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.rating { display: flex; align-items: center; gap: .3rem; font-size: .85rem; }
.stars { color: #f39c12; letter-spacing: 1px; }
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .65rem; border-radius: 25px; font-size: .78rem; font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger  { background: #f8d7da; color: #721c24; }
.badge-info    { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: #fff3e0; color: var(--primary-dark); }
.badge-featured { background: var(--primary); color: #fff; }
.rank-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-weight: 600; font-size: .88rem; color: var(--text); margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .6rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; color: var(--text); background: var(--surface);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,126,34,.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-text { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Auth pages */
.auth-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg); }
.auth-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 440px; }
.auth-card h2 { text-align: center; margin-bottom: .5rem; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 1.8rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.2rem 0; }
.auth-divider span { color: var(--text-muted); font-size: .85rem; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .88rem; color: var(--text-muted); }

/* Alerts */
.alert {
  padding: .9rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem;
  font-size: .9rem; display: flex; align-items: flex-start; gap: .6rem;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }

/* Pagination */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500; border: 1.5px solid var(--border);
  color: var(--text); transition: all .2s;
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* Dashboard */
.dashboard-layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 240px; background: var(--secondary); flex-shrink: 0;
  display: flex; flex-direction: column;
}
.sidebar-logo { padding: 1.5rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-logo .user-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary); margin-bottom: .5rem;
}
.sidebar-logo .user-name { color: #fff; font-weight: 700; font-size: .95rem; }
.sidebar-logo .user-email { color: rgba(255,255,255,.5); font-size: .78rem; }
.sidebar-logo .wallet-bal { color: var(--primary); font-weight: 700; font-size: .9rem; margin-top: .4rem; }
.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.25rem; color: rgba(255,255,255,.7); font-size: .9rem;
  transition: background .2s, color .2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,.1); color: #fff;
}
.sidebar-nav a .icon { width: 18px; text-align: center; }
.sidebar-section { padding: .4rem 1.25rem .2rem; font-size: .72rem; text-transform: uppercase; color: rgba(255,255,255,.3); letter-spacing: .8px; margin-top: .5rem; }
.dashboard-main { flex: 1; overflow-x: hidden; padding: 2rem; background: var(--bg); }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.page-header h1 { font-size: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-icon.orange { background: #fff3e0; color: var(--primary); }
.stat-icon.green  { background: #e8f5e9; color: var(--accent); }
.stat-icon.blue   { background: #e3f2fd; color: var(--info); }
.stat-icon.red    { background: #ffebee; color: var(--danger); }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.stat-label { font-size: .8rem; color: var(--text-muted); }

/* Table */
.table-wrap { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg); padding: .75rem 1rem; text-align: left; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* State/City grid */
.state-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .2s;
}
.state-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }
.state-card .count { background: var(--primary); color: #fff; padding: .2rem .6rem; border-radius: 25px; font-size: .78rem; font-weight: 700; }

/* Wallet */
.wallet-balance-card {
  background: linear-gradient(135deg, var(--secondary), #34495e);
  border-radius: var(--radius); padding: 2rem; color: #fff; text-align: center;
}
.wallet-balance-card .balance { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.wallet-balance-card .balance-usd { font-size: 1rem; color: rgba(255,255,255,.6); }

/* Agency Detail */
.agency-detail-header {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem; margin-bottom: 1.5rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.agency-detail-logo { width: 100px; height: 100px; border-radius: 12px; object-fit: contain; border: 1px solid var(--border); padding: 8px; flex-shrink: 0; }
.agency-detail-info h1 { font-size: 1.6rem; margin-bottom: .4rem; }
.agency-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin: .75rem 0; }
.agency-meta-item { display: flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--text-muted); }
.info-section { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.5rem; }
.info-section h3 { margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }

/* Reviews */
.review-card { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.reviewer { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.reviewer-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* Rating stars input */
.star-rating { display: flex; gap: .2rem; }
.star-rating input { display: none; }
.star-rating label { font-size: 1.8rem; color: var(--border); cursor: pointer; transition: color .1s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f39c12; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); padding: 1rem 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--border); }

/* Footer */
footer {
  background: var(--secondary); color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand h3 { color: #fff; font-size: 1.3rem; margin-bottom: .5rem; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.6); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .82rem; color: rgba(255,255,255,.4); }

/* Mobile */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hamburger { display: flex; }
  .navbar-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 1rem; box-shadow: var(--shadow-lg); }
  .navbar-nav.open { display: flex; }
  .navbar-search { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .agency-detail-header { flex-direction: column; }
  .hero h1 { font-size: 1.7rem; }
  .hero-search { flex-direction: column; padding: .5rem; border-radius: var(--radius); }
  .hero-search input { width: 100%; padding: .5rem; }
}

/* Utility */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-primary{ color: var(--primary); }
.text-success{ color: var(--accent); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.relative { position: relative; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--secondary); margin-bottom: .5rem; }
