/* =============================================
   Dekkservice — Stylesheet
   ============================================= */

:root {
  --primary:        #0D1B2A;
  --primary-light:  #1a2f45;
  --accent:         #FF6B35;
  --accent-hover:   #e55a24;
  --success:        #27ae60;
  --warning:        #f39c12;
  --danger:         #e74c3c;
  --info:           #2980b9;
  --bg:             #f4f6f8;
  --bg-dark:        #0D1B2A;
  --white:          #ffffff;
  --text:           #1a1a2a;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --radius:         8px;
  --radius-lg:      16px;
  --shadow:         0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.14);
  --transition:     .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }
ul  { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   Header / Nav
   ============================================= */
.site-header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}
.logo-text::first-letter { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all var(--transition);
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   Flash messages
   ============================================= */
.flash {
  padding: 14px 0;
  font-weight: 500;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error   { background: #fee2e2; color: #991b1b; }
.flash-info    { background: #dbeafe; color: #1e40af; }
.flash-warning { background: #fef3c7; color: #92400e; }

/* =============================================
   Hero Section
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1e3a5f 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 650px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,107,53,.2);
  color: var(--accent);
  border: 1px solid rgba(255,107,53,.4);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.notice-box {
  background: rgba(255,107,53,.15);
  border: 1px solid rgba(255,107,53,.4);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
}
.notice-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary   { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline   { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.btn-dark      { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-light); color: var(--white); }
.btn-success   { background: var(--success); color: var(--white); }
.btn-danger    { background: var(--danger); color: var(--white); }
.btn-sm        { padding: 8px 18px; font-size: .875rem; }
.btn-lg        { padding: 16px 36px; font-size: 1.1rem; }
.btn-block     { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* =============================================
   Sections
   ============================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--primary); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,.65); }

/* =============================================
   Cards
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 1.1rem; }
.card-footer { padding: 16px 28px; border-top: 1px solid var(--border); background: var(--bg); }

/* =============================================
   Services Grid
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.service-card p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.service-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.vehicle-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.vehicle-badge.bil { background: #dbeafe; color: #1e40af; }
.vehicle-badge.mc  { background: #fce7f3; color: #9d174d; }
.vehicle-badge.begge { background: #d1fae5; color: #065f46; }

/* =============================================
   How it works
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.step-item { }
.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.section-dark .step-item h3 { color: var(--white); }
.section-dark .step-item p  { color: rgba(255,255,255,.65); }
.step-item h3 { font-weight: 700; margin-bottom: 8px; }
.step-item p  { color: var(--text-muted); font-size: .9rem; }

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.cta-section p  { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }

/* =============================================
   Forms
   ============================================= */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-text { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.radio-group, .checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .95rem;
}
.radio-option input, .checkbox-option input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* =============================================
   Auth pages
   ============================================= */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
}
.auth-card h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--text-muted); }

/* =============================================
   Dashboard / Admin layout
   ============================================= */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 68px);
}
.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
  padding: 24px 0;
}
.admin-sidebar-header { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.admin-sidebar-header h2 { font-size: 1rem; font-weight: 700; color: var(--white); }
.admin-sidebar-header p  { font-size: .8rem; color: rgba(255,255,255,.5); }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-left: 3px solid var(--accent);
}
.sidebar-nav .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-section {
  padding: 12px 20px 4px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
}

.admin-content {
  flex: 1;
  padding: 32px;
  overflow-x: auto;
}
.admin-content h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

/* =============================================
   Tables
   ============================================= */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th {
  background: var(--primary);
  color: var(--white);
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:hover td { background: #fafafa; }
.data-table .actions { display: flex; gap: 6px; }

/* =============================================
   Badges
   ============================================= */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-new     { background: #eff6ff; color: #1d4ed8; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-paid    { background: #d1fae5; color: #065f46; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-default { background: var(--border); color: var(--text-muted); }

/* =============================================
   Stats cards
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.stat-card .stat-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-card .stat-sub   { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* =============================================
   Booking form page
   ============================================= */
.booking-page { padding: 60px 0; }
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.booking-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
}
.booking-summary-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 88px;
}
.booking-summary-card h3 { margin-bottom: 16px; font-size: 1.1rem; }
.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .9rem;
}
.summary-item:last-child { border-bottom: none; }
.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
}

/* =============================================
   Order details
   ============================================= */
.order-status-timeline {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.timeline-step {
  flex: 1;
  min-width: 100px;
  text-align: center;
  position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  font-size: .9rem;
}
.timeline-step.done .timeline-dot   { background: var(--success); border-color: var(--success); color: var(--white); }
.timeline-step.active .timeline-dot { background: var(--accent); border-color: var(--accent); color: var(--white); }
.timeline-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.timeline-step.done .timeline-label, .timeline-step.active .timeline-label { color: var(--text); }

/* =============================================
   Vipps button
   ============================================= */
.btn-vipps {
  background: #FF5B24;
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-vipps:hover { background: #e04e1e; color: var(--white); }
.vipps-logo { font-weight: 900; font-style: italic; letter-spacing: -1px; }

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3    { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.footer-col p     { font-size: .9rem; margin-bottom: 6px; line-height: 1.7; }
.footer-col a     { color: rgba(255,255,255,.65); }
.footer-col a:hover { color: var(--accent); }
.footer-col ul li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* =============================================
   Utilities
   ============================================= */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .95rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

.order-number-display {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  background: #fff7f3;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px dashed var(--accent);
  display: inline-block;
  margin: 12px 0;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-summary-card { position: static; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .hero { padding: 60px 0; }
  .section { padding: 50px 0; }
  .auth-card { padding: 28px 20px; }
  .admin-content { padding: 20px 16px; }
}
