/* ===== Seabed Technologies – Stylesheet ===== */
/* Brand colors: deep navy/teal header & footer (#0d2233), white body, teal accent */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d2233;
  --navy2:      #112840;
  --teal:       #1a6080;
  --teal-light: #2a8ab0;
  --accent:     #1a7090;
  --white:      #ffffff;
  --off-white:  #f4f8fa;
  --border:     #ccdde8;
  --text:       #222222;
  --text-mid:   #444444;
  --link:       #0d5080;
}

html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--text); font-size: 14px; line-height: 1.65; background: #fff; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--teal); text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: 980px; margin: 0 auto; padding: 0 18px; }

/* ── HEADER ── */
header { background: var(--navy); border-bottom: 2px solid var(--teal); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; flex-wrap: wrap; gap: 10px;
}
.header-logo img { max-height: 70px; }
.header-info {
  text-align: right; color: #9ac0d8; font-size: 0.82rem; line-height: 1.8;
}
.header-info .company-name { color: #cce8f8; font-weight: bold; font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; }
.header-info .phone { color: #ffffff; font-size: 1.25rem; font-weight: bold; }

/* ── BANNER SLIDER ── */
.banner-slider { position: relative; overflow: hidden; height: 390px; margin-bottom: 30px; background: var(--navy); }
.banner-slide { display: none; position: absolute; inset: 0; background-size: cover; background-position: center; }
.banner-slide.active { display: block; animation: bfade 0.7s ease; }
@keyframes bfade { from { opacity:0; } to { opacity:1; } }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px;
}
.banner-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer;
  transition: background 0.2s;
}
.banner-dot.active { background: #fff; }

/* ── TAGLINE BAR ── */
.tagline-bar {
  background: var(--navy2);
  border-bottom: 2px solid var(--teal);
  padding: 10px 18px;
  text-align: center;
}
.tagline-bar h1 { color: #d0eaf8; font-size: 1rem; font-weight: normal; letter-spacing: 0.03em; }

/* ── NAV ── */
nav { background: var(--navy); border-bottom: 3px solid var(--teal-light); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; justify-content: center; }
nav ul li a {
  display: block; padding: 10px 18px; color: #b8daf0;
  font-size: 0.82rem; font-weight: bold; text-transform: uppercase;
  letter-spacing: 0.04em; transition: background 0.18s, color 0.18s;
}
nav ul li a:hover, nav ul li a.active { background: var(--teal); color: #fff; text-decoration: none; }
nav ul li { position: relative; }
nav ul li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--navy2); min-width: 180px; z-index: 999;
  border-top: 2px solid var(--teal-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
nav ul li:hover > ul { display: flex; flex-direction: column; }
nav ul li ul li a { padding: 9px 16px; font-size: 0.78rem; border-bottom: 1px solid rgba(255,255,255,0.07); }

/* ── PAGE BODY ── */
.page-body { padding: 30px 0 20px; }
.page-body h1 {
  font-size: 1.45rem; color: var(--navy);
  border-bottom: 2px solid var(--teal); padding-bottom: 9px; margin-bottom: 20px;
}
.page-body h2 { font-size: 1.1rem; color: var(--teal); margin: 20px 0 9px; }
.page-body h3 { font-size: 0.97rem; color: var(--navy); margin: 15px 0 7px; font-weight: bold; }
.page-body p { margin-bottom: 12px; }
.page-body ul { padding-left: 20px; margin-bottom: 12px; }
.page-body ul li { margin-bottom: 4px; }
.page-body a.cta-link {
  display: inline-block; background: var(--teal); color: #fff;
  padding: 8px 22px; font-weight: bold; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0;
  border-radius: 2px; transition: background 0.18s;
}
.page-body a.cta-link:hover { background: var(--teal-light); text-decoration: none; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── INLINE IMAGES ── */
.img-right { float: right; margin: 0 0 16px 20px; max-width: 260px; }
.img-left  { float: left;  margin: 0 20px 16px 0; max-width: 260px; }
.img-block { display: block; margin: 16px 0; max-width: 100%; }
.clearfix::after { content:''; display:table; clear:both; }

/* ── PRODUCT IMAGE GRID ── */
.product-img-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.product-img-row img { height: 160px; object-fit: cover; flex: 1; min-width: 140px; }

/* ── FEATURED SERVICES ── (appears at bottom of every page) */
.featured-services {
  background: var(--navy); color: #fff;
  padding: 32px 0 24px;
  margin-top: 30px;
  border-top: 3px solid var(--teal);
}
.featured-services .fs-header {
  text-align: center; margin-bottom: 22px;
}
.featured-services .fs-header h2 {
  font-size: 1.2rem; color: #fff; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.featured-services .fs-header p {
  color: #8ac0d8; font-size: 0.85rem; margin-top: 4px;
}
.fs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.fs-card { text-align: center; }
.fs-card img { width: 100%; height: 100px; object-fit: cover; display: block; border: 2px solid var(--teal); }
.fs-card h4 {
  color: #cce8f8; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.04em; margin: 8px 0 4px; font-weight: bold;
}
.fs-card p { color: #8ab8d0; font-size: 0.68rem; margin-bottom: 5px; line-height: 1.4; }
.fs-card a { color: var(--teal-light); font-size: 0.68rem; font-weight: bold; text-transform: uppercase; }
.fs-card a:hover { color: #fff; text-decoration: none; }

/* ── GALLERY ── */
.gallery-section { margin: 20px 0; }
.gallery-section h3 {
  background: var(--navy); color: #d0eaf8; padding: 7px 12px;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.gallery-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gallery-grid a img { height: 120px; width: 160px; object-fit: cover; transition: opacity 0.2s; }
.gallery-grid a:hover img { opacity: 0.85; }
.tech-spec-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tech-spec-grid a img { height: 110px; width: 150px; object-fit: cover; }

/* ── PROJECTS LIST ── */
.project-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-left: 4px solid var(--teal); padding: 16px 18px; margin-bottom: 14px;
}
.project-card h3 { color: var(--navy); font-size: 0.95rem; margin-bottom: 4px; }
.project-card .location { color: var(--teal); font-size: 0.8rem; font-weight: bold; text-transform: uppercase; margin-bottom: 6px; display: block; }
.project-card a { font-size: 0.82rem; font-weight: bold; color: var(--teal); }

/* ── PARTNER LOGOS ── */
.partner-row { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.partner-logo { border: 1px solid var(--border); padding: 10px 16px; background: var(--off-white); }
.partner-logo img { max-height: 60px; max-width: 180px; }

/* ── CONTACT FORM ── */
.contact-info-block { margin: 16px 0; background: var(--off-white); border: 1px solid var(--border); padding: 16px 20px; }
.contact-info-block h2 { margin-bottom: 10px; }
.contact-info-block p { margin-bottom: 5px; font-size: 0.92rem; }
.contact-form { max-width: 520px; margin-top: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: bold; margin-bottom: 3px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  font-size: 0.86rem; font-family: Arial, sans-serif; background: #fff;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.btn-submit {
  background: var(--teal); color: #fff; padding: 9px 28px;
  border: none; font-size: 0.88rem; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
}
.btn-submit:hover { background: var(--teal-light); }
.notice-box { background: #e8f4fa; border-left: 4px solid var(--teal); padding: 11px 14px; margin-bottom: 14px; font-size: 0.88rem; }

/* ── FOOTER ── */
footer { background: var(--navy); color: #7aaccc; padding: 20px 0 14px; border-top: 3px solid var(--teal); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-col h5 { color: #c0e0f4; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.footer-col .addr { font-size: 0.78rem; line-height: 1.9; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul li a { color: #7aaccc; font-size: 0.78rem; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-copy { text-align: center; font-size: 0.72rem; color: #3a6080; margin-top: 16px; padding-top: 12px; border-top: 1px solid #1a3a54; }

/* ── RESPONSIVE ── */
@media (max-width: 750px) {
  .banner-slider { height: 140px; }
  .fs-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  nav ul { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .img-right, .img-left { float: none; max-width: 100%; margin: 0 0 14px; }
}
@media (max-width: 500px) {
  .fs-grid { grid-template-columns: repeat(2, 1fr); }
}
