/* ========================================
   MK ENTERPRISE AND LOGISTICS
   SHARED WEBSITE STYLES
======================================== */

:root {
  --green: #123d2c;
  --dark: #09271c;
  --lime: #cefa69;
  --cream: #f6f7ef;
  --text: #173e2e;
  --muted: #697b6d;
  --border: #d6dfcf;
}

/* ========================================
   RESET AND BASE
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

::selection {
  color: var(--dark);
  background: var(--lime);
}

:focus-visible {
  outline: 3px solid #90b94e;
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1240px, 90%);
  margin-inline: auto;
}

.section {
  padding: 95px 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h2 {
  font-size: clamp(34px, 4vw, 53px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.16;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  color: var(--dark);
  background: var(--lime);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}

.dark-eyebrow::before {
  content: "";
  width: 23px;
  height: 2px;
  flex-shrink: 0;
  background: currentColor;
}

/* ========================================
   BUTTONS
======================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  padding: 17px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.button:hover {
  transform: translateY(-4px);
}

.button span {
  font-size: 22px;
  line-height: 1;
}

.button-lime {
  background: var(--lime);
  color: var(--dark);
}

.button-lime:hover {
  background: #dfff98;
  box-shadow: 0 12px 25px #cefa6920;
}

/* ========================================
   HEADER AND NAVIGATION
======================================== */

.page-top {
  color: white;
  background: var(--green);
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 10;
}

.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid #ffffff20;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-symbol {
  font-family: "Manrope", sans-serif;
  color: var(--lime);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -5px;
  padding-right: 5px;
}

.logo-text {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 21px;
}

.navigation > a {
  padding-block: 10px;
  color: #c5d5c8;
  font-size: 12px;
  transition: color 0.25s;
}

.navigation > a:hover,
.navigation > a[aria-current="page"] {
  color: var(--lime);
}

.navigation > a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 8px;
}

.navigation .nav-quote {
  margin-left: 5px;
  padding: 13px 18px;
  border: 1px solid #ffffff40;
  border-radius: 40px;
  color: white;
}

/*
  Hidden by default, including after JavaScript
  removes the HTML hidden attribute.
*/
.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 22px;
  line-height: 1;
}

/* ========================================
   PAGE INTRODUCTIONS
======================================== */

.page-hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 35px;
  padding-block: 65px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 6px #cefa6910;
}

h1 {
  margin: 26px 0;
  font-size: clamp(44px, 5vw, 69px);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1.1;
}

h1 span {
  color: var(--lime);
}

.hero-copy > p {
  max-width: 460px;
  color: #c0d1c3;
  font-size: 14px;
  line-height: 1.9;
}

.hero-copy .button {
  margin-top: 28px;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid #ffffff20;
  color: #b8cebd;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.hero-bottom a {
  color: var(--lime);
}

/* ========================================
   SERVICES HERO GRAPHIC
======================================== */

.hero-visual,
.audience-visual {
  position: relative;
  height: 370px;
  display: grid;
  place-items: center;
  min-width: 0;
}

.visual-orbit {
  position: absolute;
  width: 350px;
  max-width: 100%;
  aspect-ratio: 1;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-small {
  width: 270px;
}

.supply-stack {
  position: relative;
  width: 290px;
  height: 290px;
  animation: float 7s ease-in-out infinite;
}

.stack-tile {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 28px;
  transform: rotate(-13deg) skewY(6deg);
  box-shadow: 12px 24px 35px #00180c45;
}

.tile-back {
  top: 60px;
  left: 55px;
  background: #527d36;
}

.tile-middle {
  top: 32px;
  left: 28px;
  background: #93bd50;
}

.tile-front {
  top: 4px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--green);
  background: linear-gradient(135deg, #ebffb2, #b5e35d);
}

.tile-front > span {
  font-family: "Manrope", sans-serif;
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -9px;
  padding-right: 9px;
}

.tile-front small {
  font-size: 8px;
  letter-spacing: 1px;
}

.visual-spark {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--lime);
  font-size: 58px;
  animation: spin 30s linear infinite;
}

.visual-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  background: #28553eaa;
  backdrop-filter: blur(15px);
}

.visual-caption > span {
  font-family: "Manrope", sans-serif;
  font-size: 31px;
  color: var(--lime);
}

