:root {
  --color-dark: #393536;
  --color-dark-2: #4a4547;
  --color-accent: #ffd230;
  --color-accent-dark: #e6bb00;
  --color-light: #f5f6f7;
  --color-text: #2b2829;
  --color-muted: #737373;
  --max-width: 1200px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: #fff;
  color: var(--color-text);
  border-bottom: 1px solid #e7e9eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 68px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a:not(.btn) {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: inset 0 -2px 0 transparent;
  padding-bottom: 4px;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).active {
  color: var(--color-dark);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-dark);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(57, 53, 54, 0.92) 0%, rgba(57, 53, 54, 0.55) 60%, rgba(57, 53, 54, 0.35) 100%),
    url("../assets/photos/hero-load-transport.jpg") center 65% / cover no-repeat;
  color: #fff;
  padding: 100px 0 90px;
}

.hero .eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.25;
  max-width: 780px;
  margin: 0 0 20px;
}

.hero p {
  max-width: 620px;
  color: #cdd1d5;
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page header (non-home pages) */
.page-header {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: #fff;
  padding: 64px 0;
}

.page-header--services {
  background:
    linear-gradient(120deg, rgba(57, 53, 54, 0.92) 0%, rgba(57, 53, 54, 0.6) 60%, rgba(57, 53, 54, 0.4) 100%),
    url("../assets/photos/gantry-frame-load.jpg") center 40% / cover no-repeat;
}

.page-header--about {
  background:
    linear-gradient(120deg, rgba(57, 53, 54, 0.92) 0%, rgba(57, 53, 54, 0.6) 60%, rgba(57, 53, 54, 0.4) 100%),
    url("../assets/photos/marine-civil-load.jpg") center 50% / cover no-repeat;
}

.page-header h1 {
  margin: 0 0 12px;
  font-size: 2.1rem;
}

.page-header p {
  color: #cdd1d5;
  max-width: 640px;
  margin: 0;
}

/* Sections */
section {
  padding: 72px 0;
}

section.alt {
  background: var(--color-light);
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading .eyebrow {
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: 1.9rem;
  margin: 0 0 12px;
}

.section-heading p {
  color: var(--color-muted);
  max-width: 640px;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: #fff;
  border: 1px solid #e7e9eb;
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.card p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.95rem;
}

.card .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-detail {
  border-bottom: 1px solid #e7e9eb;
  padding: 36px 0;
}

.service-detail:first-of-type {
  padding-top: 0;
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.service-detail p {
  color: var(--color-muted);
  max-width: 760px;
  margin: 0;
}

/* Industries */
.pill-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pill {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Photo gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--color-light);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(57, 53, 54, 0.85) 0%, rgba(57, 53, 54, 0) 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.fleet-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.fleet-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item .label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.contact-item a {
  text-decoration: none;
  color: var(--color-text);
}

.contact-item a:hover {
  color: var(--color-accent);
}

/* Forms */
form {
  background: #fff;
}

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

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d3d6d9;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 8px;
}

.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e6f4ea;
  color: #1e7b34;
  border: 1px solid #b7e0c3;
}

.form-status.error {
  display: block;
  background: #fbe9e7;
  color: #a83220;
  border: 1px solid #f2c4bc;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #b7bcc1;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 16px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  text-decoration: none;
  color: #b7bcc1;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #34393f;
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e7e9eb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .grid-3,
  .grid-2,
  .contact-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2rem;
  }
}
