/* ============================================================
   NMP — Maritime Corporate Stylesheet
   Palette: #16214E · #304769 · #FCCA37 · #F4CD5B · #53ABE0 · #FEFEFE
   style.css2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@100..900&family=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&display=swap');

/* ── Reset & Base ──────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  color: #16214E;
  background-color: #FEFEFE;
  background-image: url("./images/background-img.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 0.45s ease;
  overflow-x: hidden;
}

body.nmp-loaded {
  opacity: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Typography — Golden Ratio Scale (~1.618) ──────────────── */
/* Base: 16px → ×1.618 → 26px → ×1.618 → 42px               */

h1 {
  font-family: 'Noto Serif Display', sans-serif;
  font-size: clamp(2rem, 5vw, 2.625rem); /* ~42px */
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

h2 {
  font-family: 'Noto Serif Display', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.625rem); /* ~26px */
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

h3 {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.25rem; /* ~20px */
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

p {
  font-size: 1rem; /* 16px base */
  font-weight: 300;
  color: #304769;
  line-height: 1.8;
}

address {
  font-style: normal;
  font-weight: 300;
  color: #304769;
  line-height: 1.9;
}

/* ── Container ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ── Header ────────────────────────────────────────────────── */

header {
  background-color: #16214E;
  border-bottom: 3px solid #FCCA37;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  gap: 2rem;
}

header h1 {
  color: #FEFEFE;
  font-size: 1.75rem;
  letter-spacing: 0.12em;
}

/* ── Navigation ────────────────────────────────────────────── */

nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav ul li a {
  font-family: 'Noto Sans', sans-serif;;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F4CD5B;
  padding-bottom: 4px;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FCCA37;
  transition: width 0.25s ease;
}

nav ul li a:hover {
  color: #FCCA37;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ── Hero Section ──────────────────────────────────────────── */

main > section:first-child {
  background-color: #16214E;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(83, 171, 224, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(48, 71, 105, 0.6) 0%, transparent 60%);
  text-align: center;
  padding: 7rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  border-radius: 0px 0px 12px 12px;
}

main > section:first-child::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #FCCA37 30%, #53ABE0 70%, transparent);
}

main > section:first-child h2 {
  font-family: 'Noto Sans', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #FEFEFE;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

main > section:first-child p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: #53ABE0;
  letter-spacing: 0.03em;
  max-width: 640px;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.18s, transform 0.6s ease 0.18s;
}

main > section:first-child h2.nmp-hero-in,
main > section:first-child p.nmp-hero-in {
  opacity: 1;
  transform: translateY(0);
  text-align: center;
}

/* ── About Section ─────────────────────────────────────────── */

main > section:nth-child(2) {
  padding: 5rem 2rem;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

main > section:nth-child(2) h2 {
  color: #16214E;
}

main > section:nth-child(2) h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background-color: #FCCA37;
  margin: 0.75rem auto 0;
}

main > section:nth-child(2) p {
  font-size: 1.0625rem;
  max-width: 680px;
  margin-inline: auto;
}

/* ── What We Do Section ────────────────────────────────────── */

main > section:nth-child(3) {
  background-color: #16214E;
  padding: 5.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 1.75rem;
  row-gap: 0;
  align-items: start;
  border-radius: 12px;
}

main > section:nth-child(3) > h2 {
  grid-column: 1 / -1;
  color: #FEFEFE;
  text-align: center;
  margin-bottom: 2.5rem;
}

main > section:nth-child(3) > h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background-color: #FCCA37;
  margin: 0.75rem auto 0;
}

main > section:nth-child(3) article {
  background-color: #304769;
  border-top: 3px solid #53ABE0;
  border-radius: 2px;
  padding: 2.25rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 12px;
}

main > section:nth-child(3) article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(22, 33, 78, 0.28);
}

main > section:nth-child(3) h3 {
  color: #FCCA37;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

main > section:nth-child(3) p {
  color: #F4CD5B;
  font-weight: 300;
  font-size: 0.9375rem;
}

/* ── Owners Section ────────────────────────────────────────── */

main > section:nth-child(4) {
  padding: 5.5rem 2.5rem;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 1.75rem;
  row-gap: 10px;
  align-items: start;
  border-radius: 12px;
}

main > section:nth-child(4) > h2 {
  grid-column: 1 / -1;
  text-align: center;
  color: #FEFEFE;
  margin-bottom: 2.5rem;
}

main > section:nth-child(4) > h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background-color: #FCCA37;
  margin: 0.75rem auto 0;
}

