/* ==========================================================================
   Freightcan Logistics W.L.L. - Cinematic Editorial Coming Soon Page
   Brand Colors (Derived from official Freightcan Logo SVG):
   - Freightcan Navy: #19174F
   - Freightcan Lime: #BDD635
   - Surface Warm Neutral: #F8F9F5
   - Muted Text: #555975
   ========================================================================== */

:root {
  --color-navy: #19174F;
  --color-navy-dark: #110F38;
  --color-lime: #BDD635;
  --color-bg-surface: #F8F9F5;
  --color-text-main: #19174F;
  --color-text-muted: #555975;
  --color-text-subtle: #82869E;
  --color-border-line: rgba(25, 23, 79, 0.12);

  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-surface);
  color: var(--color-text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Master Editorial Split Layout */
.editorial-layout {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg-surface);
  overflow: hidden;
}

/* Left Content Area (56%) */
.content-panel {
  flex: 0 0 56%;
  padding: 4.5rem 5.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 5;
  background-color: var(--color-bg-surface);
}

/* Header & Logo */
.header {
  animation: revealLogo 1.25s var(--ease-editorial) 0.12s both;
}

.logo {
  width: 280px;
  max-width: 300px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Main Content Body */
.main-body {
  margin: auto 0;
  max-width: 720px;
}

/* Status Indicator: Entrance & Breathing Separation */
.status-reveal {
  display: inline-block;
  margin-bottom: 1.5rem;
  animation: revealStatus 1.3s var(--ease-editorial) 0.22s both;
}

.status-breathe {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  transform-origin: left center;
  will-change: opacity, transform;
  animation: status-breathe 4.8s ease-in-out 1.6s infinite both;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-lime);
  display: inline-block;
  flex-shrink: 0;
  transform-origin: center;
  will-change: transform;
  animation: status-dot-scale 4.8s ease-in-out 1.6s infinite both;
}

@keyframes status-breathe {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.985);
  }

  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes status-dot-scale {

  0%,
  100% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.3);
  }
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-lime);
  display: inline-block;
  flex-shrink: 0;
}

/* Synchronized continuous pulse animation for lime dot */
.status-breathe.is-breathing .status-dot {
  transform-origin: center;
  animation: status-dot-pulse 4.8s ease-in-out infinite;
}

.status-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-navy);
  text-transform: uppercase;
}

/* Keyframes: Synchronized Lime Dot Pulse */
@keyframes status-dot-pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.75);
  }

  50% {
    opacity: 1;
    transform: scale(1.45);
  }
}

/* Forced Two-Line Headline on Desktop */
.headline {
  font-size: clamp(3.8rem, 5.8vw, 6.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--color-navy);
  margin-bottom: 1.75rem;
  white-space: nowrap;
  animation: revealHeadline 1.55s var(--ease-editorial) 0.33s both;
}

/* Supporting Copy */
.supporting-text {
  font-size: clamp(1.05rem, 1.2vw, 1.225rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: revealParagraph 1.4s var(--ease-editorial) 0.5s both;
}

/* Refined Contact Rail (No Container Card) */
.contact-rail {
  display: flex;
  align-items: flex-start;
  gap: 3.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border-line);
  max-width: 600px;
  animation: revealContact 1.35s var(--ease-editorial) 0.65s both;
}

.contact-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}

.contact-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.35s var(--ease-editorial), color 0.35s var(--ease-editorial);
}

.contact-link:hover {
  color: var(--color-navy-dark);
  transform: translateX(3px);
  text-decoration: underline;
  text-decoration-color: var(--color-lime);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Right Photographic Field (44%) */
.media-panel {
  flex: 0 0 44%;
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 1;
  background-color: #111536;
  animation: revealPhoto 1.9s var(--ease-editorial) 0s both;
}

/* Narrow Soft Blend Strip (160px wide at left edge of image container) */
.media-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 160px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg,
      #F8F9F5 0%,
      rgba(248, 249, 245, 0.96) 22%,
      rgba(248, 249, 245, 0.62) 55%,
      rgba(248, 249, 245, 0.18) 82%,
      rgba(248, 249, 245, 0) 100%);
}

.image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

/* Subtle Dark Tonal Overlay */
.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 27, 70, 0.14) 0%, rgba(23, 27, 70, 0.28) 100%);
  pointer-events: none;
}

/* Footer */
.footer {
  width: 100%;
  z-index: 10;
  padding-top: 1.75rem;
  animation: revealFooter 1.1s var(--ease-editorial) 0.76s both;
}

.copyright {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-subtle);
  letter-spacing: 0.02em;
}

/* Keyboard Focus States */
:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 4px;
}

/* ==========================================================================
   Coordinated Entrance Keyframe Animations
   ========================================================================== */

@keyframes revealPhoto {
  from {
    opacity: 0;
    transform: scale(1.018);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealLogo {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealStatus {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealHeadline {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealParagraph {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealContact {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealFooter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Laptop Heights / Reduced Viewports */
@media (max-height: 780px) and (min-width: 901px) {
  .content-panel {
    padding: 3.5rem 4.5rem 2.5rem;
  }

  .header {
    margin-bottom: 1.25rem;
  }

  .logo {
    width: 285px;
  }

  .headline {
    font-size: clamp(3.2rem, 5.0vw, 4.8rem);
    margin-bottom: 1.25rem;
  }

  .supporting-text {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }

  .contact-rail {
    padding-top: 1.35rem;
  }
}

/* Tablet & Mobile Layout (< 900px) */
@media (max-width: 900px) {

  html,
  body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .editorial-layout {
    flex-direction: column;
    min-height: 100dvh;
  }

  .content-panel {
    flex: none;
    width: 100%;
    padding: 2.25rem 1.5rem 1.75rem;
    justify-content: flex-start;
  }

  .logo {
    width: 185px;
  }

  .main-body {
    margin: 3.5rem 0 0;
  }

  .headline {
    font-size: clamp(2.2rem, 7.5vw, 3.3rem);
    white-space: normal;
    line-height: 1.1;
    margin-bottom: 1.25rem;
  }

  .supporting-text {
    max-width: 100%;
    margin-bottom: 1.75rem;
  }

  /* Mobile Contact Rail */
  .contact-rail {
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.35rem;
    max-width: 100%;
  }

  /* Mobile Media Panel */
  .media-panel {
    flex: none;
    width: 100%;
    height: 36vh;
    min-height: 240px;
  }

  .media-panel::before {
    width: 100%;
    height: 54px;
    inset: 0 0 auto 0;
    background: linear-gradient(180deg,
        #F8F9F5 0%,
        rgba(248, 249, 245, 0.82) 30%,
        rgba(248, 249, 245, 0) 100%);
  }
}

/* Small Mobile Screens (< 480px) */
@media (max-width: 480px) {
  .content-panel {
    padding: 2rem 1.25rem 1.5rem;
  }

  .logo {
    width: 165px;
  }

  .status-text {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
  }

  .headline {
    font-size: 1.95rem;
    line-height: 1.12;
  }

  .supporting-text {
    font-size: 0.975rem;
  }

  .contact-link {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

  .status-breathe,
  .status-dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}