/* ========================================================
   Trades Merchant – Global Design System
   Brand: Trust · Clarity · Expertise
   Colour palette:
     Primary:   #2596be  (Fjord Signal – trust, confidence)
     Secondary: #e85d1a  (vivid orange – energy, CTA)
     Accent:    #22a06b  (teal-green – verified/safe)
     Neutral:   #f4f6fa  (light background)
     Dark:      #1a1f2e  (dark text / footer)
======================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:       #2596be;
  --primary-dark:  #1a7496;
  --primary-light: #45b3d4;
  --secondary:     #e85d1a;
  --secondary-dark:#c44d14;
  --accent:        #22a06b;
  --accent-dark:   #1a8056;
  --warning:       #f59e0b;
  --neutral-50:    #f9fafb;
  --neutral-100:   #f4f6fa;
  --neutral-200:   #e8ecf4;
  --neutral-300:   #d1d8e8;
  --neutral-500:   #8a94aa;
  --neutral-700:   #4a5568;
  --neutral-900:   #1a1f2e;
  --white:         #ffffff;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --shadow-sm:     0 1px 3px rgba(37,150,190,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 16px rgba(37,150,190,0.12), 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(37,150,190,0.16), 0 4px 12px rgba(0,0,0,0.1);
  --shadow-xl:     0 24px 64px rgba(37,150,190,0.2);
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --transition:    all 0.22s ease;
  --max-width:     1200px;
  --header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--neutral-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--neutral-900);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--neutral-700); }
.lead { font-size: 1.15rem; color: var(--neutral-700); }

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section--lg { padding: 96px 0; }
.section--sm { padding: 40px 0; }
.section--alt { background: var(--neutral-100); }
.section--dark { background: var(--neutral-900); color: var(--white); }
.section--primary { background: var(--primary); color: var(--white); }
.section--accent { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,93,26,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--neutral-100);
  color: var(--primary-dark);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,160,107,0.35);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-primary { background: rgba(37,150,190,0.1); color: var(--primary); }
.badge-accent   { background: rgba(34,160,107,0.1); color: var(--accent-dark); }
.badge-orange   { background: rgba(232,93,26,0.1); color: var(--secondary-dark); }
.badge-gold     { background: rgba(245,158,11,0.1); color: #92670d; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--neutral-200); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--neutral-200); background: var(--neutral-50); }

/* ---------- Star Ratings ---------- */
.stars { display: flex; gap: 2px; }
.star  { color: var(--warning); font-size: 1rem; }
.star.empty { color: var(--neutral-300); }
.rating-text { font-size: 0.9rem; color: var(--neutral-500); margin-left: 6px; }

/* ---------- Section Heading Pattern ---------- */
.section-heading {
  margin-bottom: 48px;
}
.section-heading .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}
.section-heading h2 {
  margin-bottom: 14px;
}
.section-heading p {
  max-width: 580px;
  font-size: 1.05rem;
}
.section-heading.text-center p { margin: 0 auto; }

/* ---------- Trust Bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-700);
}
.trust-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,160,107,0.1);
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Search / Quote Box ---------- */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
}
.search-box .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control {
  padding: 12px 16px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--neutral-900);
  background: var(--white);
  transition: var(--transition);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,150,190,0.12);
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a94aa' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.step {
  text-align: center;
  padding: 32px 24px;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(37,150,190,0.25);
}
.step h3 { margin-bottom: 10px; }

/* ---------- Trade Category Grid ---------- */
.trade-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 16px;
}
.trade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 2px solid var(--neutral-200);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--neutral-900);
}
.trade-card:hover {
  border-color: var(--primary);
  background: rgba(37,150,190,0.04);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.trade-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--neutral-100);
}
.trade-card:hover .trade-icon { background: rgba(37,150,190,0.08); }
.trade-card span { font-size: 0.85rem; font-weight: 600; }