main > section:nth-child(4) article {
  border: 1px solid #53ABE0;
  border-top: 4px solid #16214E;
  border-radius: 2px;
  padding: 2.25rem 2rem;
  background-color: #FEFEFE;
  box-shadow: 0 4px 20px rgba(22, 33, 78, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}

main > section:nth-child(4) article:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(22, 33, 78, 0.1);
  border-top-color: #FCCA37;
}

main > section:nth-child(4) h3 {
  color: #16214E;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

main > section:nth-child(4) article > p:first-of-type {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #53ABE0;
  margin-bottom: 1rem;
}

main > section:nth-child(4) article > p:last-of-type {
  font-size: 0.9375rem;
  color: #F4CD5B;
}

/* ── Contact Page — Contact Us Section ────────────────────── */

main > section:first-child:not(:has(+ section > .container > article)) {
  padding: 5.5rem 2rem;
  margin-inline: auto;
  text-align: left;
}

/* Contact Us intro section (first section on contact.html) */
main > section:has(a[href^="mailto"]) {
  padding: 5.5rem 2rem 4rem;
  max-width: 700px;
  margin-inline: auto;
}

main > section:has(a[href^="mailto"]) h2 {
  color: #d4ce76;
  margin-bottom: 0.5rem;
}

main > section:has(a[href^="mailto"]) h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background-color: #FCCA37;
  margin: 0.75rem 0 0;
}

main > section:has(a[href^="mailto"]) > p {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  color: #F4CD5B;
  font-size: 1.0625rem;
}

/* ── Mail Us Button ────────────────────────────────────────── */

a[href^="mailto"] {
  display: inline-block;
}

a[href^="mailto"] button,
button[type="button"] {
  display: inline-block;
  background-color: #FCCA37;
  color: #16214E;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(252, 202, 55, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a[href^="mailto"]:hover button,
button[type="button"]:hover {
  background-color: #F4CD5B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 202, 55, 0.45);
}

a[href^="mailto"]:active button,
button[type="button"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(252, 202, 55, 0.2);
}

/* ── Contact Details Section ───────────────────────────────── */

main > section:last-of-type {
  background-color: #16214E;
  padding: 5rem 2rem;
  margin: 2rem 0rem 2rem 0rem;
  border-radius: 12px;
}

main > section:last-of-type .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.75rem;
  align-items: start;
  max-width: 1100px;
  margin-inline: auto;
}

main > section:last-of-type .container > h2 {
  grid-column: 1 / -1;
  color: #FEFEFE;
  text-align: center;
  margin-bottom: 0.75rem;
}

main > section:last-of-type .container > h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background-color: #FCCA37;
  margin: 0.75rem auto 0;
}

/* Email & Phone sit in row 1 (2 columns) */
main > section:last-of-type .container > article:nth-of-type(1),
main > section:last-of-type .container > article:nth-of-type(2) {
  grid-column: auto;
}

/* Location spans full width in row 2 */
main > section:last-of-type .container > article.location {
  grid-column: 1 / -1;
}

main > section:last-of-type article {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 3px solid #53ABE0;
  background-color: #304769;
  border-radius: 2px;
  transition: transform 0.25s ease, background-color 0.25s ease;
  border-radius: 12px;
}

main > section:last-of-type article:hover {
  transform: translateY(-3px);
  background-color: #16214E;
  box-shadow: 0 0 0 1px #53ABE0;
}

main > section:last-of-type h3 {
  color: #FCCA37;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

main > section:last-of-type p,
main > section:last-of-type address {
  color: #FEFEFE;
  font-size: 0.9375rem;
  font-weight: 300;
}
main > section:last-of-type address iframe{
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
  border-radius: 12px;
}

main > section:last-of-type a {
  color: #F4CD5B;
  transition: color 0.2s ease;
}

main > section:last-of-type a:hover {
  color: #FCCA37;
}

/* ── Contact Action Buttons ────────────────────────────────── */

.nmp-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.nmp-btn {
  display: inline-block;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Primary — Gmail Web */
.nmp-btn--primary {
  background-color: #FCCA37;
  color: #16214E;
  box-shadow: 0 4px 16px rgba(252, 202, 55, 0.3);
}

.nmp-btn--primary:hover {
  background-color: #F4CD5B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 202, 55, 0.45);
}

.nmp-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(252, 202, 55, 0.2);
}

/* Secondary — Mail App */
.nmp-btn--secondary {
  background-color: #FCCA37;
  color: #16214E;
  box-shadow: 0 4px 16px rgba(252, 202, 55, 0.3);
}

.nmp-btn--secondary:hover {
  background-color: #F4CD5B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 202, 55, 0.45);
}

.nmp-btn--secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(252, 202, 55, 0.2);
}

