/* ============================================
   CAMII — Cebu ACE Maritime International Inc.
   Main Stylesheet
   ============================================ */

/* --- Reset & Custom Properties --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --navy: #0A2D5E;
  --navy-dark: #071E3D;
  --gold: #C8870A;
  --gold-hover: #A06E08;
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-light: #8A8AA0;
  --border-light: #E2E5EB;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 100px;
  --container-max: 1200px;
  --nav-height: 90px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}


/* --- Section Switching --- */
.site-section {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-section.active {
  display: block;
  opacity: 1;
}

.site-section.fade-out {
  display: block;
  opacity: 0;
}

.site-section.fade-in {
  display: block;
  opacity: 0;
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--white {
  background: var(--white);
}

.section--alt {
  background: var(--off-white);
}

.section--navy {
  background: var(--navy);
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section-heading p {
  max-width: 600px;
  margin: 16px auto 0;
}


/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--white);
}


/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease, border-color 0.4s ease;
}

/* Transparent navbar over hero on home page */
.navbar--transparent {
  background: transparent;
  border-bottom-color: transparent;
}

.navbar--transparent .navbar__logo {
  color: var(--white);
}

.navbar--transparent .navbar__links a {
  color: rgba(255, 255, 255, 0.8);
}

.navbar--transparent .navbar__links a:hover,
.navbar--transparent .navbar__links a.active {
  color: var(--white);
}

.navbar--transparent .navbar__hamburger span {
  background: var(--white);
}

/* Scrolled state — solid, compact */
.navbar.scrolled {
  background: var(--white);
  border-bottom-color: var(--border-light);
  box-shadow: 0 2px 20px rgba(10, 45, 94, 0.08);
  height: 60px;
}

.navbar.scrolled .navbar__logo {
  color: var(--navy);
}

.navbar.scrolled .navbar__links a {
  color: var(--text-secondary);
}

.navbar.scrolled .navbar__links a:hover,
.navbar.scrolled .navbar__links a.active {
  color: var(--navy);
}

.navbar.scrolled .navbar__hamburger span {
  background: var(--navy);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.7rem, 2.6vw, 1.3rem);
  color: var(--navy);
  letter-spacing: 0.02em;
  min-width: 0;
  flex: 1 1 auto;
}

.navbar__logo .logo-ticker-wrap {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.logo-ticker-wrap {
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 1.3em;
  align-self: center;
}

.logo-ticker {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.3;
  will-change: transform, opacity;
}

.logo-ticker__dot {
  color: var(--gold);
  font-style: normal;
  margin-left: -0.1em;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.6); }
}

.navbar__logo-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--navy);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   SVG Wave System
   ============================================ */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Eliminate sub-pixel gap between footer wave and footer */
.wave-divider--footer {
  background: var(--navy-dark);
  margin-bottom: -1px;
}

.hero__wave-svg {
  height: 100px;
}


/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  flex: 1;
}

.hero__logo-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  opacity: 0;
}

.hero__logo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
  background: var(--white);
}

.hero__content h1 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  margin-bottom: 36px;
  opacity: 0;
}

.hero__content .btn {
  opacity: 0;
}

.hero__wave-container {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 1;
}


/* Page header (inner pages) */
.page-header {
  background: var(--navy);
  padding: calc(var(--nav-height) + 60px) 0 80px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}


/* ============================================
   Stats Section
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  padding: 20px 0;
}

.stat-item {
  padding: 20px 0;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ============================================
   Two-Column Text (Vision / Mission)
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.two-col__item h3 {
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.two-col__item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}


/* ============================================
   Service Rows (Home Preview + Services Page)
   ============================================ */
.service-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 40px;
}

.service-row:first-child {
  border-top: 1px solid var(--border-light);
}

.service-row__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  flex-shrink: 0;
  width: 240px;
}

.service-row__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 600px;
  flex: 1;
}

.service-row__details {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.service-row__details span {
  font-size: 0.85rem;
  color: var(--text-light);
}


/* ============================================
   CTA Strip
   ============================================ */
.cta-strip {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.cta-strip h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   About Page
   ============================================ */
.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
  position: relative;
}

.pull-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gold);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  font-family: Georgia, serif;
}

.gold-border-section {
  border-left: 3px solid var(--gold);
  padding-left: 32px;
  margin-bottom: 48px;
}

.gold-border-section h3 {
  margin-bottom: 16px;
  color: var(--navy);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
  max-width: 640px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover {
  box-shadow: 0 8px 24px rgba(10, 45, 94, 0.08);
  transform: translateY(-2px);
}

.timeline-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  margin-top: 5px;
}

.timeline-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 0 6px;
  height: 36px;
  position: relative;
}

.timeline-arrow::before {
  content: '';
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--border-light), var(--gold));
}

.timeline-arrow::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gold);
  flex-shrink: 0;
}

.timeline-content h4 {
  margin-bottom: 6px;
  color: var(--navy);
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}


/* ============================================
   Vessels Page
   ============================================ */