/* ---------- Review Cards ---------- */
.review-card { padding: 24px; }
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.review-body { font-style: italic; font-size: 0.95rem; margin-bottom: 14px; }
.review-trade-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37,150,190,0.08);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ---------- Stat Block ---------- */
.stat-block { text-align: center; padding: 32px 24px; }
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ---------- Advice Cards ---------- */
.advice-card { overflow: hidden; }
.advice-card-image {
  height: 180px;
  background: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.advice-card-body { padding: 20px; }
.advice-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 8px;
}
.advice-card h3 { font-size: 1rem; margin-bottom: 8px; }
.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}
.read-more:hover { gap: 8px; }

/* ---------- Location Grid ---------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.location-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-200);
  color: var(--neutral-700);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--white);
  transition: var(--transition);
  text-decoration: none;
}
.location-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,150,190,0.04);
}

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--neutral-900);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 16px;
  font-size: 0.95rem;
}
.faq-question .icon { flex-shrink: 0; transition: var(--transition); }
.faq-question.open .icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open {
  padding: 0 24px 20px;
  max-height: 300px;
}
.faq-answer p { font-size: 0.95rem; }

/* ---------- Checklist ---------- */
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
}
.checklist-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.checklist-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.checklist-item p  { font-size: 0.875rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  max-width: 260px;
  display: block;
  object-fit: contain;

}
.logo-mark { display: none; }
.logo-text { display: none; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--neutral-100); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.header-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-700);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.nav-dropdown-btn:hover { color: var(--primary); background: var(--neutral-100); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: var(--transition);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.875rem;
  color: var(--neutral-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--neutral-100); color: var(--primary); }
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--neutral-900);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 6px;
  z-index: 999;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { display: block; padding: 12px 16px; font-size: 1rem; }
.mobile-nav-divider { height: 1px; background: var(--neutral-200); margin: 8px 0; }
.mobile-nav .btn { display: flex; width: 100%; justify-content: center; }

/* ---------- Hero section ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2458a0 100%);
  color: var(--white);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
/* Hero background video */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.48;
  pointer-events: none;
  border: none;
  display: block;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,58,110,0.82) 0%, rgba(37,150,190,0.72) 60%, rgba(36,88,160,0.80) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,93,26,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero .lead { color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 600px; font-size: 1.15rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
}
.hero-trust-item strong { color: var(--white); }
.hero-trust-item svg, .hero-trust-item i { color: var(--accent); }

/* ---------- Banner CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(90deg, var(--secondary) 0%, #d44e10 100%);
  padding: 24px 0;
  color: var(--white);
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h3 { color: var(--white); font-size: 1.2rem; }
.cta-strip p  { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* ---------- Feature List ---------- */
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(37,150,190,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 4px; }
.feature-item p  { font-size: 0.9rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--neutral-500);
  padding: 14px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--neutral-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--neutral-300); }
.breadcrumb .current { color: var(--neutral-900); font-weight: 500; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 56px 0 64px;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.8); max-width: 600px; font-size: 1.05rem; }

/* ---------- Sidebar Layout ---------- */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.sticky-sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-card-header {
  padding: 20px;
  background: var(--primary);
  color: var(--white);
}
.sidebar-card-header h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.sidebar-card-header p  { color: rgba(255,255,255,0.8); font-size: 0.875rem; }
.sidebar-card-body { padding: 20px; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ---------- Table ---------- */
.cost-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 420px; }
.cost-table th {
  background: var(--neutral-100);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--neutral-900);
  border-bottom: 2px solid var(--neutral-200);
  font-size: 0.85rem;
}
.cost-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--neutral-200);
  color: var(--neutral-700);
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:hover td { background: var(--neutral-50); }

/* ---------- Progress Bar ---------- */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}
.progress-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--neutral-300);
  z-index: 0;
}
.progress-step:last-child::after { display: none; }
.progress-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neutral-200);
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.progress-step.active .progress-step-dot { background: var(--primary); color: var(--white); }
.progress-step.done .progress-step-dot  { background: var(--accent); color: var(--white); }
.progress-step::after { background: var(--neutral-300); }
.progress-step.done::after { background: var(--accent); }
.progress-step span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--neutral-500);
  text-align: center;
}
.progress-step.active span { color: var(--primary); font-weight: 600; }

