/* Marine Support UK — redesigned stylesheet v4 */
/* Deep blue #003366, teal #00838f, clean and professional */

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

:root {
  --blue: #003366;
  --blue-dark: #002244;
  --blue-light: #004a8f;
  --teal: #00838f;
  --teal-light: #00acc1;
  --bg: #f4f7fa;
  --bg-alt: #ffffff;
  --text: #1a2a3a;
  --muted: #6b7c8e;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --max-width: 1000px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 560px; }

/* Emergency bar */
.emergency-bar {
  background: #c0392b;
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.emergency-bar strong { font-weight: 700; }

/* Hero with background image */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,34,68,0.7) 0%, rgba(0,34,68,0.55) 50%, rgba(0,34,68,0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
  max-width: 640px;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-logo .logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.hero-logo span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .hero { min-height: 580px; }
  .hero h1 { font-size: 3.2rem; }
  .hero-logo span { font-size: 0.85rem; }
  .hero-logo .logo-mark { width: 1.25rem; height: 1.25rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.6rem; }
  .hero-logo span { font-size: 0.8rem; }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--teal);
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--teal);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.5rem;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--teal); color: var(--white); }

/* Sections */
.section-light { background: var(--bg-alt); padding: 3.5rem 0; }
.section-dark { background: var(--blue-dark); color: var(--white); padding: 3.5rem 0; }
.section-accent { background: var(--bg); padding: 3.5rem 0; }

.section-light h2, .section-accent h2 {
  font-size: 1.9rem;
  color: var(--blue);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-dark h2 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-light p, .section-accent p {
  max-width: 680px;
  margin: 0 auto 1rem;
  text-align: center;
}

.section-dark p { text-align: center; max-width: 680px; margin: 0 auto 1rem; opacity: 0.85; }

.lead { font-size: 1.15rem; font-weight: 500; }

/* Alert box */
.alert-box {
  background: #fff5f5;
  border: 1px solid #ffd5d5;
  border-left: 4px solid #c0392b;
  border-radius: var(--radius);
  padding: 1.2rem;
  margin: 1.5rem auto 0;
  max-width: 680px;
  font-size: 0.92rem;
  text-align: left;
}

/* Steps */
.steps {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
}

.step-num {
  width: 42px; height: 42px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700;
  margin: 0 auto 0.8rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.88rem; opacity: 0.8; text-align: center; }

/* Cover cards */
.cover-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.cover-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  transition: box-shadow 0.2s;
}
.cover-card:hover { box-shadow: var(--shadow); }

.cover-icon { font-size: 2rem; margin-bottom: 0.3rem; display: block; }
.cover-card h3 { font-size: 1rem; color: var(--blue); margin-bottom: 0.2rem; }
.cover-card p { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 0; }

/* Pricing */
.pricing-grid {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  border: 2px solid #e0e8ee;
  position: relative;
  box-shadow: var(--shadow);
}

.price-card.featured { border-color: var(--teal); }

.price-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.7rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 1px;
}

.price-tier { font-size: 1.1rem; font-weight: 700; color: var(--blue); margin-bottom: 0.3rem; }
.price-amount { font-size: 2.2rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.price-amount span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }

.price-card ul { list-style: none; text-align: left; }
.price-card ul li {
  padding: 0.35rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #eef2f6;
}
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li:before { content: "✓ "; color: var(--teal); font-weight: 700; }

.non-member-note { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
.non-member-note a { color: var(--teal); font-weight: 600; text-decoration: none; }

/* Supplier grid */
.supplier-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.supplier-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.3rem;
  flex: 1;
  min-width: 220px;
  max-width: 260px;
}
.supplier-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.supplier-card p { font-size: 0.82rem; color: var(--muted); text-align: left; margin: 0; }

/* Coverage */
.coverage-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.coverage-phase {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.phase-tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.7rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.phase-tag.future { background: rgba(255,255,255,0.2); }

.coverage-phase h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.coverage-phase p { font-size: 0.85rem; opacity: 0.8; text-align: center; }

/* Form */
#interest-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
}

.form-row { display: flex; gap: 0.7rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 180px; }

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 2px solid #d8e0ea;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fafbfd;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

textarea { margin-bottom: 0.7rem; resize: vertical; }

#interest-form button { width: 100%; margin-top: 0.3rem; }

.honeypot { position: absolute; left: -9999px; }

.form-result { margin-top: 0.8rem; text-align: center; font-size: 0.9rem; }
.form-result.success { color: #2a7a2a; font-weight: 600; }
.form-result.error { color: #c0392b; font-weight: 600; }

/* Footer */
footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.footer-disclaimer {
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}

.footer-contact { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-contact a { color: var(--teal-light); }

.footer-fine { font-size: 0.75rem; opacity: 0.5; max-width: 560px; margin: 0 auto; }

/* Mobile */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .form-row > * { min-width: 100%; }
  .steps, .cover-grid, .pricing-grid, .supplier-grid, .coverage-grid { flex-direction: column; align-items: center; }
  .step, .cover-card, .price-card, .supplier-card, .coverage-phase { max-width: 100%; }
  .section-light, .section-dark, .section-accent { padding: 2.5rem 0; }
}
