/**
 * Long Island marina local-service page.
 * Scoped to .gns-li-marina so homepage, /marinas/, and other pages stay unchanged.
 * Visual system: harbor navy + sand/brass — distinct from the national teal path.
 */

.gns-li-marina {
  --li-navy: #0c2433;
  --li-navy-mid: #16384c;
  --li-sand: #c4a06a;
  --li-sand-deep: #9a7848;
  --li-paper: #f4efe6;
  --li-ink: #14202a;
  --li-muted: #4d5b66;
  --li-line: #d8cfc0;
  max-width: 100%;
  color: var(--li-ink);
  background: var(--li-paper);
}

.gns-li-marina .kicker {
  color: var(--li-sand-deep);
}

.gns-li-marina .section-title {
  color: var(--li-navy);
}

.li-section {
  padding: 3.1rem 0 3.2rem;
}

.li-section--tint {
  background: #efe8db;
}

.li-head {
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.li-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.li-lede {
  margin: 0.7rem 0 0;
  color: var(--li-muted);
  max-width: 42rem;
}

.li-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-height: clamp(28rem, 62vh, 38rem);
  color: #f4efe6;
}

.li-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 38% 62%;
}

.li-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(8, 22, 32, 0.86) 0%,
    rgba(12, 36, 51, 0.58) 42%,
    rgba(12, 36, 51, 0.18) 68%,
    rgba(12, 36, 51, 0.04) 88%
  );
}

.li-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(28rem, 62vh, 38rem);
  padding-block: 2.4rem;
}

.li-hero-copy .kicker {
  color: #e6c894;
}

.li-hero-copy h1 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  max-width: 16ch;
  line-height: 1.08;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.li-hero-intro {
  margin: 0;
  max-width: 34rem;
  color: #f3eadc;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.li-hero-actions {
  margin: 1.25rem 0 0;
}

.li-hero-actions .btn-primary {
  background: var(--li-sand);
  color: var(--li-navy);
  box-shadow: 0 10px 22px rgba(8, 22, 32, 0.28);
}

.li-hero-actions .btn-primary:hover,
.li-hero-actions .btn-primary:focus-visible {
  background: #fff;
  color: var(--li-navy);
}

.li-intro {
  max-width: 42rem;
}

.li-intro p {
  margin: 0 0 0.95rem;
}

.li-intro p:last-child {
  margin-bottom: 0;
}

.li-corridor {
  padding: 2.8rem 0 3rem;
  background: #fff;
  border-block: 1px solid var(--li-line);
}

.li-corridor .section-title {
  max-width: 22ch;
}

.li-corridor p {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: var(--li-muted);
}

.li-chips {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.li-chips li {
  padding: 0.4rem 0.85rem;
  background: var(--li-paper);
  border: 1px solid var(--li-line);
  color: var(--li-navy);
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 700;
}

.li-region {
  background: var(--li-navy);
  color: #e8e2d6;
  padding: 3.2rem 0 3.4rem;
}

.li-region .kicker {
  color: #e6c894;
}

.li-region .section-title {
  color: #fff;
  max-width: 22ch;
}

.li-region p {
  max-width: 44rem;
  margin: 0.9rem 0 0;
  color: #d8cfc0;
}

.li-region-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.li-region-list li {
  padding: 0.45rem 0.9rem;
  background: var(--li-navy-mid);
  color: #f4efe6;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  border-left: 3px solid var(--li-sand);
}

.li-region-note {
  font-size: 0.95rem;
}

.li-work {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.li-work li {
  background: #fff;
  border: 1px solid var(--li-line);
  border-top: 3px solid var(--li-sand);
  padding: 0.85rem 0.95rem;
  color: var(--li-ink);
  min-width: 0;
}

.li-spec-wrap .wp-block-table figcaption {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.li-spec-wrap {
  overflow-x: auto;
  max-width: 54rem;
  background: #fff;
  border: 1px solid var(--li-line);
  box-shadow: var(--shadow-soft);
}

.li-spec-wrap .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

.li-spec-wrap .wp-block-table table th,
.li-spec-wrap .wp-block-table table td {
  padding: 0.85rem 1.05rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--li-line);
}

.li-spec-wrap .wp-block-table table thead th {
  background: var(--li-navy);
  color: #f4efe6;
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.li-spec-wrap .wp-block-table table tbody th {
  width: 28%;
  color: var(--li-navy);
  font-weight: 700;
  background: #faf6ef;
}

.li-spec-wrap .wp-block-table table tbody tr:nth-child(even) td {
  background: #fbf8f2;
}

.li-spec-wrap .wp-block-table table tbody tr:last-child th,
.li-spec-wrap .wp-block-table table tbody tr:last-child td {
  border-bottom: 0;
}

.li-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: #fff;
}

.li-split--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.li-split--reverse .li-split-photo {
  order: 2;
}

.li-split-photo {
  margin: 0;
  min-width: 0;
  background: var(--li-navy);
}

.li-split-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  min-height: 24rem;
}

.li-split-copy {
  padding: 2.6rem 8% 2.8rem;
  align-self: center;
  min-width: 0;
}

.li-split-copy p {
  margin: 0 0 0.9rem;
  color: var(--li-muted);
  max-width: 38rem;
}

.li-split-copy p:last-child {
  margin-bottom: 0;
}

.li-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.li-projects figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--li-line);
  min-width: 0;
}