.visual-caption p {
  font-size: 10px;
  line-height: 1.7;
  color: #d3e0d2;
}

/* ========================================
   SERVICE CARDS
======================================== */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 40px;
}

.section-heading .eyebrow {
  margin-bottom: 22px;
}

.section-heading > p {
  max-width: 285px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 29px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff55;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: #edf4df;
  border-color: #a9c28b;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.card-top > span:first-child {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #7b8b74;
}

.category-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #e5edda;
  color: #527641;
  font-size: 28px;
}

.service-card h3 {
  min-height: 58px;
  margin-bottom: 15px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.7px;
  line-height: 1.3;
}

.service-card > p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.service-card .delivery-note {
  margin-top: 12px;
  font-size: 11px;
}

.delivery-note span {
  color: var(--green);
}

.brief-hint {
  margin-top: 25px;
  margin-bottom: 25px;
  padding-top: 19px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.brief-hint > span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
}

.card-link span {
  font-size: 20px;
}

/* ========================================
   QUOTE PREPARATION SECTION
======================================== */

.planning-section {
  padding: 65px 0;
  background: #e8eedf;
}

.planning-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.planning-layout .eyebrow {
  margin-bottom: 22px;
}

.planning-items {
  display: grid;
  gap: 25px;
}

.planning-item {
  display: flex;
  align-items: start;
  gap: 17px;
}

.planning-item > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  border: 1px solid #b2c0a5;
  border-radius: 50%;
  font-size: 10px;
}

.planning-item h3 {
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 600;
}

.planning-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* ========================================
   AUDIENCE HERO
======================================== */

.audience-visual {
  isolation: isolate;
}

.sector-tile {
  position: absolute;
  padding: 22px 27px;
  border: 1px solid #ffffff25;
  border-radius: 14px;
  background: #2a5840;
  box-shadow: 0 15px 30px #00160b33;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  animation: float 7s ease-in-out infinite;
}

.sector-one {
  top: 25px;
  left: 10%;
  transform: rotate(-9deg);
}

.sector-two {
  top: 110px;
  right: 0;
  background: var(--lime);
  color: var(--green);
  transform: rotate(8deg);
  animation-delay: -1s;
}

.sector-three {
  top: 165px;
  left: 0;
  transform: rotate(-5deg);
  animation-delay: -2s;
}

.sector-four {
  bottom: 25px;
  left: 19%;
  background: #97bd61;
  color: var(--dark);
  transform: rotate(7deg);
  animation-delay: -3s;
}

.sector-five {
  bottom: 90px;
  right: 0;
  transform: rotate(-7deg);
  animation-delay: -4s;
}

/* ========================================
   SECTOR ROWS
======================================== */

.sectors-list {
  border-top: 1px solid var(--border);
}

.sector-row {
  display: grid;
  grid-template-columns: 75px 1fr 55px;
  align-items: start;
  gap: 30px;
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}

.sector-number {
  padding-top: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #82917a;
}

.sector-content {
  min-width: 0;
}

.sector-content h3 {
  margin-bottom: 15px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -1px;
}

.sector-content > p {
  max-width: 630px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 21px;
}

.service-tags a {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: #5a7253;
  font-size: 10px;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.service-tags a:hover {
  background: #e3edce;
  border-color: #a7be89;
}

.sector-action {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border: 1px solid #c2d0b6;
  border-radius: 50%;
  font-size: 24px;
  transition:
    background 0.3s,
    transform 0.3s;
}

.sector-action:hover {
  background: var(--lime);
  transform: rotate(8deg);
}

/* ========================================
   CLOSING QUOTE BANNER
======================================== */

.quote-section {
  padding: 75px 0;
}

.quote-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 55px;
  border-radius: 22px;
  background: var(--green);
  color: white;
}

.quote-banner .eyebrow {
  margin-bottom: 22px;
  color: var(--lime);
}

.quote-banner h2 {
  font-size: clamp(32px, 3.8vw, 49px);
}

.quote-banner p {
  margin-top: 20px;
  color: #bcd0c0;
  font-size: 13px;
  line-height: 1.8;
}

