/* Basic reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 0;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #0f172a;
}

/* Background with Harbor.jpg */
.with-background {
  position: relative;
  min-height: 100vh;
  background-image: url("Harbor.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark overlay to improve contrast */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55); /* slate-ish */
  pointer-events: none;
  z-index: 0;
}

/* Layout shell */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem 1.5rem;
  /* padding-top will be set dynamically by JavaScript */
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: white;
  z-index: 10;
  padding: 1rem 1.5rem 0.5rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 8rem;
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-title-block {
  min-width: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e5e7eb;
}

.brand-tagline {
  font-size: 2rem;
  color: #4b5563;
  opacity: 0.9;
}

.brand-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 0.75rem;
}

.nav-link {
  font-size: 0.9rem;
  color: #0f172a;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  opacity: 0.8;
}

.nav-link:hover {
  opacity: 1;
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(15, 23, 42, 0.05);
}

.nav-link-active {
  border-color: rgba(15, 23, 42, 0.3);
  background: rgba(15, 23, 42, 0.1);
  opacity: 1;
}

/* Floating content card */
.content-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 0.9rem;
  padding: 2rem 1.8rem 1.8rem 1.8rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
}

.content-card h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  color: #0f172a;
}

.content-card h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #0f172a;
}

.content-card p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Service list */
.service-list {
  margin: 0 0 1rem 0;
  padding-left: 1.1rem;
}

.service-list li {
  margin-bottom: 0.3rem;
}

/* Extra text bits */
.note-text {
  font-size: 0.95rem;
  color: #4b5563;
}

.cta-box {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.cta-link {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}

.cta-link:hover {
  text-decoration: underline;
}

.footnote {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Contact form */
.contact-form {
  margin-top: 1.4rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #111827;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.4);
}

.btn-primary {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: #0ea5e9;
  color: #f9fafb;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0284c7;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #4b5563;
}

/* Pricing table */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-item {
  padding: 1rem 1rem 0.9rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(248, 250, 252, 0.9);
}

.service-item h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.service-price {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #0f172a;
}

.service-desc {
  margin: 0 0 0.4rem 0;
  font-size: 0.92rem;
  color: #374151;
}

.service-note {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.services-footer-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Stack services on small screens */
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Responsive tweaks */
@media (max-width: 640px) {
  .page-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    min-height: 7rem;
  }

  .content-card {
    padding: 1.5rem 1.3rem;
  }

  .site-header {
    padding: 0.75rem 1rem 0.5rem 1rem;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .pricing-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pricing-price {
    align-self: flex-start;
  }
}
