/* ==========================================================================
   Branarchy Sportfishing
   Barnegat Light, NJ. Capt. Frank Branagan
   ========================================================================== */

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-text: #1a1a1a;
  --color-muted: #5a6573;
  --color-navy: #002855;       /* brand / primary */
  --color-navy-deep: #001a3d;
  --color-sea: #0a6e8f;        /* links / accents */
  --color-cta: #2082c4;        /* "Book now" - the one loud color */
  --color-cta-hover: #1a6ba0;
  --color-border: #e6e9ee;
  --font-heading: "Oswald", "Segoe UI", system-ui, sans-serif;
  --max-width: 1140px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 25, 60, 0.08);
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--color-navy);
}

a {
  color: var(--color-sea);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  border: 2px solid var(--color-navy);
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--color-navy-deep);
  border-color: var(--color-navy-deep);
}

.btn:active {
  transform: translateY(1px);
}

/* The single loudest action sitewide */
.btn-cta {
  background: var(--color-cta);
  border-color: var(--color-cta);
  color: #fff;
}

.btn-cta:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   Header / nav (sticky, persistent Book now)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

/* Offset anchored sections so they clear the sticky navbar when jumped to */
#trips,
#about {
  scroll-margin-top: 90px;
}

/* Captain section spans wider, leaving ~150px gutters on each side */
#about {
  max-width: none;
  padding-left: 150px;
  padding-right: 150px;
}

@media (max-width: 860px) {
  #about {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.nav {
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-navy);
  white-space: nowrap;
}

.nav-brand span {
  color: var(--color-sea);
  font-weight: 600;
}

.nav-brand img {
  display: block;
  height: 38px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.9rem;
}

/* Smaller Book now button in the nav */
.nav-book {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-sea);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-navy);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

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

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.section-head p {
  color: var(--color-muted);
  margin-top: 0.6rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-sea);
  margin-bottom: 0.5rem;
}

/* Small anchor icon before each eyebrow label (nautical accent) */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.45em;
  vertical-align: -0.18em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6e8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M5 12a7 7 0 0 0 14 0'/%3E%3Cline x1='3' y1='12' x2='5' y2='12'/%3E%3Cline x1='19' y1='12' x2='21' y2='12'/%3E%3C/svg%3E") no-repeat center / contain;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-muted);
}

.text-center {
  text-align: center;
}

.bg-alt {
  background: var(--color-bg-alt);
}

/* Home link at the top of sub-pages (no navbar) */
.page-back {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.page-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-navy);
}

.page-back a:hover {
  color: var(--color-sea);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: var(--color-navy-deep);
}

/* Full-opacity photo, no darkening overlay */
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Translucent blue strip across the top for readable brand + button */
.hero-bar {
  position: absolute;
  inset: 0;                       /* cover the whole photo */
  z-index: 2;
  display: flex;
  align-items: center;            /* vertical center */
  justify-content: center;        /* horizontal center */
  text-align: center;
  padding: 1.5rem;
  background: transparent;        /* full-opacity photo, no tint */
  color: #fff;
}

.hero-brand {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Charter cards (featured + full grid)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.charter-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.charter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 25, 60, 0.13);
}

.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d7e2ec, #eef2f6);
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.45rem;
}

.card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.card-meta {
  font-weight: 700;
  color: var(--color-cta);
  margin-bottom: 0.6rem;
}

.card-meta .dot {
  color: var(--color-muted);
  margin: 0 0.4rem;
  font-weight: 400;
}

.card-desc {
  color: var(--color-muted);
  font-size: 0.97rem;
  flex: 1;
  margin-bottom: 1.1rem;
}

.card-body .btn {
  align-self: flex-start;
}

/* Helper / "not sure" card */
.helper-card {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--color-bg-alt);
  border-style: dashed;
  box-shadow: none;
  padding: 2rem 1.5rem;
}

.helper-card:hover {
  transform: none;
  box-shadow: none;
}

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

.helper-card p {
  color: var(--color-muted);
  margin-bottom: 1.1rem;
}

/* "Not sure which trip?" prompt under the home trips carousel */
.charter-help {
  max-width: 640px;
  margin: 2.75rem auto 0;
  text-align: center;
}

.charter-help h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.charter-help p {
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Captain teaser (home)
   ========================================================================== */
.teaser {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.teaser-photo {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #d7e2ec, #eef2f6);
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}

.teaser-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teaser-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.6rem;
}

.teaser-body p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Booking CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  background: linear-gradient(180deg, var(--color-navy), var(--color-navy-deep));
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem;
}