.li-projects img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
}

.li-projects figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  color: var(--li-muted);
  font-size: 0.92rem;
}

.li-process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  counter-reset: li-process;
}

.li-process li {
  counter-increment: li-process;
  background: #fff;
  border: 1px solid var(--li-line);
  padding: 1.2rem 1.15rem 1.3rem;
  min-width: 0;
}

.li-process li::before {
  content: counter(li-process, decimal-leading-zero);
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--li-sand-deep);
}

.li-process strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--li-navy);
}

.li-process span {
  color: var(--li-muted);
}

.li-faq {
  max-width: 46rem;
}

.gns-li-marina .faq details {
  background: #fff;
  border-color: var(--li-line);
}

.gns-li-marina .faq summary::after {
  border-color: var(--li-sand-deep);
}

.li-cta {
  background:
    linear-gradient(112deg, rgba(8, 22, 32, 0.92) 0%, rgba(22, 56, 76, 0.78) 100%),
    center 42% / cover no-repeat url("../images/li-marina-seasonal.jpg");
  color: #f4efe6;
  padding: 3.6rem 0 3.8rem;
}

.li-cta .kicker {
  color: #e6c894;
}

.li-cta .section-title {
  color: #fff;
  max-width: 18ch;
}

.li-cta p {
  max-width: 40rem;
  color: #d8cfc0;
}

.li-cta-actions {
  margin: 1.3rem 0 0;
}

.li-cta .btn-primary {
  background: var(--li-sand);
  color: var(--li-navy);
}

.li-cta .btn-primary:hover,
.li-cta .btn-primary:focus-visible {
  background: #fff;
  color: var(--li-navy);
}

.li-cta-meta {
  margin-top: 1.15rem;
  font-size: 0.98rem;
}

.li-cta a {
  color: #fff;
  font-weight: 600;
}

.li-cta a:hover,
.li-cta a:focus-visible {
  color: #e6c894;
}

@media (max-width: 1100px) {
  .li-work,
  .li-process,
  .li-projects {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .li-split,
  .li-split--reverse {
    grid-template-columns: 1fr;
  }

  .li-split--reverse .li-split-photo {
    order: 0;
  }

  .li-split-photo img {
    min-height: 18rem;
    aspect-ratio: 16 / 10;
  }

  .li-split-copy {
    padding: 1.8rem 1.25rem 2.1rem;
  }

  .li-hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .li-work,
  .li-process,
  .li-projects {
    grid-template-columns: 1fr;
  }

  .li-spec-wrap .wp-block-table table {
    min-width: 0;
  }

  .li-spec-wrap .wp-block-table table thead {
    display: none;
  }

  .li-spec-wrap .wp-block-table table,
  .li-spec-wrap .wp-block-table table tbody,
  .li-spec-wrap .wp-block-table table tr,
  .li-spec-wrap .wp-block-table table th,
  .li-spec-wrap .wp-block-table table td {
    display: block;
    width: 100%;
  }

  .li-spec-wrap .wp-block-table table tbody th,
  .li-spec-wrap .wp-block-table table tbody td {
    border-bottom: 0;
  }

  .li-spec-wrap .wp-block-table table tbody tr {
    padding: 0.75rem 0.9rem 0.9rem;
    border-bottom: 1px solid var(--li-line);
  }

  .li-spec-wrap .wp-block-table table tbody tr:last-child {
    border-bottom: 0;
  }

  .li-hero img {
    object-position: 22% 68%;
  }
}

@media (max-width: 390px) {
  .li-hero-copy,
  .li-hero {
    min-height: 26rem;
  }
}
