/* ==========================================================================
   BLUEWAVE TANKERS (BWT) — DESIGN SYSTEM CSS
   Khớp 100% Phụ lục mục 8 & Đặc tả kỹ thuật Tháng 9/2026
   ========================================================================== */

:root {
  --navy: #123664;
  --navy-deep: #0D2748;
  --blue: #0088D0;
  --blue-hover: #0092DD;
  --tint: #EFF7FA;
  --tint2: #DCEEF6;
  --ink: #1E2A38;
  --gray: #5B6B7C;
  --line: #E1E9EF;
  --white: #FFFFFF;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--navy);
  margin: 0;
}

p {
  text-align: justify;
  margin: 0 0 16px 0;
}

.no-justify, .no-justify p {
  text-align: left !important;
}

.center-text, .center-text p {
  text-align: center !important;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--navy-deep);
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 88px 0;
}

.section-tint {
  background: var(--tint);
}

.section-head {
  max-width: 640px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 16px;
}

.eyebrow {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  display: block;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* Cards */
.card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  text-align: left !important;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  text-align: left !important;
}

/* Buttons (3D Effect) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  min-height: 44px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 0 #00639C, 0 10px 20px rgba(3, 20, 40, 0.35);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #00639C, 0 12px 22px rgba(3, 20, 40, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* Pills / Badges */
.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pill {
  border: none;
  background: var(--blue);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 999px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.pill:hover {
  color: var(--white);
  background: var(--blue-hover);
}

.pill-navy {
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 9px 20px;
  border-radius: 999px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: #FFFFFF;
  display: inline-block;
}

.pill-navy:hover {
  color: var(--navy);
  background: #F4FAFC;
}

/* Header & Nav */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text .part-blue {
  color: #FFFFFF;
}

.brand-text .part-wave {
  color: var(--blue);
  margin-left: 5px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  white-space: nowrap;
}

.nav-links a {
  color: #E0F1F9;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 2px;
  transition: color 0.15s ease;
  letter-spacing: 0.2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

/* Logo góc trên bên phải cho 5 trang con */
.page-top-logo-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.page-top-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

/* Tables */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.table-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row div {
  padding: 15px 18px;
  font-size: 15px;
}

.table-label {
  background: var(--tint);
  font-weight: 600;
  color: var(--navy);
  font-family: 'Space Grotesk', sans-serif;
}

/* Placeholder Art */
.placeholder-art {
  background: linear-gradient(180deg, #0D2748 0%, #123664 60%, #0088D0 100%);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(0, 136, 208, 0.15);
}

/* Khung ảnh linh hoạt thích ứng tự nhiên theo kích thước và tỷ lệ ảnh (Fluid Adaptive Image Frame) */
.placeholder-art.has-image,
.placeholder-art.vessel-photo {
  min-height: auto;
  padding: 0;
  background: #07172B;
  box-shadow: 0 14px 38px rgba(13, 39, 72, 0.14);
  border: 1px solid rgba(0, 136, 208, 0.24);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.placeholder-art.has-image:hover,
.placeholder-art.vessel-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 136, 208, 0.22);
  border-color: rgba(0, 136, 208, 0.55);
}

.placeholder-art.has-image img,
.placeholder-art.vessel-photo img {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  background: #07172B;
  transition: transform 0.35s ease;
}

.placeholder-art.has-image:hover img,
.placeholder-art.vessel-photo:hover img {
  transform: scale(1.012);
}

.placeholder-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Badge gợi ý phóng to ảnh khi hover */
.image-expand-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(7, 23, 43, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 10;
  line-height: 1;
}

.placeholder-art.has-image:hover .image-expand-hint,
.placeholder-art.vessel-photo:hover .image-expand-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Lightbox Xem Toàn Cảnh Độ Phân Giải Cao */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
}

.lightbox-caption {
  margin-top: 14px;
  color: #E2EEF8;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: #0088D0;
  transform: scale(1.08);
}

.placeholder-art .ph-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.placeholder-art svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
}

.placeholder-art span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #FFFFFF;
  text-transform: uppercase;
}

/* Footer (Chỉ 5 trang con) */
.footer-wrap {
  background: var(--navy-deep);
  color: #B9CBDA;
  padding: 32px 0 22px 0;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.footer-top-grid h4 {
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 16px;
}

.foot-col p, .foot-col a {
  color: #B9CBDA;
  font-size: 14px;
  line-height: 1.9;
  display: block;
  margin: 0;
  text-align: left !important;
}

.foot-col a:hover {
  color: var(--white);
}

.foot-btn-group {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7E95A8;
}

/* Trang chủ Hero Fullscreen */
.hero-fullscreen {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background-color: #0c1c2e;
  background-image: linear-gradient(90deg, rgba(8, 23, 43, 0.92) 0%, rgba(13, 39, 72, 0.65) 45%, rgba(0, 0, 0, 0.2) 100%), url('/uploads/vessel-bluewave-pioneer.png');
  background-size: cover;
  background-position: center right;
  color: var(--white);
}

.hero-content {
  max-width: 680px;
  padding: 60px 0;
}

.hero-h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #E0F1F9;
  margin-bottom: 32px;
  text-align: left !important;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-bottom: 36px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 39, 72, 0.85);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 208, 0.15);
}

/* Responsive 860px */
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .table-row {
    grid-template-columns: 1fr;
  }
  .table-label {
    border-bottom: 1px solid var(--line);
  }
  .hero-h1 {
    font-size: 36px !important;
  }
  .section {
    padding: 56px 0;
  }
  .container {
    padding: 0 16px !important;
  }
  .nav-inner {
    padding: 0 16px !important;
  }
  .hero-fullscreen .container {
    padding: 0 16px !important;
  }
  .modal-box {
    padding: 24px 18px !important;
    max-height: 90vh;
    overflow-y: auto;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .gallery-item img {
    height: 120px !important;
  }
  .footer-top-grid, .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-top-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}
  .hero-actions {
    flex-direction: column;
  }
}


/* Hero container dàn rộng tự nhiên theo tỷ lệ bản mockup v11 */
.hero-fullscreen .container {
  max-width: 1360px;
  padding: 0 40px;
  margin-left: 0;
  margin-right: auto;
}

@media (min-width: 1400px) {
  .hero-fullscreen .container {
    padding-left: 80px;
  }
}

/* Mobile Navigation Hamburger & Drawer Menu */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: var(--navy-deep);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 95;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  flex: 1;
}

.mobile-nav-links a {
  color: #E0F1F9;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--blue);
  padding-left: 6px;
}

/* Photo Gallery Lưới hiển thị ảnh linh hoạt cho bài viết */
.article-gallery {
  margin: 36px 0;
  padding: 24px;
  background: var(--tint);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #FFF;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  margin: 0 !important;
}

.gallery-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.4;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .hamburger-btn {
    display: flex;
  }
  .desktop-nav {
    display: none !important;
  }
}


/* Mobile Gallery & 480px refinements */
@media (max-width: 860px) {
  .page-top-logo {
    height: 48px !important;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .gallery-item img {
    height: 120px !important;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 28px !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
  .modal-box {
    padding: 20px 14px !important;
  }
}
