/* ==========================================================================
   Perennial Maritime Holdings — Institutional Stylesheet
   Zero-dependency, pure CSS3 architecture.
   ========================================================================== */

/* 1. Self-Hosted Typography (@font-face)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/newsreader-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/newsreader-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/newsreader-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./assets/fonts/plus-jakarta-sans-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/plus-jakarta-sans-500-normal.woff2') format('woff2');
}

/* 2. Design Tokens & Color Palette
   -------------------------------------------------------------------------- */
:root {
  /* Dominant Maritime Blues */
  --navy-deep: #081D32;       /* Deep Midnight Navy */
  --navy-rich: #0D2B48;       /* Rich Maritime Navy */
  --blue-ocean: #17466D;      /* Ocean Blue */
  --blue-steel: #527A9B;      /* Muted Steel Blue */
  --blue-ice: #E4EDF4;        /* Pale Ice Blue */
  --white-crisp: #FFFFFF;     /* Crisp White */

  /* Subtle Structural Hairlines */
  --border-subtle: rgba(82, 122, 155, 0.24);
  --border-faint: rgba(228, 237, 244, 0.12);

  /* Typography Families */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Proportions */
  --container-max: 1200px;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
}

/* 3. Reset & Foundational Document Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--navy-deep);
  color: var(--blue-ice);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  background-color: var(--navy-deep);
  color: var(--blue-ice);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background-color: var(--blue-ocean);
  color: var(--white-crisp);
}

a {
  -webkit-tap-highlight-color: rgba(82, 122, 155, 0.18);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background-color: var(--navy-deep);
  color: var(--white-crisp);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--blue-steel);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--white-crisp);
  outline-offset: 2px;
}

/* Shared Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ==========================================================================
   A & B. Hero Stage, Integrated Header & Hero Typography
   ========================================================================== */

.hero-stage {
  position: relative;
  width: 100%;
  /* Aspect-matched height ensures the wide ocean photograph and complete vessel
     never crop horizontally on standard viewports while filling the first impression */
  height: clamp(600px, 60vw, 940px);
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--navy-deep);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Frame the vessel cleanly in the lower-middle ocean expanse,
     leaving generous calm sky above for the header and hero typography */
  object-position: center 58%;
}

/* Controlled navy & ocean-blue gradient overlay:
   - Deep Midnight Navy at the top for crisp header and headline legibility
   - Transparent middle band to showcase the vessel and rich deep-blue sea
   - Seamless transition at the bottom into Rich Maritime Navy (#0D2B48) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(8, 29, 50, 0.86) 0%,
    rgba(13, 43, 72, 0.68) 24%,
    rgba(13, 43, 72, 0.26) 44%,
    rgba(8, 29, 50, 0.04) 62%,
    rgba(8, 29, 50, 0.28) 82%,
    rgba(13, 43, 72, 0.94) 96%,
    #0D2B48 100%
  );
  pointer-events: none;
}

/* A. Minimalist Header & Navigation */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid var(--border-faint);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  gap: 1.5rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--white-crisp);
  transition: opacity 0.25s ease;
}

.brand-lockup:hover,
.brand-lockup:focus-visible {
  opacity: 0.88;
}

.brand-lockup:focus-visible {
  outline: 1px solid var(--blue-ice);
  outline-offset: 6px;
}

.brand-emblem {
  width: 2.125rem; /* 34px */
  height: 2.125rem;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(8, 29, 50, 0.35));
}

.wordmark {
  font-family: var(--font-sans);
  font-size: 0.78125rem; /* 12.5px */
  font-weight: 500;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  color: var(--white-crisp);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.75rem; /* 12px */
  font-weight: 400;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--blue-ice);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--white-crisp);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white-crisp);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-link:focus-visible {
  outline: 1px solid var(--blue-ice);
  outline-offset: 6px;
}

.nav-separator {
  color: var(--blue-steel);
  font-size: 0.75rem;
  font-weight: 300;
  padding: 0 1.25rem;
  user-select: none;
  opacity: 0.75;
}

/* B. Hero Content & Typography */
.hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(2.5rem, 5.2vh, 4.5rem);
  padding-bottom: 2rem;
}

.hero-content {
  width: 100%;
}

.hero-text-group {
  max-width: 1080px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.35vw, 2.55rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--white-crisp);
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(8, 29, 50, 0.45);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.05vw, 1.875rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--blue-ice);
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 18px rgba(8, 29, 50, 0.45);
}

.hero-supporting {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.08vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.035em;
  color: rgba(228, 237, 244, 0.9);
  text-shadow: 0 1px 14px rgba(8, 29, 50, 0.45);
}

/* ==========================================================================
   C. Investment Philosophy & D. Contact Sections
   ========================================================================== */

.section {
  padding-top: clamp(6rem, 11vw, 10rem);
  padding-bottom: clamp(6rem, 11vw, 10rem);
}

