/* ============================================
   Bell Marine — stylesheet
   Navy / white, premium maritime theme
   ============================================ */

:root {
  --navy: #081b33;
  --navy-dark: #040f1f;
  --navy-mid: #0d2848;
  --blue: #1c3f73;
  --blue-light: #8fb0e0;
  --logo-accent: #1f6f57;
  --white: #ffffff;
  --paper: #fbfcfd;
  --line: #e4e9ef;
  --grey-300: #c7d0da;
  --muted: #6b7a89;
  --text: #16222f;
  --shadow: 0 30px 60px -30px rgba(5, 20, 40, 0.35);
  --shadow-sm: 0 14px 30px -18px rgba(5, 20, 40, 0.4);
  --radius: 4px;
  --max-width: 1220px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

section { position: relative; }

.section-pad { padding: 70px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-intro {
  max-width: 620px;
  margin: 0 0 32px 0;
}

.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

p { color: var(--muted); }

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

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

.btn-block { width: 100%; }
.btn-sm { padding: 12px 22px; font-size: 0.76rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 32px 0;
}

.site-header.scrolled {
  background: rgba(4, 15, 31, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.4);
  padding: 18px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
}

.brand-mark { color: var(--white); flex-shrink: 0; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

nav.main-nav a:hover { color: var(--white); }
nav.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 24px; }

.header-phone {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.header-phone:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 1px; background: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(4,15,31,0.52) 0%, rgba(4,15,31,0.4) 40%, rgba(4,15,31,0.9) 100%),
    linear-gradient(rgba(4,15,31,0.25), rgba(4,15,31,0.25)),
    url("https://images.unsplash.com/photo-1631179433684-e25f8414bb61?auto=format&fit=crop&w=2400&q=80") center 45%/cover no-repeat;
  color: var(--white);
  padding-top: 120px;
}

.hero-content { max-width: 780px; }

.hero .eyebrow { color: #ffffff; }

.hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero .lede {
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  max-width: 560px;
  margin-bottom: 44px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

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

.hero-actions .btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.hero-actions .btn-primary:hover { background: transparent; color: var(--white); border-color: var(--white); }

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
}

.hero-credentials div {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

.hero-credentials strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--white);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 2px;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 38px;
  background: rgba(255,255,255,0.45);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---------- How it works ---------- */
.how { background: var(--paper); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 30px;
  max-width: none;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-node {
  width: 40px;
  height: 40px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.25;
}

.step p {
  color: var(--muted);
  font-size: 0.87rem;
  max-width: 230px;
  margin: 0 auto;
}

/* ---------- Surveys ---------- */
.survey-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 24px;
}

.gallery-arrows {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 6px;
}

.arrow-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.arrow-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.survey-track-wrap {
  position: relative;
  margin: 0 -40px;
  padding: 0 40px;
}

.survey-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 20px;
  scrollbar-width: none;
}
.survey-track::-webkit-scrollbar { display: none; }

.survey-card {
  position: relative;
  flex: 0 0 clamp(230px, 24vw, 320px);
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
}

.survey-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.survey-card:hover img { transform: scale(1.07); }

.survey-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,15,31,0.05) 40%, rgba(4,15,31,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.card-index {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.survey-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
}

.survey-cta-row {
  text-align: center;
  margin-top: 18px;
}

.accordion {
  max-width: 880px;
  margin: 32px auto 0;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 26px 2px;
  text-align: left;
  font-family: inherit;
}

.acc-left {
  display: flex;
  align-items: baseline;
  gap: 22px;
}

.acc-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--grey-300);
  flex-shrink: 0;
}

.acc-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.25s ease;
}

.accordion-trigger:hover .acc-title { color: var(--blue); }

.acc-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.acc-icon::before {
  top: 50%; left: 0;
  width: 100%; height: 1px;
  transform: translateY(-50%);
}
.acc-icon::after {
  left: 50%; top: 0;
  height: 100%; width: 1px;
  transform: translateX(-50%);
}
.accordion-item.is-open .acc-icon::after { transform: translateX(-50%) scaleY(0); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-panel-inner {
  padding: 0 2px 32px;
  max-width: 640px;
}

.accordion-panel-inner p { margin-bottom: 22px; }

/* ---------- About ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(0.9);
}

.about-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: var(--navy);
  color: var(--white);
  padding: 28px 32px;
  max-width: 220px;
}
.about-badge strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; }
.about-badge span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

#about h2 { font-size: clamp(2rem, 3.2vw, 2.7rem); }

.credentials-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 34px;
}

.credentials-list li {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 30px;
}

.coverage {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  margin-top: 12px;
}

/* ---------- Contact ---------- */
.contact { background: var(--navy-dark); color: var(--white); }
.contact h2 { color: var(--white); }
.contact p { color: rgba(255,255,255,0.65); }
.contact .eyebrow { color: var(--blue-light); }

.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
}

.contact-info-item .ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-info-item h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-info-item p, .contact-info-item a { color: rgba(255,255,255,0.7); font-size: 0.98rem; }
.contact-info-item a:hover { color: var(--white); }

.contact-form {
  background: var(--white);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 { margin-bottom: 8px; font-size: 1.5rem; }
.contact-form .lede { margin-bottom: 30px; font-size: 0.95rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

.form-success {
  display: none;
  background: #eef6f0;
  border: 1px solid #cfe4d5;
  color: #2b6b45;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 30px;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-brand .brand-mark { color: rgba(255,255,255,0.85); }
.footer-brand .brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-brand-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--blue-light);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
  .steps::before { display: none; }
}

@media (max-width: 900px) {
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { position: static; margin-top: 0; max-width: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step p { max-width: 320px; }
}

@media (max-width: 760px) {
  nav.main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open nav.main-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    gap: 0;
    padding: 10px 40px 24px;
  }
  .site-header.nav-open nav.main-nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }
  .site-header.nav-open .header-cta { display: none; }
  .section-pad { padding: 80px 0; }
  .hero-credentials { gap: 26px; }
  .survey-head-row { flex-direction: column; align-items: flex-start; }
  .gallery-arrows { display: none; }
  .container { padding: 0 24px; }
  .survey-track-wrap { margin: 0 -24px; padding: 0 24px; }
}