.vessel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vessel-grid--hidden {
  display: none;
  margin-top: 20px;
}

.vessel-grid--hidden.visible {
  display: grid;
}

.vessel-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}

.vessel-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.vessel-card:hover img {
  transform: scale(1.05);
}

.vessel-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px 24px;
  background: linear-gradient(transparent, rgba(10, 45, 94, 0.9));
  color: var(--white);
}

.vessel-card__overlay h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.vessel-card__overlay .vessel-type {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.vessel-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.vessel-card__link {
  font-size: 0.85rem;
  color: var(--gold);
  transition: color 0.3s;
}

.vessel-card__link:hover {
  color: var(--white);
}

.vessel-card--featured {
  grid-column: 1 / -1;
}

.vessel-card--featured img {
  height: 450px;
}


/* Vessel Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  animation: lightboxIn 0.3s ease;
}

.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.9;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox__close:hover {
  opacity: 1;
}

@keyframes lightboxIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* ============================================
   Events Page
   ============================================ */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.event-item {
  overflow: hidden;
}

.event-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.5s ease;
}

.event-item:hover img {
  transform: scale(1.03);
}

.event-caption {
  padding: 16px 0;
}

.event-caption h4 {
  margin-bottom: 4px;
  color: var(--navy);
}

.event-caption p {
  font-size: 0.85rem;
  color: var(--text-light);
}


/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 24px;
  color: var(--navy);
}

.contact-detail {
  margin-bottom: 20px;
}

.contact-detail strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.contact-detail a:hover {
  color: var(--gold);
}

.contact-map {
  margin-top: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.contact-map iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* Contact Form */
.contact-form h3 {
  margin-bottom: 24px;
  color: var(--navy);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

/* Global focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-result {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-result--success,
.form-result--error {
  display: block;
}

.form-result--success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.form-result--error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
}


/* ============================================
   Careers Page
   ============================================ */
.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.career-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.career-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy);
  transition: background 0.35s ease;
}

.career-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(10, 45, 94, 0.12);
  border-color: rgba(10, 45, 94, 0.15);
}

.career-card:hover::before {
  background: var(--gold);
}

.career-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.career-card__dept {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
}

.career-card__dept--deck {
  background: rgba(10, 45, 94, 0.08);
  color: var(--navy);
}

.career-card__dept--engine {
  background: rgba(200, 40, 40, 0.1);
  color: #c82828;
}

.career-card__dept--galley {
  background: rgba(200, 160, 10, 0.12);
  color: #a07800;
}

.career-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.08);
  border-radius: 20px;
  padding: 4px 12px;
}

.career-card__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e7d32;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.career-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.career-card__vessel {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.career-card__salary {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(10, 45, 94, 0.07);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.career-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.career-card__cta {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.career-card__cta:hover {
  color: var(--gold-hover);
  padding-left: 6px;
}


/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-dark);
  padding: 60px 0 32px;
  position: relative;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__logo span {
  color: var(--gold);
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer__contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer__contact a:hover {
  color: var(--gold);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__gov-links a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  transition: color 0.3s;
}

.footer__gov-links a:hover {
  color: var(--gold);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer__social a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .vessel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vessel-card--featured img {
    height: 300px;
  }

  .career-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 70px;
  }

  /* Mobile nav */
  .navbar__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .navbar__links.open {
    transform: translateX(0);
  }

  /* Staggered mobile link animation */
  .navbar__links a {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .navbar__links.open a {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar__links.open a:nth-child(1) { transition-delay: 0.05s; }
  .navbar__links.open a:nth-child(2) { transition-delay: 0.1s; }
  .navbar__links.open a:nth-child(3) { transition-delay: 0.15s; }
  .navbar__links.open a:nth-child(4) { transition-delay: 0.2s; }
  .navbar__links.open a:nth-child(5) { transition-delay: 0.25s; }
  .navbar__links.open a:nth-child(6) { transition-delay: 0.3s; }
  .navbar__links.open a:nth-child(7) { transition-delay: 0.35s; }

  /* Reset transparent styles on mobile menu (always solid) */
  .navbar--transparent .navbar__links a {
    color: var(--text-secondary);
  }

  .navbar--transparent .navbar__links a:hover,
  .navbar--transparent .navbar__links a.active {
    color: var(--navy);
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero__row {
    flex-direction: column;
    text-align: center;
  }

  .hero__logo-wrap {
    order: -1;
  }

  .hero__logo {
    width: 160px;
    height: 160px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vessel-grid {
    grid-template-columns: 1fr;
  }

  .vessel-card img,
  .vessel-card--featured img {
    height: 280px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .career-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    flex-direction: column;
    gap: 8px;
  }

  .service-row__name {
    min-width: auto;
  }

  .timeline-item {
    gap: 12px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 56px;
  }

  .navbar__logo-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero {
    min-height: 60vh;
  }

  .container {
    padding: 0 16px;
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* Body scroll lock */
body.nav-open {
  overflow: hidden;
}
