:root {
  --harvan-navy: #101a30;
  --harvan-navy-light: #1c2c4d;
  --harvan-yellow: #f4c518;
  --harvan-orange: #e2521b;
  --text-light: #f5f6f8;
  --text-muted: #c7cddb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--harvan-navy);
  color: var(--text-light);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(16, 26, 48, 0.85), rgba(16, 26, 48, 0));
}

.site-header.is-solid {
  background: var(--harvan-navy);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand span {
  color: var(--harvan-yellow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a {
  padding: 0.2rem 0.35rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.lang-switch a.active {
  color: var(--harvan-yellow);
  opacity: 1;
}

.lang-switch a:hover {
  opacity: 1;
}

.lang-switch span {
  color: var(--text-muted);
  opacity: 0.5;
}

.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--harvan-yellow);
  color: var(--harvan-yellow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
}

/* ---------- Hero Slideshow ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
  width: 100%;
  overflow: hidden;
  background: var(--harvan-navy);
}

.slideshow {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 15, 28, 0.65) 0%,
    rgba(10, 15, 28, 0.22) 45%,
    rgba(10, 15, 28, 0.12) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 6vw 12vh;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--harvan-yellow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: var(--text-light);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  max-width: 46ch;
}

.hero-content p:last-of-type {
  margin-bottom: 0;
}

.slide-dots {
  position: absolute;
  z-index: 3;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  gap: 0.6rem;
}

.slide-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.slide-dots button.is-active {
  background: var(--harvan-yellow);
  border-color: var(--harvan-yellow);
  opacity: 1;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 2.5rem;
  left: 6vw;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scroll-cue::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--text-muted);
}

/* ---------- Footer strip (shown on both pages) ---------- */

.site-footer {
  background: var(--harvan-navy-light);
  padding: 2.5rem 6vw;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-info strong {
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--harvan-yellow);
  color: var(--harvan-navy);
}

.btn-outline {
  border: 2px solid var(--text-muted);
  color: var(--text-light);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ---------- Contact page ---------- */

.page-hero {
  position: relative;
  padding: 9rem 6vw 4rem;
  background: linear-gradient(rgba(10, 15, 28, 0.82), rgba(10, 15, 28, 0.82)), url("../images/slide-03.jpg");
  background-size: cover;
  background-position: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-hero .hero-eyebrow {
  margin-bottom: 0.75rem;
}

.contact-section {
  padding: 4rem 6vw 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-card {
  background: var(--harvan-navy-light);
  border-radius: 8px;
  padding: 2.2rem;
  border-top: 4px solid var(--harvan-yellow);
}

.contact-card h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--harvan-yellow);
  margin-bottom: 1rem;
}

.contact-card a.value,
.contact-card .value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  word-break: break-word;
}

.contact-card a.value:hover {
  color: var(--harvan-yellow);
}

.contact-card .value-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.contact-card .value + .value-label {
  margin-top: 1rem;
}

.contact-card p.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.certificate-section {
  padding: 0 6vw 6rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.certificate-box {
  background: var(--harvan-navy-light);
  border-radius: 8px;
  padding: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  border-top: 4px solid var(--harvan-orange);
}

.certificate-box h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.certificate-box p {
  color: var(--text-muted);
  max-width: 55ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70vw;
    max-width: 300px;
    background: var(--harvan-navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

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

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .hero-content {
    padding: 0 6vw 16vh;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .footer-info {
    justify-content: center;
  }

  /* Re-center each slideshow photo's focal point (truck cab/branding)
     for the narrow crop a portrait phone screen forces on a wide photo. */
  .slide:nth-child(1) img { object-position: 38% center; }
  .slide:nth-child(2) img { object-position: 60% center; }
  .slide:nth-child(3) img { object-position: 100% center; }
  .slide:nth-child(4) img { object-position: 50% center; }
  .slide:nth-child(5) img { object-position: center; }
}
