/* ==========================================================================
   Portlink Logistics and Marine Services LTD — Stylesheet
   ========================================================================== */

:root {
  --navy: #0d3b66;
  --navy-dark: #082744;
  --steel: #5c7284;
  --steel-light: #eaf6f4;
  --teal: #14b8a6;
  --teal-dark: #0c8f81;
  --gold: #f5a623;
  --coral: #ff7a59;
  --white: #ffffff;
  --off-white: #f8faf9;
  --border: #dde8e6;
  --text: #16232f;
  --text-muted: #51677a;
  --shadow: 0 8px 24px rgba(13, 59, 102, 0.1);
  --radius: 10px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin-top: 0; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 10px;
  display: block;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-alt { background: var(--off-white); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: #c9d5e0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(13,59,102,0.06);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 128px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: Georgia, serif;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text .name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.brand-text .sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: "Segoe UI", sans-serif;
}

.brand-logo {
  height: 93px;
  width: auto;
  display: block;
}
.site-header .brand-logo {
  width: clamp(260px, 40vw, 540px);
}
.brand-logo-footer {
  height: 111px;
}
@media (max-width: 900px) {
  .site-header .brand-logo { width: auto; }
}
@media (max-width: 620px) {
  .brand-logo { height: 73px; }
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover {
  color: var(--teal-dark);
  background: rgba(13,59,102,0.07);
  text-decoration: none;
}
.main-nav a.active {
  color: var(--teal-dark);
  background: rgba(20,184,166,0.14);
  font-weight: 700;
  text-decoration: none;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
}
.main-nav .nav-cta {
  background: var(--teal);
  color: var(--white);
  margin-left: 8px;
}
.main-nav .nav-cta:hover { background: var(--teal-dark); color: var(--white); }
.main-nav .nav-cta.active {
  background: var(--teal-dark);
  color: var(--white);
  font-weight: 700;
}
.main-nav .nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: 0.2s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal-dark) 130%);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 90px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 150 Q 180 100 360 150 T 720 150 T 1080 150 T 1440 150 V200 H0 Z' fill='%23ffffff' fill-opacity='0.04'/%3E%3Cpath d='M0 170 Q 180 120 360 170 T 720 170 T 1080 170 T 1440 170 V200 H0 Z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 1440px 200px;
  pointer-events: none;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(8,39,68,0.90) 0%, rgba(13,59,102,0.82) 55%, rgba(12,143,129,0.72) 130%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: #cddaea; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  padding: 64px 0 56px;
}
.page-hero .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; }
.page-hero h1 { color: var(--white); margin: 10px 0 12px; }
.page-hero p { color: #cddaea; max-width: 640px; font-size: 1.05rem; }

/* ---- Cards / grids ---- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(10,37,64,0.12); }

.card-photo {
  display: block;
  width: calc(100% + 56px);
  height: 180px;
  object-fit: cover;
  margin: -32px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.photo-band .photo-band-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13,59,102,0.15) 0%, rgba(8,39,68,0.85) 100%);
}
.photo-band .photo-band-content {
  position: relative;
  z-index: 2;
  padding: 28px;
}
.photo-band .photo-band-content h3,
.photo-band .photo-band-content p { color: var(--white); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--steel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--teal-dark);
}
.icon-badge svg { width: 26px; height: 26px; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}
.check-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--teal);
  margin-top: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.value-item {
  text-align: center;
  padding: 26px 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.value-item .icon-badge { margin: 0 auto 14px; }
.value-item h4 { margin: 0; font-size: 1rem; color: var(--navy); }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 28px; }

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
}
.form-group .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--off-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 18px;
}

/* ---- Contact info list ---- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon-badge { margin-bottom: 0; }
.info-list h4 { margin: 0 0 4px; color: var(--navy); font-size: 1rem; }
.info-list p { margin: 0; color: var(--text-muted); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.placeholder-note {
  background: #fff8e6;
  border: 1px solid #f0dca0;
  color: #7a5b00;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 10px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-text .name { color: var(--navy); }
.site-footer p { color: var(--text-muted); font-size: 0.92rem; }
.footer-col h4 {
  color: var(--navy);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal-dark); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Breadcrumb strip ---- */
.services-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.services-summary-strip .mini-card {
  text-align: center;
  padding: 24px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}
.services-summary-strip .mini-card h4 { font-size: 0.92rem; margin: 0; }
.services-summary-strip .icon-badge { margin: 0 auto 12px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-summary-strip { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }

  .main-nav {
    position: fixed;
    top: 128px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: 0 8px 20px rgba(13,59,102,0.12);
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .main-nav .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 620px) {
  .values-grid { grid-template-columns: 1fr; }
  .services-summary-strip { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .form-card { padding: 24px; }
}