/* ── Footer ────────────────────────────────────────────────── */

footer {
  background-color: #16214E;
  border-top: 3px solid #FCCA37;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-radius: 12px 12px 0px 0px;
}

footer p:first-child {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FEFEFE;
}

footer p:last-child {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #53ABE0;
}

/* ── Scroll Reveal ─────────────────────────────────────────── */

.nmp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.nmp-reveal.nmp-visible {
  opacity: 1;
  transform: translateY(0);
}

.nmp-reveal:nth-child(2) { transition-delay: 0.1s; }
.nmp-reveal:nth-child(3) { transition-delay: 0.2s; }
.nmp-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   Breakpoints: 1024px (tablet) · 768px (mobile) · 480px (small)
   ═══════════════════════════════════════════════════════════ */

/* ── 1024px — Tablet ───────────────────────────────────────── */

@media (max-width: 1024px) {

  /* What We Do: 3-col → 2-col */
  main > section:nth-child(3) {
    grid-template-columns: 1fr 1fr;
    padding: 4.5rem 2rem;
    row-gap: 1.5rem;
  }

  main > section:nth-child(3) > h2 {
    grid-column: 1 / -1;
  }

  /* Owners: 3-col → 2-col */
  main > section:nth-child(4) {
    grid-template-columns: 1fr 1fr;
    padding: 4.5rem 2rem;
    row-gap: 1.5rem;
  }

  main > section:nth-child(4) > h2 {
    grid-column: 1 / -1;
  }

}

/* ── 768px — Mobile ────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Header stacks logo over nav */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  nav ul {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  /* Hero */
  main > section:first-child {
    padding: 4rem 1.5rem 3.5rem;
  }

  /* About */
  main > section:nth-child(2) {
    padding: 3.5rem 1.5rem;
    max-width: 100%;
  }

  /* What We Do: 2-col → 1-col */
  main > section:nth-child(3) {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem;
    row-gap: 1.25rem;
    column-gap: 0;
  }

  main > section:nth-child(3) > h2 {
    grid-column: 1;
    margin-bottom: 1.75rem;
  }

  /* Owners: 2-col → 1-col */
  main > section:nth-child(4) {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem;
    row-gap: 1.25rem;
    column-gap: 0;
  }

  main > section:nth-child(4) > h2 {
    grid-column: 1;
    margin-bottom: 1.75rem;
  }

  /* Contact intro */
  main > section:has(a[href^="mailto"]) {
    padding: 3.5rem 1.5rem 3rem;
    max-width: 100%;
  }

  /* Contact details: 2-col → 1-col */
  main > section:last-of-type {
    padding: 3.5rem 1.5rem;
    margin: 1.5rem 0;
  }

  main > section:last-of-type .container {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
    padding-inline: 0;
  }

  main > section:last-of-type .container > h2 {
    grid-column: 1;
  }

  main > section:last-of-type .container > article.location {
    grid-column: 1;
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

}

/* ── 480px — Small Mobile ──────────────────────────────────── */

@media (max-width: 480px) {

  nav ul {
    gap: 1rem;
  }

  main > section:nth-child(3),
  main > section:nth-child(4) {
    padding: 3rem 1.25rem;
  }

  main > section:has(a[href^="mailto"]) {
    padding: 3rem 1.25rem 2.5rem;
  }

  main > section:last-of-type {
    padding: 3rem 1.25rem;
    margin: 1rem 0;
  }

  /* Contact action buttons: stack full width */
  .nmp-contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nmp-btn {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
  }

  /* Legacy mailto button fallback */
  a[href^="mailto"] button,
  button[type="button"] {
    width: 100%;
    text-align: center;
  }

  /* Prevent heading letter-spacing from causing overflow */
  h1,
  h2 {
    letter-spacing: 0.02em;
    word-break: break-word;
  }

}