/* Seahorse Marine Engineering Consultants — site stylesheet
   Palette: Seahorse Navy / Teal, with warm neutral background */
:root {
  --navy: #0b2a4a;
  --navy-deep: #071c33;
  --teal: #0e7c86;
  --teal-light: #e3f1f3;
  --ink: #1d2733;
  --muted: #5b6b7a;
  --line: #d9e0e6;
  --paper: #ffffff;
  --paper-alt: #f4f7f9;
  --max: 1100px;
  --radius: 6px;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: var(--teal); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.35rem; font-weight: 700; color: var(--navy); letter-spacing: 0.01em; }
.brand-sub { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal); font-weight: 600; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--teal); }
.nav-cta { background: var(--teal); color: #fff !important; padding: 8px 16px; border-radius: var(--radius); }
.nav-cta:hover { background: var(--navy); }

/* Hero */
.hero {
  background: linear-gradient(160deg, rgba(7,28,51,0.92) 0%, rgba(11,42,74,0.78) 50%, rgba(15,74,99,0.55) 100%), url("images/hero-seabrill.jpg") center 40% / cover no-repeat var(--navy);
  color: #fff;
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.brand-logo { height: 64px; width: auto; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--navy-deep); }
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 16px; font-size: 0.82rem; color: #fff;
  background: linear-gradient(transparent, rgba(7,28,51,0.85));
}

/* Reference table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ref-table th, .ref-table td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.ref-table th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ref-table tbody tr:nth-child(even) { background: var(--paper-alt); }
.ref-table td:first-child { white-space: nowrap; color: var(--teal); font-weight: 600; }
.hero .wrap { position: relative; z-index: 1; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero h1 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: #8fd3da; font-weight: 600; margin-bottom: 1.2em; }
.lead { font-size: 1.2rem; color: #dbe6ee; max-width: 46em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2em; }
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0a6570; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Strip */
.strip { background: var(--teal-light); border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 20px; }
.strip-inner div { display: flex; flex-direction: column; }
.strip-inner strong { color: var(--navy); font-size: 1.3rem; }
.strip-inner span { color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--navy); color: #dbe6ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #8fd3da; }
.section-dark a:hover { color: #fff; }
.section-intro { max-width: 46em; color: var(--muted); font-size: 1.05rem; margin-bottom: 2.2em; }
.section-dark .section-intro { color: #dbe6ee; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); margin-bottom: 2em; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px 24px 18px;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.mini-heading { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--teal); }
.plain-list { margin: 0 0 1em; padding-left: 1.2em; }
.plain-list li { margin-bottom: 0.7em; }
.note { color: var(--muted); font-size: 0.9rem; }
address { font-style: normal; margin-bottom: 0.8em; color: var(--ink); }
.zh { color: var(--muted); font-size: 0.95rem; }
.map-link { font-weight: 600; text-decoration: none; }
.map-link::after { content: " \2192"; }

/* Contact */
.contact-block p { display: flex; flex-direction: column; margin-bottom: 1.1em; font-size: 1.1rem; }
.contact-block .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: #8fd3da; font-weight: 600; }
.contact-block a { color: #fff; text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #9fb0c0; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 22px 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 240px; }
}
@media (max-width: 600px) {
  :root { font-size: 16px; }
  .brand-logo { height: 44px; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 12px 20px; }
  .nav { gap: 14px; }
  .hero { padding: 60px 0 56px; }
  .grid, .grid-2, .strip-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .brand-sub { display: none; }
}

/* Sub-page hero and stage list */
.hero-sub { padding: 80px 0 70px; background-position: center 55%; }
.nav a.active { color: var(--teal); border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
.stage-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; counter-reset: stage; }
.stage { position: relative; padding: 4px 0 14px 58px; border-bottom: 1px solid var(--line); counter-increment: stage; }
.stage::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal);
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.stage h3 { margin-bottom: 0.3em; }
.stage p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 900px) { .stage-list { grid-template-columns: 1fr; } }
