/* ==========================================================================
   BTKMAR — BTK Shipping and Logistics Ltd.
   Stylesheet
   ========================================================================== */

:root {
  /* Palette */
  --color-navy-900: #08243a;
  --color-navy-800: #0b3a5c;
  --color-navy-700: #0e4a75;
  --color-navy-600: #145d92;
  --color-sky-500: #1ba8e0;
  --color-sky-400: #3fbcec;
  --color-white: #ffffff;
  --color-gray-50: #f6f8fa;
  --color-gray-100: #eef1f4;
  --color-gray-200: #dfe4e9;
  --color-gray-500: #6b7785;
  --color-gray-700: #3b4552;
  --color-text: #1c2733;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(8, 36, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 36, 58, 0.12);
  --shadow-lg: 0 16px 48px rgba(8, 36, 58, 0.18);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-height: 76px;
}

/* --------------------------------------------------------------------- */
/* Reset                                                                  */
/* --------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-sky-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy-800);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section-heading {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 800;
  color: var(--color-navy-800);
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 62ch;
  color: var(--color-gray-500);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  margin-top: var(--space-3);
}

.section-head {
  margin-bottom: var(--space-6);
  text-align: center;
  margin-inline: auto;
}

.section-head .section-intro {
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  color: var(--color-navy-700);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-2);
}

section {
  padding-block: var(--space-8);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-sky-500);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-sky-400);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy-800);
  border-color: var(--color-navy-800);
}

.btn-outline:hover {
  background: var(--color-navy-800);
  color: var(--color-white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 rgba(8, 36, 58, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy-800);
  letter-spacing: -0.01em;
}

.brand img {
  height: 44px;
  max-height: 44px;
  width: auto;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-weight: 600;
  color: var(--color-navy-800);
  font-size: 0.95rem;
  position: relative;
  padding-block: var(--space-1);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background: var(--color-sky-500);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-cta {
  display: inline-flex;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy-800);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav-links {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-3) var(--space-4) var(--space-5);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .nav-links a {
    display: block;
    padding: var(--space-3) 0;
  }

  .nav-actions .nav-cta {
    display: none;
  }

  .nav-links .nav-cta-mobile {
    display: block;
    margin-top: var(--space-3);
  }

  .nav-links .btn {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .nav-cta-mobile {
    display: none;
  }
}

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

.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(8, 36, 58, 0.92) 0%,
    rgba(11, 58, 92, 0.78) 45%,
    rgba(11, 58, 92, 0.45) 100%
  );
}

.hero-content {
  max-width: 720px;
  padding-block: var(--space-8);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-sky-400);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: clamp(2.75rem, 2rem + 3.2vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-tagline {
  margin-top: var(--space-4);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  color: var(--color-white);
}

.hero-sub {
  margin-top: var(--space-3);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* --------------------------------------------------------------------- */
/* About                                                                  */
/* --------------------------------------------------------------------- */

.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text .eyebrow {
  display: block;
}

.about-text h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 800;
  color: var(--color-navy-800);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.about-text p {
  color: var(--color-gray-700);
  font-size: 1.05rem;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------- */
/* Strengths                                                              */
/* --------------------------------------------------------------------- */

.strengths {
  background: var(--color-gray-50);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.strength-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.strength-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-navy-800), var(--color-sky-500));
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.strength-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

.strength-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy-800);
  margin-bottom: var(--space-2);
}

.strength-card p {
  color: var(--color-gray-500);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------- */
/* Services                                                               */
/* --------------------------------------------------------------------- */

.services {
  background: var(--color-white);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  isolation: isolate;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 24, 40, 0.92) 10%, rgba(8, 24, 40, 0.35) 55%, rgba(8, 24, 40, 0.05) 100%);
}

.service-content {
  padding: var(--space-5);
  color: var(--color-white);
}

.service-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.service-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

/* --------------------------------------------------------------------- */
/* CTA band                                                               */
/* --------------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding-block: var(--space-8);
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.cta-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 24, 40, 0.92), rgba(11, 58, 92, 0.82));
}

.cta-band .container {
  max-width: 760px;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--space-5);
}

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

.contact {
  background: var(--color-gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy-800);
  margin-bottom: var(--space-4);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(27, 168, 224, 0.12);
  color: var(--color-navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.contact-item .label {
  font-size: 0.8rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-item a,
.contact-item span.value {
  font-weight: 600;
  color: var(--color-navy-800);
}

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

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 320px;
  height: 100%;
  border: 1px solid var(--color-gray-200);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.map-frame-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-5);
  background: linear-gradient(160deg, var(--color-navy-800), var(--color-navy-700));
  color: var(--color-white);
  text-decoration: none;
  transition: background 0.2s ease;
}

.map-frame-link:hover,
.map-frame-link:focus-visible {
  background: var(--color-navy-700);
}

.map-frame-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--color-sky-400);
}

.map-frame-text {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.map-frame-text strong {
  font-weight: 600;
}

.map-frame-text span:last-child {
  color: var(--color-sky-400);
  font-weight: 500;
}

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */

.site-footer {
  background: var(--color-navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding-block: var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-brand img {
  height: 40px;
  width: auto;
  border-radius: 4px;
  background: var(--color-white);
  padding: 2px;
}

.footer-brand span {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-white);
}

.footer-tagline {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-contact a:hover {
  color: var(--color-sky-400);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
