/* =====================================================================
   MyWave v2 — Base Styles
   Minimalist. Warm. Confident. Whitespace is the design.
   ===================================================================== */

:root {
  /* Palette — calmer, richer than the old bright navy */
  --navy: #0a2540;
  --navy-soft: #1a3a5c;
  --bg: #fafaf7;          /* warm off-white */
  --panel: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a6470;
  --accent: #c9a96e;       /* refined gold, used sparingly */
  --accent-soft: #e8dcc4;
  --border: #e8e6e0;
  --shadow: 0 1px 3px rgba(10, 37, 64, 0.06);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;

  /* Rhythm */
  --max-width: 960px;
  --max-width-narrow: 680px;
  --space: 1rem;
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.25em;
}

p:last-child { margin-bottom: 0; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent); }

strong { font-weight: 600; color: var(--navy); }

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}

.muted { color: var(--text-muted); }

/* ========== Layout ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

section {
  padding: 5rem 0;
}

section.tight { padding: 3rem 0; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--navy);
  color: var(--bg) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--navy-soft); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========== Hero ========== */
.hero {
  padding: 6rem 0 5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Subtle wave texture behind the hero — faded, not in your face.
   Layered: image at low opacity, fading down into the page background. */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url("../assets/wave-texture-light.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.hero .lead {
  max-width: 52ch;
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--navy-soft);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--bg);
}

/* ========== Service grid (homepage) ========== */
.services-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.services-intro h2 {
  margin-bottom: 0.75rem;
}

.services-intro .lead {
  max-width: 42ch;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
}

.service-card .service-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.service-card .card-line {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-card .card-link {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ========== Why-us block ========== */
.why {
  background: var(--navy);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Faint wave texture layered into the navy block — adds contour without
   being literal. Blend mode softens it into the background. */
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/wave-texture-dark.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}

.why > * { position: relative; z-index: 1; }

.why h2, .why h3 { color: var(--bg); }

.why .lead { color: rgba(250, 250, 247, 0.8); }

.why .container-narrow p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(250, 250, 247, 0.9);
}

.why .container-narrow p strong { color: var(--accent); }

/* ========== Page hero (subpages) ========== */
.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Subtle wave texture fading in from the right — echoes the homepage hero
   so every page feels like part of the same body of water. */
.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url("../assets/wave-texture-light.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.page-hero > .container { position: relative; z-index: 1; }

.page-hero .service-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.page-hero h1 {
  margin-bottom: 1rem;
  max-width: 20ch;
}

.page-hero .lead {
  max-width: 54ch;
}

/* ========== Content sections ========== */
.prose {
  font-size: 1.05rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h2:first-child { margin-top: 0; }

.prose ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker { color: var(--accent); }

/* Two-column block (Harbor Own vs Host) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.col-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.col-card h3 {
  margin-bottom: 0.5rem;
}

.col-card .col-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

/* How it works steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-left: 3rem;
  position: relative;
  margin-bottom: 1.75rem;
  min-height: 2rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.steps li strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Feature list (why-us on service pages) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 1rem;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.feature-list li strong {
  display: block;
  margin-bottom: 0.15rem;
}

/* ========== FAQ ========== */
.faq {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-muted);
  margin: 0;
}

/* ========== Pricing note ========== */
.pricing-note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.pricing-note p {
  margin: 0;
  font-size: 1.1rem;
}

/* ========== Trust callout ========== */
.trust-callout {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.trust-callout h3 {
  margin-bottom: 0.75rem;
}

.trust-callout ul {
  padding-left: 1.2rem;
  margin: 0;
}

.trust-callout li {
  margin-bottom: 0.5rem;
}

/* ========== Final CTA ========== */
.final-cta {
  text-align: center;
  background: var(--navy);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Same faint wave texture as the why-us block, for visual consistency. */
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/wave-texture-dark.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}

.final-cta > * { position: relative; z-index: 1; }

.final-cta h2 { color: var(--bg); }

.final-cta .lead {
  color: rgba(250, 250, 247, 0.8);
  max-width: 44ch;
  margin: 0 auto 2rem;
}

/* ========== Contact form ========== */
.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s ease;
}

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

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.contact-form .btn {
  width: 100%;
}

.form-fineprint {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ========== Form status banner (after submit) ========== */
.form-status {
  margin-top: 1.5rem;
}

.form-status .container {
  padding: 0 1.5rem;
}

.status-banner {
  padding: 1.1rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid;
}

.status-success {
  background: #eef7ee;
  border-color: #b8d8b8;
  color: #1f4d1f;
}

.status-error {
  background: #fdeeee;
  border-color: #e8b8b8;
  color: #7a1f1f;
}

/* ========== Direct contact (email options) ========== */
.direct-contact {
  margin-top: 3rem;
  text-align: center;
}

.direct-contact h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.direct-contact > .muted { margin-bottom: 2rem; }

.contact-emails {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 480px;
  text-align: left;
}

.contact-emails li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-emails li:last-child { border-bottom: none; }

.contact-emails .contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-emails a {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-emails .contact-desc {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.direct-note {
  font-size: 0.95rem;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--navy);
  color: rgba(250, 250, 247, 0.8);
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle wave texture + a thin gold "horizon" line at the top of the footer. */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/wave-texture-dark.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--accent) 30%,
    var(--accent) 70%,
    transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.site-footer > .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: var(--bg);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: rgba(250, 250, 247, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-grid a:hover { color: var(--accent); }

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 32ch;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 250, 247, 0.15);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========== Responsive ========== */
@media (max-width: 860px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  section { padding: 3.5rem 0; }

  .hero { padding: 4rem 0 3rem; }

  /* Slightly smaller logo on mobile so the nav fits */
  .brand img { height: 40px; }

  /* Mobile nav */
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }

  .main-nav.open { transform: translateY(0); }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }

  .contact-form { padding: 1.5rem; }
}

/* ========== Subtle motion ========== */
@media (prefers-reduced-motion: no-preference) {
  .service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
