/* =========================================================
   FOSTEN INTERNATIONAL
   Premium Logistics Website
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --black: #080808;
  --dark: #101010;
  --white: #f5f3ee;
  --muted: #99958d;
  --line: rgba(245, 243, 238, 0.16);
  --accent: #d6b36a;
  --max: 1400px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* =========================================================
   PRELOADER
   ========================================================= */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: grid;
  place-items: center;
}

.loader-logo {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.08em;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 28px 5vw;

  transition:
    background 0.4s ease,
    padding 0.4s ease,
    backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(18px);
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.logo span {
  font-size: 0.45em;
  vertical-align: top;
  margin-left: 3px;
}

nav {
  display: flex;
  gap: 34px;
}

nav a {
  position: relative;
  color: rgba(245, 243, 238, 0.78);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--white);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-button {
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  transition: 0.3s ease;
}

.nav-button:hover {
  background: var(--white);
  color: var(--black);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
 min-height: 100vh;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.48) 52%,
            rgba(0, 0, 0, 0.20) 100%
        );
}

/* ===== HERO TEXT LAYOUT ===== */

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), 90%);
    margin: auto;
    padding-top: 120px;
}

/* Company name */
.hero-kicker {
    position: relative;
    z-index: 5;

    margin: 0 0 24px 0 !important;

    font-size: clamp(11px, 1vw, 15px);
    font-weight: 600;
    letter-spacing: 0.20em;
    line-height: 1.4;

    color: #D6B36A;
}

