/* NFG Transportation — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
  font-family: "Passenger Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Passenger Display"),
    url("../fonts/PassengerDisplay.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/27bae36ad650990931267f74ec981ce6.woff2") format("woff2");
}

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

:root {
  --site-header-block: 7rem;
  --font-text: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --bg: #ffffff;
  --surface: #f7f9fa;
  --text: #111827;
  --muted: #4b5563;
  --accent: #008B4B;
  --accent-hover: #00753f;
  --border: #e5e7eb;
  --navy: #0c2340;
}

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.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;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ═══════════════════════════════════════════
   Site footer
   ═══════════════════════════════════════════ */

.site-footer {
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  padding: 1.5rem 1.25rem 1.65rem;
  border-top: 1px solid var(--border);
}

.site-footer__legal {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════
   Navigation — base (shared layout; home uses --page like inner pages)
   ═══════════════════════════════════════════ */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: transparent;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.site-header .logo img {
  display: block;
  height: clamp(3rem, 8vw, 4rem);
  width: auto;
  max-width: min(36rem, 90vw);
  object-fit: contain;
}

.site-header .logo:hover img {
  opacity: 0.88;
}

.site-header .logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.5);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   Navigation — fixed white bar (stays on screen while scrolling)
   ═══════════════════════════════════════════ */

.site-header--page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.95rem 2.5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: none;
  box-shadow: none;
}

/* Inner pages: first hero sits below the fixed bar */
.site-header--page ~ .page-hero {
  margin-top: var(--site-header-block);
}

.site-header--page .logo img {
  height: clamp(2.85rem, 6.25vw, 3.75rem);
  max-width: min(18rem, 58vw);
}

