/* Modern, light theme for FreightBros site with logo colors */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f8fafc; /* slate-50 */
  --text: #0f172a; /* slate-900 */
  --text-dark: #000000;
  --muted: #64748b; /* slate-500 */
  --border: #e2e8f0; /* slate-200 */
  --accent: #dc2626; /* red-600 from logo */
  --accent-2: #ef4444; /* red-500 */
  --accent-dark: #991b1b; /* red-800 */
  --black: #000000;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure images never overflow and scale nicely */
img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }

/* Navigation */
header {
  position: relative;
  z-index: 100;
}

.nav {
  display:flex; align-items:center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0;
  background: transparent;
  position: relative;
  z-index: 100;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.brand { display:flex; align-items:center; gap: 0.6rem; font-weight: 800; letter-spacing: 0.3px; }
.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.brand-accent { color: var(--accent-2); }
.links a {
  color: rgba(255, 255, 255, 0.9);
  margin-left: 1.5rem;
  text-decoration:none;
  font-weight: 600;
  transition: color 200ms ease, transform 200ms ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.links a:hover {
  color: var(--accent-2);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  padding: 0;
  margin: -5rem -1rem 0;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/static/FreightBrosLLC.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: 1;
  transform: scale(1.05);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(220,38,38,0.12) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 3rem 2rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  font-weight: 500;
}

/* Buttons */
.cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #ffffff;
  padding: 0.8rem 1.15rem; border-radius: 12px; font-weight: 800;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.30); }

/* Content */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  margin: 3rem auto 2rem;
  text-align: center;
  display: block;
  width: fit-content;
}

.section-badge span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.features {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  position: relative;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1rem; margin: 2rem 0; }
.list { padding-left: 1.2rem; }
.list li { margin: 0.4rem 0; color: var(--muted); }

/* Footer */
.footer {
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Forms */
.quote-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quote-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.quote-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.6;
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.grid-two { display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form label {
  font-weight: 600;
  color: var(--text);
  display: block;
}

.form input, .form textarea {
  width: 100%; background: #ffffff; color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.8rem;
  outline: none; transition: box-shadow 160ms ease, border-color 160ms ease;
  margin-top: 0.3rem;
  font-family: inherit;
}

.form input:focus, .form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.form button[type="submit"] {
  margin-top: 0.5rem;
}

.pre { background: var(--surface-muted); border: 1px solid var(--border); padding: 1rem; border-radius: 12px; overflow: auto; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.slide-up {
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
}

/* Hero styling */
.hero .highlight {
  background: linear-gradient(90deg, var(--accent), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero .cta {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.hero .cta:hover {
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.45);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.scroll-arrow {
  font-size: 1.25rem;
  color: rgba(239, 68, 68, 0.8);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Card enhancements */
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.card {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.08), 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: rgba(220, 38, 38, 0.2);
}

/* New sections */
.why-section, .coverage-section, .services-section, .cta-section {
  margin: 3rem 0;
  padding: 2rem 0;
}

.why-section h2, .coverage-section h2, .services-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1rem;
}

.why-section h2::after, .coverage-section h2::after, .services-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

.benefit-card, .service-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 16px;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::after, .service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.benefit-card:hover, .service-card:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.benefit-card:hover::after, .service-card:hover::after {
  transform: scaleX(1);
}

.benefit-card h3, .service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.benefit-card p, .service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Coverage section */
.coverage-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.coverage-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.coverage-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.coverage-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 3rem 0;
}

.cta-box {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 100%);
  z-index: 1;
}

.cta-box > * {
  position: relative;
  z-index: 2;
}

.cta-box h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cta-box p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-large {
  padding: 1rem 1.75rem;
  font-size: 1.1rem;
}

/* Success page */
.success-message {
  text-align: center;
  margin: 2rem 0;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-message h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.success-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.quote-summary {
  max-width: 700px;
  margin: 2rem auto;
}

.quote-summary h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.status-received {
  color: #16a34a;
}

.status-pending {
  color: #ea580c;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 0.8rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.cta-secondary:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  .grid-two { grid-template-columns: 1fr; }
  .cta-box { padding: 2rem 1.5rem; }
  .hero { min-height: 55vh; margin-top: -4rem; }
  .hero-content { padding: 2.5rem 1.5rem; }
  .nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-text { font-size: 1.1rem; }
}

@media (min-width: 640px) {
  .nav {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
