/* ============================================================
   Boating Indonesia — landing page
   ============================================================ */

:root {
  /* Brand palette */
  --ocean:       #005B96;   /* primary                        */
  --navy:        #002D62;   /* deep primary — headings, footer */
  --teal:        #009688;   /* secondary accent               */
  --orange:      #F57C00;   /* secondary accent               */
  --white:       #FFFFFF;
  --light-grey:  #F5F5F5;
  --dark-grey:   #424242;

  /* semantic aliases used across the stylesheet */
  --blue:        var(--ocean);   /* primary interactive       */
  --blue-dark:   var(--navy);    /* hover / deep              */
  --ink:         var(--dark-grey);
  --body-text:   var(--dark-grey);
  --about-bg:    var(--light-grey);
  --gold:        #9c8659;   /* editorial accent            */

  --hold:        3s;        /* time each slide is shown        */
  --fade:        1s;        /* crossfade duration              */
  --nav-h:       70px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body-text);
  background: #ffffff;
}

img { max-width: 100%; display: block; }

/* ---------------- header / nav ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 26px; width: auto; display: block; }
.footer-logo { display: flex; align-items: center; }
.footer-logo .logo-img { height: 32px; width: auto; display: block; }

.main-nav { margin: 0 auto; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-family: "Montserrat", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); }

.btn-subscribe {
  font-family: "Montserrat", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: #fff;
  background: var(--blue);
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .2s ease;
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------------- hero carousel ---------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.carousel {
  position: relative;
  width: 100%;
  height: 420px;
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--fade) ease-in-out;
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.slide-caption {
  position: absolute;
  left: 24px;
  bottom: 18px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 3px;
  transition: background .2s ease;
  z-index: 5;
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-arrow svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-arrow.prev { left: 8px; }
.hero-arrow.next { right: 8px; }

/* ---------------- about ---------------- */
.about {
  background: var(--about-bg);
  padding: 72px 24px 96px;
}
.about-inner {
  max-width: 760px;
  margin: 0 auto;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  font-size: 1.9rem;
  letter-spacing: 3px;
  margin: 0 0 40px;
}
.about-text {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--body-text);
  margin: 0;
}
.drop-cap::first-letter {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  float: left;
  font-size: 3.4rem;
  line-height: .8;
  padding: 6px 8px 0 0;
}

/* ---------------- focus states ---------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .btn-subscribe { display: none; }

  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 340px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .main-nav li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }

  .carousel { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NEWS / LATEST STORIES
   ============================================================ */
.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
}
.news { background: var(--light-grey); }
.section-lead {
  text-align: center;
  color: var(--body-text);
  font-size: 1.1rem;
  margin: -24px 0 48px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  background: #fff;
  border: 1px solid #ececec;
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -18px rgba(20,30,60,.35);
}
.card-media {
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.card-body { padding: 22px 22px 26px; }
.card-tag {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 10px;
}
.card-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.3;
}
.card-date {
  font-family: "Montserrat", sans-serif;
  font-size: .74rem;
  color: #9aa0aa;
  margin: 0 0 12px;
}
.card-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-text);
  margin: 0 0 16px;
}
.card-link {
  font-family: "Montserrat", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.card-link:hover { color: var(--blue-dark); }

/* ============================================================
   SUBSCRIBE CTA
   ============================================================ */
.subscribe {
  background: var(--blue);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}
.subscribe-inner { max-width: 620px; margin: 0 auto; }
.subscribe-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 14px;
}
.subscribe-text {
  font-size: 1.08rem;
  line-height: 1.7;
  opacity: .92;
  margin: 0 0 30px;
}
.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.subscribe-input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: 3px;
  font-family: "Montserrat", sans-serif;
  font-size: .95rem;
}
.subscribe-input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.subscribe-btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: .85rem;
  color: var(--blue);
  background: #fff;
  border: none;
  padding: 0 26px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.subscribe-btn:hover { background: #eaf3fb; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: #c4ccd6;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-blurb { margin: 16px 0 0; font-size: .98rem; line-height: 1.6; max-width: 320px; }
.footer-heading {
  font-family: "Montserrat", sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin: 0 0 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #c4ccd6; text-decoration: none; font-size: .96rem; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 20px 24px;
  text-align: center;
  font-size: .84rem;
  color: #8b98a6;
}

/* ============================================================
   RESPONSIVE for new sections
   ============================================================ */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-btn { padding: 14px; }
}


/* ============================================================
   LATEST ISSUE
   ============================================================ */
.latest-issue { background: #ffffff; }
.issue-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
}
.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 56px;
  align-items: center;
}