.section-philosophy {
  background: linear-gradient(180deg, var(--navy-rich) 0%, #0A233B 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-contact {
  background-color: var(--navy-deep);
}

.editorial-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: 2rem;
  align-items: baseline;
}

.editorial-label-col {
  grid-column: 1 / 5;
}

.editorial-content-col {
  grid-column: 5 / 13;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.65vw, 2.375rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.005em;
  color: var(--white-crisp);
  position: relative;
  padding-top: 1.35rem;
}

.section-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 1px;
  background-color: var(--blue-steel);
}

.philosophy-body {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.42vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.008em;
  color: var(--blue-ice);
  max-width: 54ch;
}

.philosophy-body + .philosophy-body {
  margin-top: 1.65rem;
}

/* Contact Typography & Link */
.contact-supporting {
  font-family: var(--font-sans);
  font-size: clamp(0.96875rem, 1.15vw, 1.09375rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--blue-steel);
  margin-bottom: 0.85rem;
}

.contact-address {
  line-height: 1.4;
}

.contact-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6875rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white-crisp);
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--blue-steel);
  word-break: break-word;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--blue-ice);
  border-bottom-color: var(--white-crisp);
}

.contact-link:focus-visible {
  outline: 1px solid var(--blue-ice);
  outline-offset: 6px;
}

/* ==========================================================================
   E. Footer
   ========================================================================== */

.site-footer {
  background-color: var(--navy-deep);
  border-top: 1px solid var(--border-faint);
  padding-top: 2.75rem;
  padding-bottom: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-emblem {
  width: 1.5rem; /* 24px */
  height: 1.5rem;
  flex-shrink: 0;
  display: block;
  opacity: 0.85;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.8125rem; /* 13px */
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--blue-steel);
}

/* ==========================================================================
   Responsive Design (Large Monitors, Laptops, Tablets & Mobile Devices)
   ========================================================================== */

@media (min-width: 1600px) {
  .hero-image {
    object-position: center 60%;
  }
}

@media (max-width: 960px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .editorial-label-col {
    grid-column: 1 / -1;
  }

  .editorial-content-col {
    grid-column: 1 / -1;
  }

  .hero-title {
    letter-spacing: 0.08em;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: clamp(1.25rem, 5.5vw, 2.25rem);
  }

  .hero-stage {
    height: clamp(520px, 142vw, 680px);
    max-height: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1.05rem;
    padding-bottom: 0.95rem;
    min-height: auto;
    gap: 0.45rem;
  }

  .brand-lockup {
    gap: 0.625rem;
  }

  .brand-emblem {
    width: 1.6875rem; /* 27px */
    height: 1.6875rem;
  }

  .wordmark {
    font-size: 0.6875rem; /* 11px */
    letter-spacing: 0.155em;
  }

  .nav-link {
    font-size: 0.6875rem; /* 11px */
    letter-spacing: 0.15em;
    padding: 0.4rem 0;
  }

  .nav-separator {
    padding: 0 0.85rem;
  }

  /* Mobile uses the dedicated 2:3 portrait crop (hero-vessel-mobile.webp)
     matched to the hero-stage height so 100% of the vessel is visible */
  .hero-image {
    object-position: center 50%;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 29, 50, 0.88) 0%,
      rgba(13, 43, 72, 0.78) 28%,
      rgba(13, 43, 72, 0.36) 46%,
      rgba(8, 29, 50, 0.04) 58%,
      rgba(8, 29, 50, 0.24) 80%,
      rgba(13, 43, 72, 0.94) 95%,
      #0D2B48 100%
    );
  }

  .hero {
    padding-top: 1.6rem;
    padding-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(0.9375rem, 3.65vw, 1.35rem);
    letter-spacing: 0.055em;
    line-height: 1.26;
    margin-bottom: 0.65rem;
    text-wrap: balance;
  }

  .hero-subtitle {
    font-size: clamp(1.05rem, 3.85vw, 1.35rem);
    margin-bottom: 0.5rem;
  }

  .hero-supporting {
    font-size: clamp(0.8125rem, 3.35vw, 0.9375rem);
    letter-spacing: 0.02em;
    line-height: 1.55;
  }

  .section {
    padding-top: clamp(4.25rem, 12vw, 6.25rem);
    padding-bottom: clamp(4.25rem, 12vw, 6.25rem);
  }

  .section-heading {
    font-size: clamp(1.55rem, 5.6vw, 2rem);
    padding-top: 1.15rem;
  }

  .philosophy-body {
    font-size: clamp(1rem, 4.1vw, 1.125rem);
    line-height: 1.82;
  }

  .contact-link {
    font-size: clamp(1.125rem, 4.4vw, 1.45rem);
  }

  .site-footer {
    padding-top: 2.25rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 359px) {
  .wordmark {
    font-size: 0.625rem; /* 10px */
    letter-spacing: 0.13em;
  }

  .hero-title {
    font-size: 0.9375rem;
    letter-spacing: 0.045em;
  }
}