.site-header--page .site-nav a {
  color: var(--text);
  text-shadow: none;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

.site-header--page .site-nav a:hover {
  color: #f59e0b;
}

.site-header--page .site-nav a[aria-current="page"] {
  color: #f59e0b;
  font-weight: 600;
}

/* Mobile menu toggle (hidden on large screens) */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 5;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bar {
  display: block;
  width: 1.375rem;
  height: 2px;
  border-radius: 1px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header--page .nav-toggle__bar {
  background: var(--text);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header--nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header--nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header--nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* ═══════════════════════════════════════════
   Home Hero (preserved)
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  height: calc(100svh - var(--site-header-block));
  min-height: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Home: full-viewport hero; fixed header overlays the top of the video */
.home-first-screen {
  min-height: 100svh;
  height: 100svh;
}

.home-first-screen .hero {
  height: 100%;
  min-height: 0;
  justify-content: stretch;
  align-items: stretch;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
}

.hero__bg .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hero__overlay {
  display: none;
}

.hero__title:not(.sr-only) {
  margin: 0;
  font-family: "Passenger Display", var(--font-text);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  margin: 0;
  font-family: "Passenger Display", var(--font-text);
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  color: rgba(232, 234, 237, 0.95);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0 1.5rem;
}

.hero__subtitle--fade {
  position: relative;
  max-width: min(90vw, 40rem);
  padding: 0;
  text-align: center;
  line-height: 1.25;
  opacity: 0;
  animation: hero-fade-in 5s ease-out 0.35s forwards;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__tagline {
  position: absolute;
  bottom: 40%;
  left: 0;
  right: 0;
  margin: 0;
  font-family: "Passenger Display", var(--font-text);
  font-size: clamp(1.05rem, 2.8vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  line-height: 1.3;
}

.hero__tagline--fade {
  opacity: 0;
  animation: hero-fade-in 5s ease-out 0.35s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero__subtitle--fade {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__tagline--fade {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════
   Inner Page Hero Banner
   ═══════════════════════════════════════════ */

.page-hero {
  position: relative;
  height: 44vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--services {
  height: 70vh;
  min-height: 460px;
}

.page-hero--services img {
  object-fit: contain;
  background: var(--navy);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 35, 64, 0.45) 0%,
    rgba(12, 35, 64, 0.65) 100%
  );
}

.page-hero__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.35);
}

/* ═══════════════════════════════════════════
   Content Sections (About / Services)
   ═══════════════════════════════════════════ */

.content-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.content-section + .content-section {
  border-top: 1px solid var(--border);
}

.content-section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.content-section p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.075rem;
  margin: 0 0 1.5rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* Two-column layout for About / Services */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.two-col--reverse .two-col__text {
  order: -1;
}

.two-col img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .content-section {
    padding: 4rem 1.5rem;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .two-col--reverse .two-col__text {
    order: 0;
  }
}

/* ═══════════════════════════════════════════
   Services Cards
   ═══════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-card__body {
  padding: 1.75rem;
}

.service-card__body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.service-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   Contact Section (Home page)
   ═══════════════════════════════════════════ */

#about {
  scroll-margin-top: var(--site-header-block);
}

/* ═══════════════════════════════════════════
   Diagonal contact wrapper
   ═══════════════════════════════════════════ */

.contact-wrapper {
  position: relative;
  background: #000000;
  clip-path: polygon(0 8vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
  padding-top: 8vw;
}

.page {
  scroll-margin-top: var(--site-header-block);
  padding: 5rem 2rem 6rem;
  max-width: 36rem;
  margin: 0 auto;
}

.page.page--contact {
  max-width: min(82rem, calc(100% - 2.5rem));
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(1.5rem, 5vw, 3.5rem);
}

.contact-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 11vw, 8rem);
  align-items: start;
}

.contact-info,
.contact-split__form {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.contact-info {
  justify-self: start;
  max-width: 26rem;
}

.contact-split__form {
  justify-self: end;
  width: 100%;
  max-width: min(28rem, 100%);
}

.contact-split__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.contact-split__lead {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.65;
}

.contact-info__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info__item {
  margin: 0;
}

.contact-info__item dt {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.contact-info__item dd {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
}

.contact-info__item a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease;
}

.contact-info__item a:hover {
  border-bottom-color: var(--accent);
}

.contact-info__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-info__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
  border-bottom: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease,
    transform 0.15s ease;
}

.contact-info__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.contact-info__social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-info__social-link svg {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-info__social-link .contact-info__social-icon--instagram {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page__header {
  margin-bottom: 2.5rem;
}

.page__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 139, 75, 0.12);
}

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

.form-group--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.contact-form__status {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 10px;
  border: 1px solid transparent;
}

.contact-form__status--success {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 139, 75, 0.2);
  border-color: rgba(0, 139, 75, 0.45);
}

.contact-form__status--error {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.4);
}

.contact-split__form form {
  position: relative;
}

/* ═══════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════ */

.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--navy);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: #081a31;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(12, 35, 64, 0.3);
}

.btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.btn--on-dark {
  background: #ffffff;
  color: #000000;
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
}

.btn--on-dark:focus-visible {
  outline-color: #ffffff;
}

/* ═══════════════════════════════════════════
   Responsive — small screens
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2;
    margin: 0;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-header--nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.35rem 0 0.85rem;
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform-origin: top center;
    transform: scaleY(0.96) translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-header:not(.site-header--page) .site-nav {
    background: rgba(17, 24, 39, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
  }

  .site-header--page .site-nav {
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: none;
  }

  .site-header--nav-open .site-nav {
    transform: scaleY(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 1.35rem;
    font-size: 1rem;
    text-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-header:not(.site-header--page) .site-nav a {
    color: rgba(255, 255, 255, 0.95);
  }

  .site-header:not(.site-header--page) .site-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
  }

  .site-header:not(.site-header--page) .site-nav a[aria-current="page"] {
    color: #86efac;
    font-weight: 600;
  }

  .site-header--page .site-nav a {
    color: var(--text);
    border-bottom-color: var(--border);
  }

  .site-header--page .site-nav a:hover {
    color: var(--accent);
    background: var(--surface);
  }

  .site-header--page .site-nav a[aria-current="page"] {
    color: var(--accent);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .logo {
    position: relative;
    z-index: 5;
  }
}

body.nav-menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info,
  .contact-split__form {
    justify-self: stretch;
    max-width: none;
  }

  .page.page--contact {
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1.25rem;
  }
  .site-header--page {
    padding: 0.7rem 1.25rem;
  }
  .page {
    padding: 3rem 1.25rem 4rem;
  }
}