/* Wave divider rising into the CTA band */
.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -38px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 V20 Q300,0 600,20 T1200,20 V40 Z' fill='%23002855'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 1.25rem;
}

.cta-band p {
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   About - captain & boat blocks
   ========================================================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #d7e2ec, #eef2f6);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Show the whole photo at its native aspect ratio (no crop) */
.feature-media--full {
  aspect-ratio: auto;
  background: none;
}

.feature-media--full img {
  height: auto;
  object-fit: contain;
}

/* Testimonial / review block */
.testimonial {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-sea);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.testimonial p {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.feature-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.feature-body p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.spec-list {
  list-style: none;
  margin-top: 1rem;
}

.spec-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.spec-list li span:first-child {
  font-weight: 600;
  color: var(--color-navy);
}

.spec-list li span:last-child {
  color: var(--color-muted);
  text-align: right;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-details li {
  margin-bottom: 1rem;
}

.contact-details .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-sea);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-details a {
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--color-text);
}

.contact-details a:hover {
  color: var(--color-sea);
}

.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.social-links a {
  text-decoration: none;
  font-weight: 600;
}

.map-embed {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Book page (FishingBooker embed)
   ========================================================================== */
.book-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

.book-embed {
  width: 100%;
  min-height: 820px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Photo carousel
   ========================================================================== */
.carousel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Full-bleed carousel: spans the viewport with ~50px gutters either side */
.carousel-section {
  max-width: none;
  padding-left: 50px;
  padding-right: 50px;
}

.carousel-section .carousel {
  max-width: none;
}

@media (max-width: 560px) {
  .carousel-section {
    padding-left: 1.5rem;       /* 50px is too tight on phones */
    padding-right: 1.5rem;
  }
}

.carousel-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 10px;          /* room so slide shadows aren't clipped */
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 calc((100% - 2rem) / 3);   /* 3 across on desktop */
  margin: 0;
  scroll-snap-align: start;
}

/* Charter-card slides: default flex stretch keeps them equal height
   (an explicit height here would opt the cards out of stretch). Just
   disable the hover lift inside the scrolling track. */
.carousel .charter-card:hover {
  transform: none;
}

.carousel-btn {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 40, 85, 0.78);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

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

.carousel-prev {
  order: -1;   /* sits left of the track */
}

.carousel-next {
  order: 1;    /* sits right of the track */
}

@media (max-width: 860px) {
  .carousel-slide {
    flex-basis: calc((100% - 1rem) / 2);   /* 2 across on tablet */
  }
}

@media (max-width: 560px) {
  .carousel-slide {
    flex-basis: 100%;                       /* 1 across on phones */
  }
}

/* ==========================================================================
   Photo gallery marquee (two auto-scrolling rows, opposite directions)
   ========================================================================== */
.gallery-section {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;             /* clip the off-screen duplicate slides */
}

.marquee {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.marquee-row {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-left .marquee-track {
  animation: marquee-left 40s linear infinite;
}

.marquee-right .marquee-track {
  animation: marquee-right 40s linear infinite;
}

/* Pause when hovered so visitors can look */
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-img {
  flex: 0 0 auto;
  width: calc((100vw - 3rem) / 3);   /* ~3 across, full frame */
  aspect-ratio: 4 / 3;
  margin: 0 1rem 0 0;                /* uniform trailing gap keeps the loop seamless */
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #d7e2ec, #eef2f6);
}

.marquee-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* translateX(-50%) = exactly one copy of the duplicated set */
@keyframes marquee-left {
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--color-navy-deep);
  color: #cdd6e2;
}

/* Wave divider rising into the footer */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -38px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 V20 Q300,0 600,20 T1200,20 V40 Z' fill='%23001a3d'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p,
.footer-col a {
  color: #cdd6e2;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: #9aa7ba;
}

.footer-legal a {
  color: #9aa7ba;
}

.footer-legal a:hover {
  color: #fff;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.legal h2 {
  margin: 2rem 0 0.5rem;
}

.legal p {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

.legal-updated {
  color: #888;
  font-size: 0.9rem;
}

.legal-back {
  margin-top: 2.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    order: 3;
  }

  .nav-right {
    gap: 0.75rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links li {
    border-top: 1px solid var(--color-border);
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
  }

  .card-grid,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .teaser {
    flex-direction: column;
    text-align: center;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 540px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