/* ---------- Job Form ---------- */
.job-form { display: flex; flex-direction: column; gap: 20px; }
.job-form .form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-900);
  text-transform: none;
  letter-spacing: 0;
}
.job-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.job-form .form-hint {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: 4px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}
.radio-option input { display: none; }
.radio-option:hover { border-color: var(--primary); color: var(--primary); }
.radio-option.selected { border-color: var(--primary); background: rgba(37,150,190,0.06); color: var(--primary); }

/* ---------- Alert / Notice ---------- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-info    { background: rgba(37,150,190,0.06); border-color: var(--primary); color: var(--primary-dark); }
.alert-success { background: rgba(34,160,107,0.08); border-color: var(--accent); color: var(--accent-dark); }
.alert-warning { background: rgba(245,158,11,0.08); border-color: var(--warning); color: #92670d; }

/* ---------- Trade Profile Card ---------- */
.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.profile-card:hover { box-shadow: var(--shadow-md); border-color: var(--neutral-300); }
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
}
.profile-info h3 { margin-bottom: 4px; font-size: 1.05rem; }
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--neutral-500);
  margin-top: 8px;
  align-items: center;
}
.profile-meta-item { display: flex; align-items: center; gap: 4px; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(34,160,107,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}
.profile-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--neutral-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-img { height: 48px; max-width: 180px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p  { font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--white); }
.footer-trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.footer-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  border: none;
  z-index: 500;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ---------- Tabs ---------- */
.tabs { display: flex; border-bottom: 2px solid var(--neutral-200); gap: 4px; margin-bottom: 32px; }
.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Responsive ---------- */

/* ── Tablet: 1024px and below ── */
@media (max-width: 1024px) {
  .trade-grid       { grid-template-columns: repeat(4,1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sidebar-layout   { grid-template-columns: 1fr; }
  .sticky-sidebar   { position: static; }
  .location-grid    { grid-template-columns: repeat(3,1fr); }
  .grid-4           { grid-template-columns: repeat(2,1fr); }
}

/* ── Mobile: 768px and below ── */
@media (max-width: 768px) {
  /* Root */
  :root { --header-height: 60px; }

  /* Base spacing */
  .container { padding: 0 16px; }
  .section      { padding: 40px 0; }
  .section--lg  { padding: 56px 0; }
  .section--sm  { padding: 28px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading p { font-size: 0.97rem; }

  /* Typography */
  h1 { font-size: clamp(1.55rem, 5vw, 2rem); }
  h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); }
  h3 { font-size: clamp(1rem, 3vw, 1.2rem); }
  .lead { font-size: 1rem; }

  /* Navigation */
  .main-nav,
  .nav-dropdown,
  .header-ctas .btn-secondary { display: none; }
  .mobile-menu-btn { display: flex; }
  /* Ensure header CTA (Request Quotes) stays visible but compact */
  .header-ctas { gap: 8px; }
  .header-ctas .btn-sm { padding: 7px 14px; font-size: 0.8rem; }

  /* Logo */
  .logo-img { height: 40px; max-width: 160px; }

  /* Grids → single column */
  .grid-2,
  .grid-3,
  .grid-4   { grid-template-columns: 1fr; }

  /* Trade grid → 3 cols on tablet-mobile */
  .trade-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .trade-card { padding: 16px 10px; }
  .trade-icon { width: 42px; height: 42px; font-size: 1.3rem; }
  .trade-card span { font-size: 0.78rem; }

  /* Steps */
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .step  { padding: 24px 20px; }

  /* Search box */
  .search-box .form-row { grid-template-columns: 1fr; }
  .search-box { padding: 20px 16px; }

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

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .site-footer { padding: 48px 0 0; }

  /* Profile card */
  .profile-card { grid-template-columns: 1fr; gap: 16px; }
  .profile-cta  { align-items: stretch; flex-direction: row; flex-wrap: wrap; }
  .profile-avatar { width: 56px; height: 56px; font-size: 1.2rem; }

  /* Form */
  .form-row-2 { grid-template-columns: 1fr; }

  /* CTA strip */
  .cta-strip-inner { flex-direction: column; justify-content: center; text-align: center; }

  /* Hero (inner pages) */
  .hero         { padding: 48px 0 60px; }
  .hero-ctas    { flex-wrap: wrap; gap: 10px; }
  .page-hero    { padding: 40px 0 48px; }
  .page-hero h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); }

  /* Trust bar */
  .trust-bar  { gap: 16px; }
  .trust-item { font-size: 0.85rem; }

  /* Sidebar card */
  .sidebar-card-body { padding: 16px; }

  /* Stat blocks */
  .stat-number { font-size: 2rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.8rem; }

  /* Advice card image */
  .advice-card-image { height: 140px; }

  /* FAQ answer – allow taller content */
  .faq-answer.open { max-height: 600px; }
  .faq-question    { padding: 14px 16px; font-size: 0.9rem; }
  .faq-answer      { padding: 0 16px; }
  .faq-answer.open { padding: 0 16px 18px; }

  /* Progress steps */
  .progress-steps { flex-wrap: wrap; gap: 16px; }
  .progress-step::after { display: none; }

  /* Tables – horizontal scroll on small screens */
  .cost-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cost-table      { min-width: 480px; }
  .cost-table th,
  .cost-table td   { padding: 10px 12px; font-size: 0.82rem; }

  /* Buttons */
  .btn    { padding: 11px 22px; font-size: 0.9rem; }
  .btn-lg { padding: 13px 26px; font-size: 0.95rem; }
  .btn-sm { padding: 7px 14px;  font-size: 0.8rem; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }

  /* Cookie banner */
  .cookie-banner-inner { flex-direction: column; gap: 16px; }
  .cookie-banner-actions { width: 100%; justify-content: center; }

  /* Checklist items */
  .checklist-item { padding: 12px; gap: 10px; }

  /* Feature items */
  .feature-icon { width: 40px; height: 40px; font-size: 1rem; }
}

