@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,500&display=swap');

:root {
  --navy: #062d49;
  --navy-deep: #031e32;
  --blue: #0b4770;
  --gold: #e9bd65;
  --gold-light: #f4d38d;
  --ink: #0a3760;
  --muted: #50647a;
  --paper: #f7fafb;
  --line: rgba(255,255,255,.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--paper);
}
a { color: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #04182F;
  border-bottom: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; width: 220px; }
.brand img { display: block; width: 140%; max-height: 90px; object-fit: contain; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 36px; }
.nav-links a {
  position: relative; display: block; padding: 25px 0 22px;
  color: #f7fbff; text-decoration: none; text-transform: uppercase;
  font-size: .78rem; letter-spacing: .06em; transition: color .2s ease;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 14px; width: 0; height: 2px; background: var(--gold); transition: width .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: white; }

.hero { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy); }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image {
  background-image: url("header.jpg");
  background-position: center 53%; background-size: cover;
}
.hero-shade { background: linear-gradient(90deg, rgba(3,30,50,.93) 0%, rgba(3,30,50,.76) 34%, rgba(3,30,50,.16) 72%, rgba(3,30,50,.04) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 58px 46px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700; }
.eyebrow { color: #fff; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.8rem, 5.3vw, 4.7rem); line-height: 1.08; letter-spacing: .015em; font-weight: 500; margin-bottom: 10px; }
.hero-subtitle { max-width: 470px; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.4; color: #f0f6fa; }
.gold-rule { width: 54px; height: 3px; margin: 20px 0 18px; background: var(--gold); }
.values { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 25px; }
.values span { display: inline-flex; align-items: center; gap: 9px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.value-icon { color: var(--gold); font-size: 1.55rem; line-height: 1; font-weight: 400; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 12px 25px; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; border-radius: 3px; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--navy-deep); border: 1px solid var(--gold); }
.button-gold:hover { background: var(--gold-light); }

.about { background: #fff; overflow: hidden; }
.about-inner { min-height: 200px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; }
.about-copy { padding: 31px 35px 30px 0; align-self: center; }
.section-kicker { display: flex; align-items: center; gap: 12px; color: #0b5b8a; margin-bottom: 6px; font-size: .64rem; }
.section-kicker span { display: inline-block; width: 38px; height: 2px; background: var(--gold); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.25; color: var(--ink); }
.about-copy h2 { margin-bottom: 10px; }
.about-copy > p:last-child { max-width: 560px; font-size: .91rem; line-height: 1.55; color: var(--muted); }
.about-photo {
  position: relative; min-height: 200px;
  background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.03) 28%), url("FTL.jpg");
  background-position: center, center 57%; background-size: cover;
}
.script-note { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding: 12px 0 12px 24px; background: rgba(255,255,255,.78); color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.1; }

.services { padding: 25px 0 30px; background: linear-gradient(135deg, #edf4f7, #f8fbfc); }
.services h2 { margin-bottom: 17px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { display: grid; grid-template-columns: 1.18fr .82fr; min-height: 230px; background: #fff; border-radius: 5px; overflow: hidden; box-shadow: 0 5px 18px rgba(6,45,73,.08); }
.service-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 15px 13px 12px 16px; }
.service-icon { color: #075b8b; font-size: 1.65rem; line-height: 1.1; margin-bottom: 3px; }
.service-card h3 { color: var(--ink); font-size: .97rem; line-height: 1.25; margin-bottom: 5px; }
.service-card p { color: var(--muted); font-size: .73rem; line-height: 1.43; }
.learn-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 9px; color: #00649b; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; font-weight: 700; }
.learn-link:hover { color: #003d62; }
.service-photo { min-height: 100%; background-size: cover; background-position: center; }
.survey-photo {
  background-image: url("checklist.jpg");
} 
.captain-photo { background-image: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=700&q=80"); }
.project-photo {
  background-image: url("boatlift.jpg");
} 


/* ===== Tablet & smaller ===== */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    grid-template-columns: 1fr;   /* stack text above photo */
  }

  .service-photo {
    min-height: 180px;
  }

  .services h2 {
    font-size: 1.6rem;
  }
}

/* ===== Phones ===== */
@media (max-width: 560px) {
  .container {
    width: min(1180px, calc(100% - 32px));
  }

  .service-grid {
    gap: 14px;
  }

  .service-copy {
    padding: 14px 14px 12px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: .82rem;
  }

  .learn-link {
    font-size: .66rem;
  }

  .services {
    padding: 18px 0 22px;
  }
}
