/* Chemical Tanker Maritime Resource — Custom Styles */
/* Framework: Bootstrap 5 with custom maritime navy/steel palette */

:root {
  --navy: #0d2b4e;
  --navy-mid: #1a3f6f;
  --navy-light: #2a5491;
  --steel: #4a7da8;
  --steel-light: #7aa8c9;
  --ocean: #1e6091;
  --ocean-light: #2980b9;
  --sand: #f5f0e8;
  --rust: #c0392b;
  --copper: #b8860b;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-900: #212529;
  --text-main: #1a2433;
  --text-muted: #5a6d80;
}

/* ── Typography ── */
body {
  font-family: 'Barlow', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* ── Navigation ── */
.site-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--steel);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-nav .navbar-brand {
  color: var(--white) !important;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--steel-light) !important;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 60%, var(--steel) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero-tanker.jpg') center/cover no-repeat;
  opacity: 0.25;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.2;
}

.hero-section .hero-lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  background: var(--steel);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ── Page Hero (non-home pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 3px solid var(--steel);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb-item a {
  color: var(--steel-light);
  text-decoration: none;
}

.page-hero .breadcrumb-item.active {
  color: rgba(255,255,255,0.7);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* ── Feature Cards ── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--steel);
  border-radius: 4px;
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(13,43,78,0.12);
  transform: translateY(-2px);
}

.feature-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--ocean);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card .card-icon i {
  color: var(--white);
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

/* ── Stat Strip ── */
.stat-strip {
  background: var(--navy);
  padding: 2rem 0;
}

.stat-item {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
  padding: 0 1.5rem;
}

.stat-item:last-child { border-right: none; }

.stat-item .stat-number {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--steel-light);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ── Content Sections ── */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean);
  border-left: 3px solid var(--steel);
  padding-left: 0.6rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
}

.content-image {
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(13,43,78,0.15);
  width: 100%;
  height: auto;
}

.content-body p { margin-bottom: 1.1rem; }
.content-body h2 { margin-top: 2.2rem; margin-bottom: 0.8rem; font-size: 1.5rem; }
.content-body h3 { margin-top: 1.6rem; margin-bottom: 0.6rem; font-size: 1.2rem; }
.content-body ul, .content-body ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.content-body li { margin-bottom: 0.35rem; }
.content-body a { color: var(--ocean); }
.content-body a:hover { color: var(--navy); }
.content-body dt { font-weight: 700; color: var(--navy); margin-top: 1.2rem; }
.content-body dd { margin-left: 1.5rem; margin-bottom: 0.5rem; color: var(--text-main); }

/* ── Route Card ── */
.route-card {
  background: var(--sand);
  border-left: 5px solid var(--ocean);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.route-card h4 { color: var(--navy); margin-bottom: 0.4rem; font-size: 1.05rem; }

/* ── Info Strip ── */
.info-strip {
  background: var(--sand);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* ── Sidebar ── */
.sidebar-nav .list-group-item {
  border-left: 3px solid transparent;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all 0.15s;
}

.sidebar-nav .list-group-item:hover,
.sidebar-nav .list-group-item.active {
  border-left-color: var(--steel);
  background: var(--gray-100);
  color: var(--navy);
  font-weight: 600;
}

.sidebar-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 1.25rem;
}

.sidebar-box h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── Glossary ── */
.glossary-section {
  border-top: 2px solid var(--gray-200);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.glossary-section:first-of-type { border-top: none; padding-top: 0; }

.glossary-letter {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--steel);
  border-left: 4px solid var(--steel);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

/* ── Contact Form ── */
.contact-form .form-control,
.contact-form .form-select {
  border-color: var(--gray-200);
  border-radius: 3px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 0.2rem rgba(74,125,168,0.2);
}

/* ── Buttons ── */
.btn-primary {
  background: var(--ocean);
  border-color: var(--ocean);
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.btn-outline-light {
  border-radius: 3px;
  font-weight: 600;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.site-footer h5 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.site-footer a:hover { color: var(--steel-light); }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  margin-top: 2rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-brand {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Images ── */
img { max-width: 100%; height: auto; }
.img-hero { width: 100%; height: 320px; object-fit: cover; border-radius: 4px; }
.img-inline { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 16px rgba(13,43,78,0.12); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-section { min-height: 340px; }
  .stat-strip .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 1rem 0; }
  .stat-strip .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 576px) {
  .page-hero { padding: 2rem 0 1.5rem; }
  .content-body h2 { font-size: 1.3rem; }
}
