/* =============================================
   Arcline Fleet Services — Design System
   ============================================= */

:root {
  --navy: #1a3557;
  --navy-dark: #122640;
  --navy-light: #2a4a72;
  --safety-orange: #f97316;
  --slate: #6b7d8e;
  --slate-light: #8a9bab;
  --slate-muted: #a8b5c2;
  --white: #ffffff;
  --off-white: #f7f9fb;
  --gray-50: #f0f3f6;
  --gray-100: #e4e9ee;
  --gray-200: #d1d9e0;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(26, 53, 87, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 53, 87, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 53, 87, 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --header-height: 72px;
  --container-max: 1360px;
  --section-padding: clamp(4rem, 8vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  color: var(--slate);
}

strong {
  color: var(--navy);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.eyebrow-light {
  color: var(--slate-muted);
}

.section-lead {
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 1.5rem);
}

.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* Arch divider */
.arch-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--slate-muted);
  opacity: 0.5;
}

.arch-divider svg {
  width: 80px;
  height: 28px;
}

.arch-divider-light {
  color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: var(--off-white);
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* =============================================
   Header
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--navy);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  transition: color 0.2s;
}

.header-phone:hover {
  color: var(--navy-light);
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  margin: 0 auto;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-50);
}

.nav-mobile .mobile-phone {
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.5rem;
}

.nav-mobile .btn {
  margin-top: 0.75rem;
  text-align: center;
}

@media (min-width: 900px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.25rem, 5vw, 4rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2rem, 3vw, 3.5rem);
  }
}

.hero-content {
  max-width: 600px;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -8px -8px 8px 8px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 16 / 11;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  margin: 1.25rem 0 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-badges svg {
  width: 18px;
  height: 18px;
  color: var(--slate);
  flex-shrink: 0;
}

/* =============================================
   What We Do
   ============================================= */
#what-we-do {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.section-alt .service-card {
  background: var(--white);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  color: var(--navy);
  position: relative;
}

.service-icon::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--slate-muted);
  border-radius: 2px;
  opacity: 0.4;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin-bottom: 0.625rem;
}

.service-card p {
  font-size: 0.9375rem;
}

/* =============================================
   Why Arcline — Trust Cards
   ============================================= */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .trust-card {
    grid-column: span 2;
  }

  .trust-card:nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  .trust-card:last-child {
    grid-column: 4 / span 2;
  }
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.trust-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: 50%;
  color: var(--navy);
  position: relative;
}

.trust-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1.5px solid var(--gray-100);
  border-radius: 50%;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-card h3 {
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.9375rem;
}

/* =============================================
   Industries
   ============================================= */
#industries {
  background: var(--navy);
}

#industries .eyebrow,
#industries h2,
#industries .section-lead {
  color: var(--white);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.industry-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.industry-card:hover {
  background: var(--off-white);
  box-shadow: var(--shadow-md);
  border-color: var(--white);
}

.industry-card-wide {
  grid-column: 1 / -1;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
}

@media (min-width: 640px) {
  .industry-card-wide {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .industry-card-wide {
    grid-column: span 4;
  }
}

.industry-card-wide .industry-icon {
  margin: 0;
  flex-shrink: 0;
}

.industry-card-wide h3 {
  margin-bottom: 0.25rem;
}

.industry-card-wide p {
  font-size: 0.9375rem;
  color: var(--slate);
}

.industry-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--safety-orange);
}

.industry-icon svg {
  width: 26px;
  height: 26px;
}

.industry-card h3 {
  font-size: 0.9375rem;
  color: var(--navy);
}

/* =============================================
   How It Works
   ============================================= */
.steps-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (min-width: 900px) {
  .steps-grid {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
  }
}

.step-card {
  flex: 1;
  max-width: 340px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 4vw, 2.5rem) 1.75rem 2rem;
  text-align: center;
  position: relative;
}

.step-number {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 9vw, 6.75rem);
  line-height: 0.9;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  margin-bottom: 0.625rem;
}

.step-card p {
  font-size: 0.9375rem;
}

.step-connector {
  display: none;
  color: var(--slate-muted);
  padding: 0 0.25rem;
  align-self: center;
}

.step-connector svg {
  width: 48px;
  height: 24px;
}

@media (min-width: 900px) {
  .step-connector {
    display: flex;
  }
}

/* Mobile step connectors */
@media (max-width: 899px) {
  .step-card {
    margin-bottom: 2rem;
  }

  .step-card:last-child {
    margin-bottom: 0;
  }
}

/* =============================================
   Environment
   ============================================= */
.environment-section {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.environment-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .environment-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.environment-content h2 {
  margin-bottom: 1rem;
}

.environment-content p {
  margin-bottom: 1rem;
}

.environment-list {
  margin-top: 1.5rem;
}

.environment-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9375rem;
  padding: 0.5rem 0;
}

.environment-list svg {
  width: 18px;
  height: 18px;
  color: var(--slate);
  flex-shrink: 0;
}

.environment-visual {
  position: relative;
}

.environment-visual::before {
  content: '';
  position: absolute;
  inset: 8px -8px -8px 8px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.environment-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* =============================================
   About
   ============================================= */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
  }
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slate);
}

/* =============================================
   Contact
   ============================================= */
.contact-section {
  background: var(--navy);
  color: var(--white);
  padding-top: var(--section-padding);
}

.contact-section h2 {
  color: var(--white);
}

.contact-section .section-lead,
.contact-info > p {
  color: var(--slate-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
  }
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.2s;
}

.contact-detail:hover {
  color: var(--slate-muted);
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--slate-light);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lg);
}

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

@media (min-width: 540px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-group label span[aria-hidden="true"] {
  color: var(--navy-light);
}

.optional {
  font-weight: 400;
  color: var(--slate);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--navy-dark);
  background: var(--off-white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7d8e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 53, 87, 0.1);
  background: var(--white);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--slate);
  text-align: center;
  margin-top: 0.875rem;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.form-success svg {
  width: 24px;
  height: 24px;
  color: var(--navy);
  flex-shrink: 0;
}

.form-success p {
  font-size: 0.9375rem;
  color: var(--navy);
}

.form-success[hidden] {
  display: none;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  color: var(--slate-muted);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.625rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--slate-light);
}

.footer-area {
  font-size: 0.8125rem;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.9375rem;
  color: var(--slate-muted);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--slate-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--slate);
  text-align: center;
}
