/* ============================================================
   Trans Canadian & American Logistics — Cinematic CSS Theme
   Chiaroscuro: deep black, warm gold, dramatic typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --black:      #060608;
  --black-soft: #0d0d10;
  --black-card: #111115;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark:  #8a6a20;
  --white:      #f0ede8;
  --grey:       #888880;
  --grey-light: #b0ada8;
  --border:     rgba(201,168,76,0.15);
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  background: linear-gradient(105deg, #3a3830 0%, #8a7a50 30%, #e8c96a 60%, #ffffff 85%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover { background: var(--gold-light); color: #000; transform: translateY(-1px); }
.btn-gold:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid rgba(240,237,232,0.3);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6,6,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--white);
}
.nav-brand span {
  background: linear-gradient(105deg, var(--gold-dark) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta { margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(6,6,8,0.98); padding: 24px; gap: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 75% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 30% 40% at 80% 40%, rgba(201,168,76,0.05) 0%, transparent 60%);
}

.hero-flare {
  position: absolute;
  right: 20%;
  top: 35%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.25) 0%, rgba(201,168,76,0.08) 30%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-flare-small {
  position: absolute;
  right: 18%;
  top: 37%;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: 0 0 20px 6px rgba(201,168,76,0.6);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 80px 0; }

.hero-flags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-flag-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: rgba(201,168,76,0.05);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--grey-light);
}
.hero-divider { width: 1px; height: 24px; background: var(--border); }

.hero-ctas { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

/* ── Section Base ── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--grey);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
  margin-top: 60px;
}

.service-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.service-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-4px); }

.service-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.3s, transform 0.4s;
}
.service-card:hover .service-card-image { filter: brightness(1); transform: scale(1.03); }
.service-card-image-wrap { overflow: hidden; }

.service-card-body { padding: 24px; }
.service-card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(201,168,76,0.12);
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 16px;
}
.service-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.service-card-subtitle {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service-card-desc {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── Fleet Cards ── */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.fleet-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}
.fleet-card:hover { border-color: rgba(201,168,76,0.35); }

.fleet-card-image { width: 100%; height: 200px; object-fit: cover; filter: brightness(0.8); }
.fleet-card-body { padding: 24px; }
.fleet-card-category {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.fleet-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.fleet-specs { border-top: 1px solid var(--border); padding-top: 16px; }
.fleet-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  font-size: 0.8rem;
}
.fleet-spec-label { color: var(--grey); }
.fleet-spec-value { color: var(--white); font-weight: 500; text-align: right; }

/* ── About / Values ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  padding: 32px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.value-icon { font-size: 1.8rem; margin-bottom: 16px; }
.value-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.value-desc { font-size: 0.85rem; color: var(--grey); line-height: 1.65; }

/* ── Coverage Map Banner ── */
.coverage-banner {
  background: linear-gradient(135deg, var(--black-soft) 0%, rgba(201,168,76,0.06) 100%);
  border: 1px solid var(--border);
  padding: 48px;
  text-align: center;
  margin-top: 60px;
}
.coverage-flags { font-size: 2.5rem; margin-bottom: 16px; }
.coverage-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.coverage-desc { font-size: 0.9rem; color: var(--grey); }

/* ── Forms ── */
.form-section {
  background: var(--black-soft);
  padding: 100px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid.full { grid-template-columns: 1fr; }

@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }

.form-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}

.form-step-header {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.alert-success {
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 24px;
}
.alert-error {
  background: rgba(200,50,50,0.1);
  border: 1px solid rgba(200,50,50,0.4);
  color: #f08080;
  padding: 16px 24px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-info-value { font-size: 0.9rem; color: var(--white); }

/* ── Footer ── */
footer {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
}

.footer-cta {
  background: linear-gradient(135deg, rgba(13,13,16,1) 0%, rgba(201,168,76,0.08) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-cta-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(105deg, var(--gold-dark) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-cta-sub { font-size: 0.85rem; color: var(--grey); margin-top: 4px; }

.footer-main { padding: 64px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 16px;
}
.footer-brand-name span {
  background: linear-gradient(105deg, var(--gold-dark) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.footer-brand-desc { font-size: 0.82rem; color: var(--grey); line-height: 1.65; }

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.83rem;
  color: var(--grey);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.83rem;
  color: var(--grey);
}
.footer-contact-item a { color: var(--grey); }
.footer-contact-item a:hover { color: var(--white); }
.footer-contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(136,136,128,0.6); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(201,168,76,0.07) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: 0.08em;
  background: linear-gradient(105deg, #3a3830 0%, #8a7a50 30%, #e8c96a 60%, #ffffff 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.page-hero-sub { font-size: 1rem; color: var(--grey); max-width: 520px; line-height: 1.7; font-weight: 300; }

/* ── Service Detail (Services page) ── */
.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }
@media (max-width: 800px) {
  .service-detail-inner { grid-template-columns: 1fr; }
  .service-detail-inner.reverse { direction: ltr; }
}
.service-detail-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: brightness(0.9);
}
.service-detail-number {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(201,168,76,0.1);
  line-height: 1;
  margin-bottom: -16px;
}
.service-detail-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--white);
  margin-bottom: 6px;
}
.service-detail-subtitle { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-heading); margin-bottom: 20px; }
.service-detail-desc { font-size: 0.9rem; color: var(--grey); line-height: 1.75; margin-bottom: 20px; }
.service-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--grey-light);
}
.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Admin Panel ── */
.admin-body { background: #0a0a0d; min-height: 100vh; font-family: var(--font-body); color: var(--white); }
.admin-header {
  background: var(--black-soft);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 { font-family: var(--font-heading); font-size: 1rem; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.admin-content { padding: 40px 32px; max-width: 1200px; margin: 0 auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { background: rgba(201,168,76,0.08); color: var(--gold); font-family: var(--font-heading); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(201,168,76,0.06); color: var(--grey-light); vertical-align: top; }
.admin-table tr:hover td { background: rgba(201,168,76,0.03); }
.badge-new { background: rgba(201,168,76,0.15); color: var(--gold); padding: 3px 10px; font-size: 0.7rem; font-family: var(--font-heading); letter-spacing: 0.1em; text-transform: uppercase; }
.badge-read { background: rgba(136,136,128,0.1); color: var(--grey); padding: 3px 10px; font-size: 0.7rem; font-family: var(--font-heading); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Utilities ── */
.text-gold { color: var(--gold); }
.text-grey { color: var(--grey); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