/* ── Small mobile: 480px and below ── */
@media (max-width: 480px) {
  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  /* Trade grid → 2 cols */
  .trade-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }

  /* Location grid → 1 col */
  .location-grid { grid-template-columns: 1fr; }

  /* Hero CTAs stack */
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Tabs scroll horizontally */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }

  /* Section heading */
  .section-heading { margin-bottom: 24px; }

  /* Profile meta wrap */
  .profile-meta { gap: 8px; }

  /* Stat blocks smaller */
  .stat-number { font-size: 1.8rem; }

  /* Trust bar vertical on very small */
  .trust-bar { flex-direction: column; align-items: flex-start; padding: 16px 0; }

  /* Buttons full-width in hero/CTA contexts */
  .cta-strip-inner .btn { width: 100%; justify-content: center; }

  /* Footer social icons */
  .footer-social { gap: 8px; }

  /* Advice card */
  .advice-card-image { height: 120px; font-size: 2.2rem; }

  /* Cookie banner actions stack */
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions .btn { width: 100%; justify-content: center; }

  /* Checklist icon smaller */
  .checklist-icon { width: 26px; height: 26px; font-size: 0.8rem; }

  /* Radio group stack */
  .radio-group { flex-direction: column; }
  .radio-option { width: 100%; }
}

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--neutral-900);
  color: rgba(255,255,255,0.85);
  padding: 20px 0;
  z-index: 9000;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner p { font-size: 0.875rem; max-width: 640px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ---------- Mobile touch enhancements ---------- */
/* Minimum touch target size (44×44px) for interactive elements */
.mobile-menu-btn,
.back-to-top,
.faq-question,
.tab-btn,
.nav-link,
.mobile-nav .nav-link,
.btn { min-height: 44px; }

/* Prevent horizontal overflow site-wide */
html, body { overflow-x: hidden; max-width: 100%; }

/* Ensure all images are fluid */
img, video { max-width: 100%; height: auto; }

/* Smooth momentum scroll on iOS for overflowing elements */
.mobile-nav,
.cost-table-wrap,
.tabs { -webkit-overflow-scrolling: touch; }

/* Prevent text size adjustment on orientation change (iOS) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
