/* ============================================================
   Can-Am eXport & Shipping — Main Stylesheet
   Design: Industrial Modernism with Maritime Heritage
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --ca-navy:        #0F3A5C;
  --ca-navy-dark:   #0a2840;
  --ca-navy-light:  #1a4f7a;
  --ca-copper:      #B8860B;
  --ca-copper-light:#d4a017;
  --ca-steel:       #2d3e50;
  --ca-gray:        #6b7280;
  --ca-gray-light:  #f3f4f6;
  --ca-white:       #ffffff;
  --ca-text:        #1f2937;
  --ca-text-muted:  #6b7280;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.2);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ca-text);
  background: var(--ca-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

address { font-style: normal; }

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

/* ── Navbar ─────────────────────────────────────────────────── */
.ca-navbar {
  background: var(--ca-navy);
  border-bottom: 3px solid var(--ca-copper);
  padding: .75rem 0;
}

.ca-logo-mark {
  width: 40px; height: 40px;
  background: var(--ca-copper);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1rem;
  color: var(--ca-navy);
  flex-shrink: 0;
}

.ca-brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.ca-brand-name {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.1rem;
  color: var(--ca-white);
  text-transform: uppercase; letter-spacing: .05em;
}
.ca-brand-sub {
  font-size: .7rem; color: var(--ca-copper-light);
  text-transform: uppercase; letter-spacing: .08em;
}

.ca-navbar .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-family: var(--font-heading);
  font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .4rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.ca-navbar .nav-link:hover,
.ca-navbar .nav-link.active {
  color: var(--ca-copper-light) !important;
  background: rgba(255,255,255,.06);
}

/* ── Buttons ────────────────────────────────────────────────── */
.ca-btn-primary {
  background: var(--ca-copper);
  color: var(--ca-navy) !important;
  font-family: var(--font-heading);
  font-weight: 700; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.ca-btn-primary:hover {
  background: var(--ca-copper-light);
  transform: translateY(-1px);
  color: var(--ca-navy) !important;
}

.ca-btn-outline {
  background: transparent;
  color: var(--ca-white) !important;
  font-family: var(--font-heading);
  font-weight: 700; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.6);
  transition: border-color .2s, background .2s;
  display: inline-block;
}
.ca-btn-outline:hover {
  border-color: var(--ca-white);
  background: rgba(255,255,255,.1);
  color: var(--ca-white) !important;
}

/* ── Section Utilities ──────────────────────────────────────── */
.ca-section { padding: 5rem 0; }
.ca-section-sm { padding: 3rem 0; }
.ca-section-dark { background: var(--ca-navy); color: var(--ca-white); }
.ca-section-steel { background: var(--ca-steel); color: var(--ca-white); }
.ca-section-gray { background: var(--ca-gray-light); }

.ca-eyebrow {
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--ca-copper);
  display: block; margin-bottom: .5rem;
}
.ca-section-dark .ca-eyebrow,
.ca-section-steel .ca-eyebrow { color: var(--ca-copper-light); }

.ca-section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; text-transform: uppercase;
  margin-bottom: 1rem;
}

.ca-divider {
  width: 48px; height: 4px;
  background: var(--ca-copper);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── Hero ───────────────────────────────────────────────────── */
.ca-hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  background: var(--ca-navy-dark);
  overflow: hidden;
}
.ca-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .45;
}
.ca-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,58,92,.92) 0%, rgba(15,58,92,.6) 60%, transparent 100%);
}
.ca-hero-content { position: relative; z-index: 2; }
.ca-hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800; text-transform: uppercase;
  color: var(--ca-white); line-height: 1.05;
  margin-bottom: 1.25rem;
}
.ca-hero-title span { color: var(--ca-copper-light); }
.ca-hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  max-width: 560px; margin-bottom: 2rem;
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.ca-stats-bar {
  background: var(--ca-copper);
  padding: 1.25rem 0;
}
.ca-stat-item {
  text-align: center;
  border-right: 1px solid rgba(15,58,92,.25);
}
.ca-stat-item:last-child { border-right: none; }
.ca-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 800;
  color: var(--ca-navy);
  display: block; line-height: 1;
}
.ca-stat-label {
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ca-navy-dark);
}

/* ── Service Cards ──────────────────────────────────────────── */
.ca-service-card {
  background: var(--ca-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.ca-service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--ca-copper);
}
.ca-service-icon {
  width: 52px; height: 52px;
  background: rgba(184,134,11,.12);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--ca-copper);
  margin-bottom: 1.25rem;
}
.ca-service-card h5 {
  font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .6rem;
}
.ca-service-card p {
  font-size: .9rem; color: var(--ca-text-muted);
  margin-bottom: 0;
}

/* ── Gallery ────────────────────────────────────────────────── */
.ca-gallery-filter { margin-bottom: 2rem; }
.ca-filter-btn {
  font-family: var(--font-heading);
  font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .4rem 1.1rem;
  border: 2px solid #d1d5db;
  border-radius: 100px;
  background: transparent;
  color: var(--ca-gray);
  cursor: pointer;
  transition: all .2s;
}
.ca-filter-btn:hover,
.ca-filter-btn.active {
  background: var(--ca-navy);
  border-color: var(--ca-navy);
  color: var(--ca-white);
}