.quote-banner .button {
  flex-shrink: 0;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  padding: 40px 0 23px;
  background: var(--dark);
  color: white;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-bottom: 32px;
}

.footer-top p {
  color: #acc1ae;
  font-size: 12px;
}

.footer-top > a:last-child {
  color: var(--lime);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #ffffff20;
  color: #9db5a3;
  font-size: 10px;
  line-height: 1.8;
}

/* ========================================
   POP-UP ENTRANCE ANIMATIONS
======================================== */

.motion-ready .pop {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
}

.motion-ready .pop.is-visible {
  animation: pop-in 0.75s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -13px;
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 20px;
  }

  .navigation {
    flex-wrap: wrap;
    gap: 15px;
  }

  .navigation > a {
    font-size: 11px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
  }

  .planning-layout {
    gap: 40px;
  }
}

/* ========================================
   DESKTOP NAVIGATION
======================================== */

@media (min-width: 761px) {
  /*
    The hamburger remains hidden even after
    JavaScript removes its hidden attribute.
  */
  .menu-toggle,
  .nav-ready .menu-toggle:not([hidden]) {
    display: none;
  }

  /*
    Keep desktop links visible regardless
    of the previous mobile menu state.
  */
  .nav-ready .navigation,
  .nav-ready .navigation.open {
    display: flex;
    position: static;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 760px) {
  .section {
    padding: 65px 0;
  }

  .header-inner {
    min-height: 83px;
    padding-block: 18px;
  }

  /*
    Only show the hamburger on mobile
    after navigation JavaScript is ready.
  */
  .nav-ready .menu-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  /*
    Without JavaScript, links stay visible
    and the hamburger stays hidden.
  */
  .navigation {
    width: 100%;
    padding-top: 12px;
  }

  .nav-ready .navigation {
    display: none;
    position: absolute;
    top: 78px;
    left: 5%;
    right: 5%;
    width: auto;
    padding: 20px;
    border: 1px solid #ffffff25;
    border-radius: 13px;
    background: #1d4c35;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 0 20px 35px #00180c35;
  }

  .nav-ready .navigation.open {
    display: flex;
  }

  .navigation > a {
    font-size: 13px;
  }

  .navigation .nav-quote {
    margin: 8px 0 0;
    text-align: center;
  }

  .page-hero {
    grid-template-columns: 1fr;
    padding-block: 45px 30px;
    gap: 25px;
  }

  h1 {
    font-size: clamp(43px, 9vw, 65px);
    letter-spacing: -2.5px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-visual,
  .audience-visual {
    height: 330px;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }

  .visual-orbit {
    width: 300px;
  }

  .orbit-small {
    width: 235px;
  }

  .supply-stack {
    transform: scale(0.9);
  }

  .visual-spark {
    font-size: 48px;
  }

  .hero-bottom {
    font-size: 8px;
    letter-spacing: 0.8px;
    line-height: 1.8;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading > p {
    margin-top: 23px;
  }

  .service-card {
    padding: 23px;
  }

  .service-card h3 {
    font-size: 21px;
  }

  .planning-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .sector-row {
    grid-template-columns: 30px 1fr 42px;
    gap: 15px;
    padding: 30px 0;
  }

  .sector-action {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .sector-content > p {
    font-size: 13px;
  }

  .sector-tile {
    padding: 19px 23px;
    font-size: 15px;
  }

  .sector-two {
    top: 90px;
  }

  .sector-three {
    top: 145px;
  }

  .sector-four {
    bottom: 15px;
  }

  .sector-five {
    bottom: 75px;
  }

  .quote-section {
    padding: 55px 0;
  }

  .quote-banner {
    display: block;
    padding: 35px 25px;
  }

  .quote-banner .button {
    margin-top: 28px;
  }

  .footer-top {
    flex-direction: column;
    align-items: start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 500px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card h3 {
    min-height: auto;
    font-size: 24px;
  }

  .card-top {
    margin-bottom: 26px;
  }

  .sector-row {
    grid-template-columns: 1fr 42px;
    gap: 10px;
  }

  .sector-number {
    grid-column: 1 / -1;
    padding-top: 0;
    margin-bottom: 8px;
  }
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .motion-ready .pop,
  .motion-ready .pop.is-visible {
    opacity: 1;
    transform: none;
  }
}