/* ================================================================
   IBC Offshore Marine — style.css
   Fonts: Barlow Condensed (headings) + Inter (body)
   Palette: Deep Navy / Steel Blue / Electric Teal / White
================================================================ */

:root {
  --navy:       #08111E;
  --navy-mid:   #122039;
  --navy-light: #1C3558;
  --teal:       #00B4D8;
  --teal-dark:  #0077A8;
  --orange:     #E87820;
  --white:      #FFFFFF;
  --off-white:  #F4F8FC;
  --gray:       #8A9BB0;
  --text:       #1A2535;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

a { color: inherit; text-decoration: none; }

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

/* ── Navbar ───────────────────────────────────────────────────── */
#mainNav {
  background: rgba(8, 17, 30, 0.97);
  transition: background 0.3s, padding 0.3s;
  padding: 0.9rem 0;
  z-index: 1000;
}
#mainNav.scrolled {
  background: rgba(8, 17, 30, 1);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-brand img {
  height: 44px;
  width: auto;
  filter: brightness(1.2);
}
.navbar-brand .brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.navbar-brand .brand-sub {
  font-size: 0.65rem;
  color: var(--teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.navbar-nav .nav-link:hover { color: var(--teal) !important; }
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ── Hero ─────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/gallery-22.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.35;
  transform: scale(1.04);
  transition: transform 8s ease;
}
#hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,17,30,0.92) 0%,
    rgba(8,17,30,0.55) 60%,
    rgba(8,17,30,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.4);
  color: var(--teal);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--teal);
}

#hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
#hero h1 span { color: var(--teal); }

#hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.btn-teal {
  background: var(--teal);
  color: var(--navy);
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-teal:hover {
  background: #00d1f5;
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline-white:hover {
  border-color: var(--teal);
  background: rgba(0,180,216,0.1);
  color: var(--teal);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0,180,216,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── Stats Bar ────────────────────────────────────────────────── */
#stats {
  background: var(--teal);
  padding: 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 1.8rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-top: 0.25rem;
}

/* ── Section Utility ──────────────────────────────────────────── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1rem;
}
.section-title span { color: var(--teal-dark); }
.divider-teal {
  width: 48px; height: 3px;
  background: var(--teal);
  display: block;
  margin-bottom: 1.5rem;
}

/* ── About ────────────────────────────────────────────────────── */
#about {
  padding: 6rem 0;
  background: var(--off-white);
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 2px;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  border-radius: 2px;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.about-badge strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  display: block;
}
.about-badge span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4A5568;
  margin-bottom: 1rem;
}

.cert-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.cert-badge {
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  border-left: 3px solid var(--teal);
}

/* ── Services ─────────────────────────────────────────────────── */
#services {
  padding: 6rem 0;
  background: var(--navy);
}
#services .section-label { color: var(--teal); }
#services .section-title { color: var(--white); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
}

.service-card {
  background: var(--navy-mid);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--teal);
  transition: height 0.35s;
}
.service-card:hover { background: var(--navy-light); }
.service-card:hover::before { height: 100%; }

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
  line-height: 1;
}
.service-card h3 {
  font-size: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}
.service-num {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
}

/* ── Night Cat ────────────────────────────────────────────────── */
#nightcat {
  padding: 6rem 0;
  background: var(--off-white);
}
.nightcat-header {
  text-align: center;
  margin-bottom: 4rem;
}

.nightcat-feature {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 3rem;
}
.nightcat-feature-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.nightcat-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.nightcat-feature:hover .nightcat-feature-image img {
  transform: scale(1.04);
}
.nightcat-feature-body {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nightcat-feature-body h3 {
  font-size: 2rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.nightcat-feature-body p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.spec-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.spec-list li {
  font-size: 0.82rem;
  color: var(--teal);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-left: 1rem;
  position: relative;
}
.spec-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(0,180,216,0.5);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}
.model-card {
  background: var(--navy);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.model-card-header {
  background: var(--teal-dark);
  padding: 1.2rem 1.5rem;
}
.model-card-header h4 {
  color: var(--white);
  font-size: 1.6rem;
  text-transform: uppercase;
  margin: 0;
}
.model-card-body {
  padding: 1.5rem;
}
.model-card-body p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Products / Partners ──────────────────────────────────────── */
#products {
  padding: 6rem 0;
  background: var(--navy-mid);
}
#products .section-label { color: var(--teal); }
#products .section-title { color: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
  padding: 2.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.product-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}
.product-card-logo {
  height: 50px;
  margin-bottom: 1.5rem;
  filter: brightness(10) saturate(0);
  opacity: 0.8;
  object-fit: contain;
  object-position: left center;
  transition: filter 0.3s, opacity 0.3s;
}
.product-card:hover .product-card-logo {
  filter: none;
  opacity: 1;
}
.product-card h4 {
  color: var(--white);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.product-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Gallery ──────────────────────────────────────────────────── */
#gallery {
  padding: 6rem 0;
  background: var(--off-white);
}
.gallery-header { text-align: center; margin-bottom: 3rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--navy-mid);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,17,30,0.55);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-overlay span {
  color: var(--white);
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Training ─────────────────────────────────────────────────── */
#training {
  padding: 6rem 0;
  background: var(--navy);
}
#training .section-label { color: var(--teal); }
#training .section-title { color: var(--white); }
.training-intro { color: rgba(255,255,255,0.65); max-width: 680px; line-height: 1.8; font-size: 0.95rem; }

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.course-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.course-card:hover {
  border-color: var(--teal);
  background: var(--navy-light);
}
.course-code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  display: block;
}
.course-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.course-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.course-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.course-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

/* ── Contact ──────────────────────────────────────────────────── */
#contact {
  padding: 6rem 0;
  background: var(--off-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 {
  font-size: 2.4rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.contact-item:last-of-type { border-bottom: none; }

.contact-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-details strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.25rem;
}
.contact-details span, .contact-details a {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.contact-details a:hover { color: var(--teal-dark); }

.map-wrap {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.cta-contact {
  margin-top: 2rem;
  background: var(--navy);
  padding: 2rem;
  border-radius: 2px;
  text-align: center;
  border-top: 3px solid var(--teal);
}
.cta-contact p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.cta-contact a.tel-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.05em;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
.cta-contact a.tel-link:hover { color: #fff; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
  filter: brightness(1.2);
}
.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  line-height: 1.7;
}
.footer-col h5 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin: 0;
}
.powered-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.powered-by a {
  color: var(--teal);
  font-weight: 600;
  transition: color 0.2s;
}
.powered-by a:hover { color: var(--white); }

.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-link:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 991px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .nightcat-feature { grid-template-columns: 1fr; }
  .nightcat-feature-image { min-height: 280px; }
  .models-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-badge { right: 0; bottom: -1rem; }
  .training-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .training-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nightcat-feature-body { padding: 2rem; }
}