/* MAIN HEADLINE */
.hero h1 {
    position: relative;
    z-index: 10;

    display: flex !important;
    flex-direction: column !important;

    margin: 0 0 32px 0 !important;
    padding: 0 !important;

    font-family: var(--display);
    font-size: clamp(52px, 7vw, 155px);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.055em;

    color: #FFFFFF !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.hero h1 span {
    display: block !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Subtle dark-to-light heading variation */
.hero h1 span:nth-child(1) {
    color: #F5F3EE !important;
}

.hero h1 span:nth-child(2) {
    color: #FFFFFF !important;
}

.hero h1 span:nth-child(3) {
    color: #FFFFFF !important;
}

/* Description */
.hero p {
    position: relative;
    z-index: 5;

    max-width: 560px;
    margin: 0 0 40px 0 !important;

    color: rgba(245, 243, 238, 0.82);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Buttons */
.hero-actions {
    position: relative;
    z-index: 20;

    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 0 !important;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  background: var(--accent);
  color: var(--black);
}

.button.secondary {
  border: 1px solid rgba(245,243,238,0.35);
  background: rgba(0,0,0,0.15);
}

.button.secondary:hover {
  background: var(--white);
  color: var(--black);
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 5vw;
  right: 5vw;

  display: flex;
  justify-content: space-between;

  color: rgba(245,243,238,0.55);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

/* =========================================================
   MANIFESTO
   ========================================================= */

.manifesto {
  min-height: 100vh;
  max-width: var(--max);
  width: 90%;
  margin: auto;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 9vw;

  padding: 12vw 0;
}

.manifesto-image {
  min-height: 650px;
  position: relative;
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 650px;

  display: flex;
  align-items: flex-end;
  padding: 35px;

  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.08em;

  background:
    linear-gradient(135deg, #333 0%, #111 48%, #252525 100%);
}

.manifesto-copy h2,
.service-intro h2,
.network h2,
.quote-intro h2,
.closing h2 {
  margin-top: 22px;

  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 700;
}

.manifesto-copy h2 em,
.closing h2 em {
  font-style: normal;
  color: var(--accent);
}

.manifesto-copy p {
  max-width: 500px;
  margin-top: 35px;

  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.text-link {
  display: inline-block;
  margin-top: 32px;

  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

/* =========================================================
   STATEMENT
   ========================================================= */

.statement {
  min-height: 80vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--white);
  color: var(--black);
}

.statement-inner {
  width: min(1000px, 88%);
  text-align: center;
}

.statement .section-label {
  color: #777;
}

.statement h2 {
  margin-top: 25px;

  font-family: "Manrope", sans-serif;
  font-size: clamp(3.5rem, 8vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.09em;
}

.statement p {
  max-width: 600px;
  margin: 35px auto 0;

  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services {
  padding: 12vw 0;
  overflow: hidden;
}

.service-intro {
  width: 90%;
  max-width: var(--max);
  margin: auto;
}

.service-intro p {
  max-width: 450px;
  margin-top: 30px;
  color: var(--muted);
}

.service-pin {
  margin-top: 90px;
  overflow: hidden;
}

.service-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-left: 5vw;
  padding-right: 5vw;
}

.service-card {
  width: min(430px, 75vw);
  min-height: 520px;

  padding: 38px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: #111;
  border: 1px solid var(--line);

  transition:
    transform 0.5s ease,
    background 0.5s ease;
}

.service-card:hover {
  transform: translateY(-12px);
  background: #171717;
}

.service-number {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.service-card h3 {
  margin-top: auto;

  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.service-card p {
  max-width: 330px;
  margin-top: 25px;

  color: var(--muted);
  line-height: 1.6;
}

.service-card button {
  width: max-content;
  margin-top: 30px;

  background: none;
  border: 0;
  color: var(--white);

  font-size: 0.8rem;
  font-weight: 700;
}

/* =========================================================
   NETWORK
   ========================================================= */

.network {
  padding: 13vw 5vw;
  background: #111;
}

.network-inner {
  max-width: var(--max);
  margin: auto;

  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 10vw;
  align-items: center;
}

.network-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.network-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.network-stats div {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.network-stats strong {
  display: block;

  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.network-stats span {
  display: block;
  margin-top: 8px;

  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

/* =========================================================
   QUOTE / RFQ
   ========================================================= */

.quote {
  width: 90%;
  max-width: var(--max);
  margin: auto;

  padding: 13vw 0;
}

.quote-intro {
  max-width: 800px;
}

.quote-intro p {
  max-width: 520px;
  margin-top: 35px;
  color: var(--muted);
  line-height: 1.7;
}

.rfq {
  margin-top: 90px;
}

.form-section {
  padding: 45px 0;
  border-top: 1px solid var(--line);
}

.form-section h3 {
  margin-bottom: 30px;

  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

input,
textarea {
  width: 100%;

  border: 1px solid var(--line);
  background: #101010;
  color: var(--white);

  padding: 18px 20px;
  outline: none;

  border-radius: 2px;

  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(215,255,63,0.7);
  background: #151515;
}

input::placeholder,
textarea::placeholder {
  color: #666;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-grid label {
  cursor: pointer;
}

.choice-grid input {
  display: none;
}

.choice-grid span {
  display: block;

  padding: 15px 22px;

  border: 1px solid var(--line);
  border-radius: 100px;

  color: #aaa;
  font-size: 0.8rem;

  transition: 0.3s ease;
}

.choice-grid label:hover span,
.choice-grid input:checked + span {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.sea-field {
  display: block;
}

.submit-button {
  margin-top: 30px;

  border: 0;
  border-radius: 100px;

  padding: 18px 30px;

  background: var(--accent);
  color: var(--black);

  font-weight: 800;
  cursor: pointer;

  transition: transform 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-3px);
}

#formStatus {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* =========================================================
   CLOSING
   ========================================================= */

.closing {
  min-height: 90vh;

  display: flex;
  align-items: center;

  padding: 10vw 5vw;

  background:
    radial-gradient(
      circle at 70% 30%,
      #303030 0,
      #121212 35%,
      #080808 70%
    );
}

.closing-inner {
  width: min(var(--max), 100%);
  margin: auto;
}

.closing h2 {
  max-width: 1000px;
}

.closing .button {
  margin-top: 45px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 55px 5vw;

  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;

  border-top: 1px solid var(--line);

  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-logo {
  color: var(--white);

  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.07em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  #nav {
    padding: 20px 5vw;
  }

  nav {
    display: none;
  }

  .nav-button {
    padding: 10px 16px;
  }

  .hero-content {
    padding-top: 150px;
  }

  .hero h1 {
    font-size: clamp(4rem, 17vw, 8rem);
  }

  .hero h1 span:nth-child(2) {
    padding-left: 0;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-bottom {
    font-size: 0.55rem;
  }

  .manifesto {
    grid-template-columns: 1fr;
    padding: 100px 0;
  }

  .manifesto-image,
  .image-placeholder {
    min-height: 450px;
  }

  .network-inner {
    grid-template-columns: 1fr;
  }

  .network-stats {
    margin-top: 45px;
  }

  .service-pin {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .service-pin::-webkit-scrollbar {
    display: none;
  }

  .service-track {
    padding-bottom: 10px;
  }

  .service-card {
    min-height: 440px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {

  #nav {
    padding: 16px 5vw;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero-content {
    width: 90%;
  }

  .hero h1 {
    font-size: 19vw;
  }

  .hero p {
    margin-top: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-bottom {
    bottom: 18px;
  }

  .hero-bottom span:last-child {
    display: none;
  }

  .manifesto-image,
  .image-placeholder {
    min-height: 350px;
  }

  .manifesto-copy h2,
  .service-intro h2,
  .network h2,
  .quote-intro h2,
  .closing h2 {
    font-size: 15vw;
  }

  .statement {
    min-height: 65vh;
  }

  .statement h2 {
    font-size: 16vw;
  }

  .service-card {
    width: 82vw;
    min-height: 420px;
  }

  .network-stats {
    grid-template-columns: 1fr;
  }

  .quote {
    padding: 100px 0;
  }

  .rfq {
    margin-top: 60px;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}/* FOSTEN NAVIGATION LOGO */
header#nav .logo {
  display: flex;
  align-items: center;
  width: 150px;
  height: 45px;
}

header#nav .logo img {
  width: 200px !important;
  height: 120px !important;
  max-width: 200px !important;
  max-height: 120px !important;
  object-fit: contain;
  display: block;
}