.ca-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.ca-gallery-item img {
  width: 100%; height: 240px;
  object-fit: cover;
  transition: transform .4s;
}
.ca-gallery-item:hover img { transform: scale(1.05); }
.ca-gallery-caption {
  background: var(--ca-navy);
  color: var(--ca-white);
  padding: .6rem 1rem;
  font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}

/* Lightbox */
.ca-lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 9999;
  align-items: center; justify-content: center;
}
.ca-lightbox.open { display: flex; }
.ca-lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.ca-lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.15); border: none;
  color: var(--ca-white); font-size: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.ca-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ── Feature Image Section ──────────────────────────────────── */
.ca-feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ca-feature-img img { width: 100%; height: 380px; object-fit: cover; }

/* ── Contact Form ───────────────────────────────────────────── */
.ca-form-card {
  background: var(--ca-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.ca-form-label {
  font-family: var(--font-heading);
  font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ca-navy);
  margin-bottom: .35rem;
}
.ca-form-control {
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.ca-form-control:focus {
  outline: none;
  border-color: var(--ca-copper);
  box-shadow: 0 0 0 3px rgba(184,134,11,.15);
}

/* ── Track Shipment ─────────────────────────────────────────── */
.ca-track-card {
  background: var(--ca-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 600px; margin: 0 auto;
}
.ca-status-timeline { list-style: none; padding: 0; margin: 0; }
.ca-status-step {
  display: flex; gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.ca-status-step:not(:last-child)::before {
  content: '';
  position: absolute; left: 15px; top: 32px;
  width: 2px; bottom: 0;
  background: #e5e7eb;
}
.ca-status-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e5e7eb; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--ca-gray);
  position: relative; z-index: 1;
}
.ca-status-dot.active {
  background: var(--ca-copper); color: var(--ca-navy);
}
.ca-status-dot.done {
  background: #16a34a; color: var(--ca-white);
}

/* ── Admin Panel ────────────────────────────────────────────── */
.ca-admin-body { background: #f1f5f9; min-height: 100vh; }
.ca-admin-sidebar {
  background: var(--ca-navy);
  min-height: 100vh; width: 240px;
  position: fixed; top: 0; left: 0;
  display: flex; flex-direction: column;
  z-index: 100;
}
.ca-admin-sidebar-brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ca-admin-nav { padding: 1rem .75rem; flex: 1; }
.ca-admin-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.7);
  font-family: var(--font-heading);
  font-size: .9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  transition: all .2s; margin-bottom: .25rem;
}
.ca-admin-nav a:hover,
.ca-admin-nav a.active {
  background: rgba(255,255,255,.1);
  color: var(--ca-copper-light);
}
.ca-admin-main { margin-left: 240px; padding: 2rem; }
.ca-admin-topbar {
  background: var(--ca-white);
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 2rem;
  margin-left: 240px;
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
}

.ca-badge-new {
  background: #ef4444; color: var(--ca-white);
  font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 100px;
}
.ca-badge-review {
  background: #f59e0b; color: var(--ca-navy);
  font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 100px;
}
.ca-badge-quoted {
  background: #3b82f6; color: var(--ca-white);
  font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 100px;
}
.ca-badge-closed {
  background: #6b7280; color: var(--ca-white);
  font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 100px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.ca-footer {
  background: var(--ca-navy-dark);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}
.ca-footer-heading {
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ca-copper-light);
  margin-bottom: 1rem;
}
.ca-footer-desc { font-size: .875rem; color: rgba(255,255,255,.6); }
.ca-footer-links { list-style: none; padding: 0; margin: 0; }
.ca-footer-links li { margin-bottom: .5rem; }
.ca-footer-links a {
  color: rgba(255,255,255,.65); font-size: .875rem;
  transition: color .2s;
}
.ca-footer-links a:hover { color: var(--ca-copper-light); }
.ca-footer-contact { list-style: none; padding: 0; margin: 0; }
.ca-footer-contact li {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: .75rem; font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.ca-footer-contact i { color: var(--ca-copper-light); margin-top: .15rem; flex-shrink: 0; }
.ca-footer-contact a { color: rgba(255,255,255,.65); transition: color .2s; }
.ca-footer-contact a:hover { color: var(--ca-copper-light); }
.ca-footer-divider { border-color: rgba(255,255,255,.1); margin: 2.5rem 0 1.5rem; }
.ca-footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }
.ca-footer-admin-link {
  font-size: .75rem; color: rgba(255,255,255,.25);
  transition: color .2s;
}
.ca-footer-admin-link:hover { color: rgba(255,255,255,.5); }

/* ── Alert / Flash Messages ─────────────────────────────────── */
.ca-alert-success {
  background: #d1fae5; border: 1px solid #6ee7b7;
  color: #065f46; border-radius: var(--radius-md);
  padding: 1rem 1.25rem; font-size: .9rem;
}
.ca-alert-error {
  background: #fee2e2; border: 1px solid #fca5a5;
  color: #991b1b; border-radius: var(--radius-md);
  padding: 1rem 1.25rem; font-size: .9rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ca-admin-sidebar { display: none; }
  .ca-admin-main,
  .ca-admin-topbar { margin-left: 0; }
  .ca-hero { min-height: 70vh; }
  .ca-feature-img img { height: 260px; }
}