/* --- cover mockup --- */
.issue-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 26px 50px -20px rgba(0,45,98,.55);
}
.cover-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cover-overlay {
  position: absolute;
  inset: 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,45,98,.30) 0%, rgba(0,45,98,0) 32%, rgba(0,45,98,.72) 100%);
}
.cover-masthead {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.cover-kicker {
  font-family: "Montserrat", sans-serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.cover-headline {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 6px 0 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.cover-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.9;
  opacity: .95;
}
.cover-lines li { border-top: 1px solid rgba(255,255,255,.25); padding-top: 4px; }

/* --- issue info --- */
.issue-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
}
.issue-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--navy);
  margin: 10px 0 18px;
  line-height: 1.15;
}
.issue-text {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--body-text);
  margin: 0 0 28px;
  max-width: 520px;
}
.issue-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.issue-btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: .82rem;
  color: #fff;
  background: var(--ocean);
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .2s ease;
}
.issue-btn:hover { background: var(--navy); }
.issue-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ocean);
  text-decoration: none;
}
.issue-link:hover { color: var(--navy); }

@media (max-width: 860px) {
  .issue-layout { grid-template-columns: 1fr; gap: 36px; }
  .issue-cover { max-width: 300px; margin: 0 auto; }
}



/* ============================================================
   YACHT CARDS  (home teaser + listing page)
   ============================================================ */
.yachts-teaser { background: #ffffff; }
.yacht-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.yacht-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.yacht-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -18px rgba(0,45,98,.35);
}
.yacht-photo {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.boat-icon { width: 42%; height: auto; opacity: .92; }
.yacht-info { padding: 20px 20px 6px; flex: 1; }
.yacht-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.25;
}
.yacht-dealer {
  font-family: "Montserrat", sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9aa0aa;
  margin: 0 0 14px;
}
.yacht-specs {
  font-family: "Montserrat", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--dark-grey);
  margin: 0;
}
.yacht-price { background: var(--light-grey); padding: 14px 20px; margin-top: 14px; }
.yacht-price span {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--gold);
}
.teaser-more { text-align: center; margin-top: 40px; }

/* ---- listing page ---- */
.listing-hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 52px 24px;
}
.listing-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 2.2rem;
  margin: 0 0 8px;
}
.listing-sub { font-family: "Open Sans", sans-serif; opacity: .9; margin: 0; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.filter-bar input,
.filter-bar select {
  padding: 11px 12px;
  border: 1px solid #d8dde3;
  border-radius: 4px;
  font-family: "Open Sans", sans-serif;
  font-size: .9rem;
  color: var(--dark-grey);
  background: #fff;
}
.filter-search { flex: 1; min-width: 220px; }

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
#result-count {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
.sort-label {
  font-family: "Montserrat", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark-grey);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-label select {
  padding: 8px 10px;
  border: 1px solid #d8dde3;
  border-radius: 4px;
  font-family: "Open Sans", sans-serif;
}
.no-results { text-align: center; color: var(--body-text); padding: 48px 0; font-size: 1.05rem; }

@media (max-width: 900px) { .yacht-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .yacht-grid { grid-template-columns: 1fr; } .filter-search { min-width: 0; } }


/* ============================================================
   YACHT CARD LINKS + DETAIL PAGE
   ============================================================ */
.yacht-card-link { text-decoration: none; color: inherit; display: block; }
.yacht-card-link .yacht-card { height: 100%; }

.detail-loading { max-width: 1180px; margin: 60px auto; padding: 0 24px; color: var(--body-text); }

.crumbs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 0;
  font-family: "Montserrat", sans-serif;
  font-size: .82rem;
  color: #8b94a0;
}
.crumbs a { color: var(--ocean); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs span { margin: 0 4px; color: #c2c8d0; }

.detail-hero {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.detail-hero img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.detail-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.detail-brand {
  font-family: "Montserrat", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
}
.detail-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--navy);
  margin: 8px 0 10px;
  line-height: 1.1;
}
.detail-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  margin: 0 0 28px;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  border-top: 1px solid #e6e6e6;
  margin-bottom: 36px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #e6e6e6;
  font-size: .96rem;
}
.spec-label { color: #8b94a0; font-family: "Montserrat", sans-serif; font-size: .82rem; letter-spacing: .3px; }
.spec-value { color: var(--dark-grey); font-weight: 600; }
.detail-h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 12px;
}
.detail-desc { font-size: 1.06rem; line-height: 1.85; color: var(--body-text); margin: 0 0 32px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-img { width: 100%; height: 240px; object-fit: cover; border-radius: 6px; display: block; }
.gallery-img:only-child { grid-column: 1 / -1; height: 360px; }

.detail-aside { position: sticky; top: 90px; }
.enquiry-card {
  background: var(--light-grey);
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 28px 24px;
}
.enquiry-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 10px;
}
.enquiry-text { font-size: .98rem; line-height: 1.7; color: var(--body-text); margin: 0 0 22px; }
.enquiry-btn { display: block; text-align: center; margin-bottom: 16px; }

@media (max-width: 860px) {
  .detail-body { grid-template-columns: 1fr; gap: 32px; }
  .detail-hero img { height: 300px; }
  .detail-aside { position: static; }
  .spec-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-img, .gallery-img:only-child { height: 260px; }
}


/* --- yacht photos (added: real images over the gradient placeholder) --- */
.yacht-photo{position:relative;overflow:hidden}
.yacht-photo-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
