/* =========================================================
   Boating Indonesia - stylesheet
   Values taken from the Figma file (1440px desktop frame).
   ========================================================= */

:root {
  --navy: #002d62;
  --gold: #c5a880;
  --paper: #f5f5f5;
  --grey-box: #d9d9d9;
  --grey-text: #424242;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1253px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { width: var(--wrap); margin-left: calc(50% - 629px); }

/* ---------- Section titles (86px Cormorant, 64px line) ---------- */
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 86px;
  line-height: 64px;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- View more button ---------- */
.btn-view {
  display: block;
  width: min(100%, 763px);
  height: 53px;
  margin: 0 auto;
  border: 1px solid var(--navy);
  text-align: center;
  text-decoration: none;
  font-weight: 200;
  font-size: 24px;
  line-height: 51px;
  letter-spacing: 9.6px;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.btn-view:hover { background: var(--navy); color: #fff; }

.btn-pill {
  display: inline-block;
  border: 1px solid var(--navy);
  border-radius: 17.5px;
  height: 35px;
  line-height: 33px;
  padding: 0 38px;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn-pill:hover { background: var(--navy); color: #fff; }

/* ---------- Navbar ---------- */
.site-header { padding-top: 35px; position: relative; z-index: 20; }
.navbar {
  position: relative;
  height: 89px;
  border: 1px solid var(--navy);
}
.brand { position: absolute; left: 16px; top: 15px; }
.brand img { width: 238px; height: 57px; }
.nav-menu { position: absolute; left: 328px; top: 26px; right: 0; display: flex; align-items: center; }
.nav-links { display: flex; gap: 23px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; height: 35px; padding-top: 8px; line-height: normal; text-align: center; text-decoration: none; font-size: 16px; }
.nav-links li:nth-child(1) a, .nav-links li:nth-child(2) a, .nav-links li:nth-child(3) a, .nav-links li:nth-child(6) a { width: 87px; }
.nav-links li:nth-child(4) a { width: 63px; }
.nav-links li:nth-child(5) a { width: 69px; }
.nav-links a[aria-current="page"], .nav-links a:hover { text-decoration: underline; }
.nav-menu .btn-pill { position: absolute; left: 714px; top: 1px; width: 155px; padding: 7px 0 0; line-height: normal; text-align: center; }
.nav-toggle { display: none; position: absolute; right: 16px; top: 26px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

@media (max-width: 1240px) {
  .nav-menu { left: 290px; gap: 0; }
  .nav-links { gap: 8px; }
  .nav-menu .btn-pill { position: static; margin-left: auto; margin-right: 16px; }
}
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; left: -1px; right: -1px; top: 88px;
    background: var(--paper); border: 1px solid var(--navy); border-top: 0;
    flex-direction: column; align-items: flex-start; padding: 12px 16px 20px;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; width: 100%; }
  .nav-links a { width: auto !important; text-align: left; height: 44px; line-height: 44px; font-size: 18px; }
  .nav-menu .btn-pill { margin: 10px 0 0; }
}
@media (max-width: 480px) { .brand img { width: 190px; height: auto; margin-top: 7px; } }

/* ---------- Hero ---------- */
.hero { padding-top: 20px; }
.hero-media { aspect-ratio: 1253 / 519; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { display: flex; justify-content: space-between; gap: 40px; padding-top: 20px; min-height: 162px; }
.hero-title {
  font-family: var(--serif); font-weight: 700; font-size: 86px; line-height: 64px;
  text-transform: uppercase; flex: 0 0 auto;
}
.hero-text p { width: 594px; max-width: 100%; text-align: right; font-size: 16px; line-height: normal; }

/* ---------- Ad space / partner ---------- */
.ad-space {
  position: relative;
  height: 166px;
  background: var(--grey-box);
  text-align: center;
  padding-top: 64px;
}
.ad-space .btn-pill { position: absolute; left: 50%; top: 112px; transform: translateX(-50%); height: 32px; line-height: 30px; font-size: 14px; padding: 0 24px; }
.ad-space h2 { font-family: var(--sans); font-weight: 700; font-size: 32px; line-height: normal; color: var(--grey-text); }
.ad-space .btn-pill { border-color: var(--grey-text); color: var(--grey-text); }
@media (max-width: 1023px) { .ad-space { padding-top: 40px; } .ad-space .btn-pill { top: 94px; } }
.ad-space .btn-pill:hover { background: var(--grey-text); color: #fff; }
.ad-top { margin-top: 89px; }
.ad-bottom { margin-top: 97px; }

/* ---------- Latest issue ---------- */
.issues-section { background: var(--white); margin-top: 100px; padding: 120px 0 173px; }
.issues-section .section-title { margin-bottom: 137px; }
.issue { text-align: center; }
.issue + .issue { margin-top: 140px; }
.issue-cover { width: 527px; max-width: 100%; aspect-ratio: 527 / 710; margin: 0 auto; transform: translateX(-34.5px); }
.issue h3 { font-family: var(--serif); font-size: 52px; line-height: 64px; margin-top: 47px; }
.issue .issue-date { font-weight: 200; font-size: 24px; line-height: 64px; margin-top: -3px; text-transform: uppercase; }
.issue .issue-text { font-family: var(--body); font-weight: 300; font-size: 24px; line-height: normal; width: 596px; max-width: 100%; margin: -3px auto 0; min-height: 179px; transform: translateX(2px); }
.issues-section .btn-view { margin-top: 120px; transform: translateX(2px); }

/* ---------- News ---------- */
.news-section { padding: 120px 0 173px; }
.news-section .section-title { margin-bottom: 79px; }
.news-grid { display: grid; grid-template-columns: 597px 597px; justify-content: space-between; row-gap: 40px; }
.news-item { display: grid; grid-template-columns: 244px 331px; column-gap: 22px; align-items: start; }
.news-item img { width: 244px; height: 243px; object-fit: cover; }
.news-item h2, .news-item h3 { font-family: var(--serif); font-size: 32px; line-height: normal; height: 68px; width: 328px; }
.news-item .news-date { font-weight: 200; font-size: 16px; line-height: normal; height: 32px; margin-top: 19px; text-transform: uppercase; }
.news-item .news-text { font-family: var(--body); font-weight: 300; font-size: 16px; line-height: normal; width: 331px; margin-left: 1px; }
.news-section .btn-view { margin-top: 138px; }
@media (min-width: 1024px) { .news-item:nth-child(odd) { margin-left: -2px; } }

/* ---------- Yachts ---------- */
.yachts-section { background: var(--white); padding: 173px 0 173px; }
.yachts-section .section-title { margin-bottom: 64px; }
.yacht-grid { display: flex; width: 1283px; max-width: calc(100% + 38px); margin-left: -19px; }
.yacht-card {
  position: relative; width: 384px; min-height: 430px; flex: 0 0 384px;
  background: rgba(245, 245, 245, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  padding: 21px 18px 0 19px; height: 430px;
}
.yacht-card:nth-child(2) { margin-left: 73px; padding-left: 16px; padding-right: 21px; }
.yacht-card:nth-child(3) { margin-left: 58px; }
.yacht-card img { width: 347px; height: 226px; object-fit: cover; }
.yacht-card .broker { font-weight: 300; font-size: 14px; line-height: normal; margin-top: 10px; text-transform: uppercase; }
.yacht-card h3 { font-family: var(--sans); font-size: 24px; line-height: 28px; margin-top: 7px; }
.yacht-card .specs { font-weight: 300; font-size: 14px; line-height: normal; height: 28px; margin-top: 10px; }
.price-tag {
  display: block; width: 347px; max-width: 100%; height: 32px; margin-top: 29px;
  background: var(--navy); color: var(--gold);
  padding: 7px 11px 0; font-weight: 600; font-size: 14px; line-height: normal;
  text-transform: uppercase; text-decoration: none;
}
.yachts-section .btn-view { margin-top: 137px; transform: translateX(3px); }

/* ---------- Subscribe ---------- */
.subscribe { position: relative; margin-top: 97px; min-height: 522px; overflow: hidden; color: #fff; }
.subscribe-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.subscribe::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0,92,200,0) 0%, rgba(0,60,131,0.29) 21.635%, rgba(0,21,46,0.65) 90.385%);
}
.subscribe .inner { position: relative; z-index: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 91px 0 60px 91px; }
.subscribe h2 { font-family: var(--serif); font-size: 64px; line-height: normal; color: #fff; max-width: 1070px; }
.subscribe p.sub-text { font-family: var(--body); font-weight: 300; font-size: 32px; line-height: normal; max-width: 806px; margin-top: 12px; }
.subscribe-form { display: flex; gap: 31px; margin-top: 21px; flex-wrap: wrap; padding-left: 5px; }
.subscribe-form input {
  width: 535px; max-width: 100%; height: 67px; border: 0; border-radius: 10px; background: #fff;
  padding: 0 22px; font-family: var(--body); font-weight: 300; font-size: 24px; color: var(--grey-text);
}
.subscribe-form input::placeholder { color: var(--grey-text); opacity: 1; }
.subscribe-form button {
  width: 217px; height: 67px; border: 0; border-radius: 10px; background: #fff; color: var(--navy);
  font-family: var(--sans); font-weight: 700; font-size: 24px; text-transform: uppercase; cursor: pointer;
}
.subscribe-form button:hover { background: var(--gold); }
.form-note { min-height: 1.5em; margin-top: 12px !important; font-size: 18px; font-weight: 500; padding-left: 5px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 97px; }
.footer-main { background: var(--navy); color: #fff; min-height: 353px; }
.footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 45px 0 48px 95px;
  display: grid; grid-template-columns: 576fr 331fr 438fr;
}
.footer-inner img { width: 238px; height: 57px; }
.footer-inner .tagline { font-weight: 300; font-size: 22px; line-height: normal; max-width: 419px; margin-top: 22px; }
.footer-inner h2 { font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: normal; color: #fff; }
.footer-inner ul { list-style: none; margin: 27px 0 0; padding: 0; }
.footer-inner li a { font-weight: 300; font-size: 16px; line-height: 28px; text-decoration: none; }
.footer-inner li a:hover { text-decoration: underline; }
.footer-bottom { background: var(--navy); color: #fff; margin-top: 1px; min-height: 58px; padding: 19px 20px; text-align: center; font-weight: 300; font-size: 16px; line-height: normal; }

/* ---------- Inner pages ---------- */
.page-head { padding: 120px 0 0; }
.page-head .lede { font-family: var(--body); font-weight: 300; font-size: 24px; line-height: normal; text-align: center; max-width: 796px; margin: 48px auto 0; }
.page-section { padding: 120px 0 173px; }
.page-section.white { background: var(--white); margin-top: 100px; }
.page-section .section-title { margin-bottom: 79px; }
.about-image { aspect-ratio: 1253 / 519; overflow: hidden; margin-top: 79px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { text-align: center; }
.about-copy h3 { font-family: var(--serif); font-size: 52px; line-height: 64px; }
.about-copy p { font-family: var(--body); font-weight: 300; font-size: 24px; line-height: normal; max-width: 796px; margin: 16px auto 0; }
.about-copy + .about-copy { margin-top: 80px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-info h3 { font-family: var(--serif); font-size: 52px; line-height: 64px; }
.contact-info p, .contact-info li { font-family: var(--body); font-weight: 300; font-size: 24px; line-height: normal; }
.contact-info p { margin: 8px 0 48px; }
.contact-info ul { list-style: none; padding: 0; margin: 8px 0 0; }
.contact-info li a { text-decoration: none; }
.contact-info li a:hover, .contact-info p a:hover { text-decoration: underline; }
.form-grid { display: grid; gap: 22px; }
.form-grid label { display: grid; gap: 8px; font-weight: 300; font-size: 16px; text-transform: uppercase; letter-spacing: 2px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; border: 1px solid var(--navy); background: var(--paper); border-radius: 0;
  padding: 14px 16px; font-family: var(--body); font-weight: 300; font-size: 18px; color: var(--navy);
  text-transform: none; letter-spacing: 0;
}
.form-grid textarea { min-height: 180px; resize: vertical; }
.form-grid .btn-view { width: 100%; margin: 8px 0 0; background: transparent; cursor: pointer; }

/* ---------- Desktop: the page is laid out at the Figma width (1440px)
   and js/main.js scales it to fit screens between 1024px and 1440px. ---------- */


/* ---------- Tablet and phone ---------- */
@media (max-width: 1023px) {
  .wrap { width: calc(100% - 40px); margin: 0 auto; }
  .navbar { height: 72px; }
  .brand { top: 11px; }
  .brand img { width: 200px; height: auto; }
  .nav-toggle { display: block; top: 16px; }
  .nav-menu {
    display: none; position: absolute; left: -1px; right: -1px; top: 71px;
    background: var(--paper); border: 1px solid var(--navy); border-top: 0;
    flex-direction: column; align-items: flex-start; padding: 8px 16px 20px;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; width: 100%; }
  .nav-links a { width: auto !important; text-align: left; height: 44px; padding-top: 12px; font-size: 18px; }
  .nav-menu .btn-pill { position: static; margin-top: 10px; }

  .section-title { font-size: 56px; line-height: 50px; }
  .hero-title { font-size: 56px; line-height: 44px; }
  .hero-text { flex-direction: column; gap: 20px; min-height: 0; }
  .hero-text p { width: auto; text-align: left; }
  .ad-top { margin-top: 48px; }
  .ad-bottom { margin-top: 56px; }

  .issues-section, .page-section.white { margin-top: 56px; }
  .issues-section, .news-section, .yachts-section, .page-section { padding-top: 72px; padding-bottom: 96px; }
  .issues-section .section-title, .news-section .section-title, .yachts-section .section-title, .page-section .section-title { margin-bottom: 48px; }
  .issue-cover { width: 100%; max-width: 420px; transform: none; }
  .issue h3 { font-size: 40px; line-height: 48px; margin-top: 32px; }
  .issue .issue-text { font-size: 18px; min-height: 0; width: auto; }
  .issue + .issue { margin-top: 72px; }
  .issues-section .btn-view, .news-section .btn-view, .yachts-section .btn-view { margin-top: 64px; }

  .news-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .news-item { grid-template-columns: 1fr; row-gap: 16px; }
  .news-item img { width: 100%; height: auto; aspect-ratio: 1; }
  .news-item h2, .news-item h3 { height: auto; width: auto; }
  .news-item .news-date { margin-top: 8px; height: auto; }
  .news-item .news-text { width: auto; margin: 4px 0 0; }

  .yacht-grid { width: auto; margin: 0; flex-direction: column; gap: 32px; }
  .yacht-card, .yacht-card:nth-child(2), .yacht-card:nth-child(3) { width: auto; flex: none; margin: 0; padding: 18px; }
  .yacht-card img, .price-tag { width: 100%; height: auto; aspect-ratio: 347 / 226; }
  .price-tag { aspect-ratio: auto; height: 32px; }

  .btn-view { font-size: 16px; letter-spacing: 5px; }
  .ad-space h2 { font-size: 26px; }
  .subscribe .inner { width: calc(100% - 40px); padding: 64px 0 56px; }
  .subscribe h2 { font-size: 40px; }
  .subscribe p.sub-text { font-size: 20px; }
  .subscribe-form { gap: 12px; padding-left: 0; }
  .subscribe-form input, .subscribe-form button { width: 100%; font-size: 18px; height: 56px; }
  .site-footer { margin-top: 56px; }
  .footer-inner { grid-template-columns: 1fr; row-gap: 36px; padding: 40px 20px; }
  .page-head .lede, .about-copy p, .contact-info p, .contact-info li { font-size: 18px; }
  .about-copy h3, .contact-info h3 { font-size: 40px; line-height: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Subscribe button hover: navy box, white text ---------- */
.subscribe-form button { transition: background-color .2s, color .2s; }
.subscribe-form button:hover { background: var(--navy); color: #fff; }

/* ---------- Magazine page ---------- */
.mag-section { background: var(--white); margin-top: 100px; padding: 88px 0 78px; }
.mag-section .section-title { height: 64px; }
.mag-divider { height: 1px; background: var(--navy); margin-top: 58px; width: 1264px; margin-left: -3px; }
.mag-list { margin-top: 92px; }
.mag-item { position: relative; height: 411px; }
.mag-item + .mag-sep { margin-top: 92px; }
.mag-sep.dark { background: var(--navy); }
.mag-sep { height: 1px; width: 1012px; margin-left: 150px; background: rgb(167, 181, 201); margin-bottom: 94px; }
.mag-cover { position: absolute; left: 48px; top: 0; width: 335px; height: 411px; background: #424242; }
.mag-item h2 { position: absolute; left: 444px; top: 9px; font-family: var(--sans); font-weight: 700; font-size: 51px; line-height: normal; color: #000; }
.mag-rule { position: absolute; left: 442px; top: 99px; width: 584px; height: 1px; background: #4b4b4b; }
.mag-item p { position: absolute; left: 442px; top: 144px; width: 764px; font-family: var(--body); font-weight: 300; font-size: 16px; line-height: normal; color: #000; }
.mag-end { height: 1px; width: 1018px; margin: 93px 0 0 147px; background: var(--navy); }
.pagination { position: relative; height: 34px; margin-top: 24px; font-family: var(--sans); font-weight: 700; font-size: 28px; line-height: normal; }
.pagination a, .pagination span { position: absolute; top: 0; text-decoration: none; }
.pagination svg { display: block; margin-top: 9px; }

@media (max-width: 1023px) {
  .mag-section { margin-top: 56px; padding: 64px 0; }
  .mag-divider { margin-top: 40px; }
  .mag-list { margin-top: 48px; }
  .mag-item { height: auto; display: grid; grid-template-columns: 1fr; gap: 16px; }
  .mag-cover, .mag-item h2, .mag-rule, .mag-item p { position: static; width: auto; }
  .mag-cover { aspect-ratio: 336 / 413; max-width: 336px; height: auto; }
  .mag-item h2 { font-size: 32px; }
  .mag-sep, .mag-end { width: auto; margin-left: 0; }
  .mag-item + .mag-sep { margin-top: 40px; }
  .mag-sep { margin-bottom: 40px; }
  .mag-end { margin-top: 40px; }
  .pagination { display: flex; justify-content: center; gap: 24px; font-size: 22px; }
  .pagination a, .pagination span { position: static; }
}

/* ---------- About page (positions from the Figma frame, 1440px wide) ---------- */
.frame { position: relative; width: 1440px; margin-left: calc(50% - 720px); }
.ad-about { margin-top: 106px; }
.ad-about-end { margin-top: 116px; }

.about-intro { position: relative; height: 719px; overflow: hidden; }
.about-intro .frame { height: 719px; }
.spread { position: absolute; top: 103px; width: 716px; height: 529px; }
.spread-left { left: -303px; }
.spread-right { left: 1035px; }
.about-intro h1 { position: absolute; top: 287px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 48px; line-height: normal; }
.about-intro p { position: absolute; top: 356px; left: 500px; width: 440px; text-align: center; font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 23px; color: #000; }

.featuring { background: var(--white); height: 4002px; }
.featuring .frame { height: 4002px; }
.featuring h2.feat-title { position: absolute; top: 134px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 86px; line-height: 64px; }
.person { position: absolute; top: 295px; width: 364px; height: 553px; background: #424242; }
.person-photo { position: relative; height: 368px; overflow: hidden; }
.person-photo img { position: absolute; max-width: none; }
.person h3 { position: absolute; top: 402px; left: 26px; font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: normal; color: #fff; }
.person p { position: absolute; top: 453px; left: 26px; width: 312px; font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 23px; color: #fff; }
.story-img { position: absolute; width: 549px; height: 549px; object-fit: cover; }
.story { position: absolute; width: 510px; }
.story h2 { font-family: var(--sans); font-weight: 700; font-size: 64px; line-height: normal; color: #000; height: 156px; }
.story .story-rule { height: 1px; background: #000; margin-top: 26px; }
.story p { font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 23px; color: #000; margin-top: 30px; }
.story.right { text-align: right; }
.many-more { position: absolute; top: 3290px; left: 118px; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: normal; color: #000; }

.carousel { position: absolute; top: 3359px; left: 118px; width: 1249px; height: 517px; overflow: hidden; background: #0a3c5a; }
.carousel .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s; }
.carousel .slide.active { opacity: 1; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.carousel .caption { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: rgba(0, 0, 0, 0.5); color: #fff; padding: 5px 23px 0; font-family: var(--body); font-weight: 300; font-size: 22px; line-height: normal; }
.carousel .arrow { position: absolute; top: 243px; width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; }
.carousel .arrow svg { display: block; }
.carousel .prev { left: 31px; }
.carousel .next { left: 1190px; }
.carousel .dots { position: absolute; top: 445px; left: 580px; display: flex; gap: 28px; z-index: 2; }
.carousel .dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,0.6); cursor: pointer; }
.carousel .dots button[aria-current="true"] { background: #fff; }

@media (max-width: 1023px) {
  .ad-about, .ad-about-end { margin-top: 48px; }
  .frame { width: calc(100% - 40px); margin: 0 auto; height: auto !important; }
  .about-intro, .featuring, .about-intro .frame, .featuring .frame { height: auto; }
  .about-intro { padding: 48px 0; }
  .spread { display: none; }
  .about-intro h1, .about-intro p, .featuring h2.feat-title, .person, .person h3, .person p,
  .story-img, .story, .many-more, .carousel { position: static; width: auto; }
  .about-intro h1 { font-size: 36px; }
  .about-intro p { margin-top: 16px; }
  .featuring { padding: 64px 0; }
  .featuring h2.feat-title { font-size: 56px; line-height: 50px; margin-bottom: 40px; }
  .person { height: auto; margin-bottom: 24px; padding-bottom: 24px; }
  .person-photo { height: auto; aspect-ratio: 364 / 368; }
  .person-photo img { width: 100% !important; height: 100% !important; left: 0 !important; top: 0 !important; object-fit: cover; }
  .person h3 { margin: 20px 20px 8px; }
  .person p { margin: 0 20px; }
  .story-img { width: 100%; height: auto; aspect-ratio: 1; margin-top: 48px; }
  .story { margin-top: 24px; }
  .story h2 { font-size: 40px; height: auto; }
  .story.right { text-align: left; }
  .many-more { margin-top: 56px; font-size: 30px; }
  .carousel { position: relative; left: auto; top: auto; height: auto; aspect-ratio: 1249 / 517; margin-top: 16px; }
  .carousel .arrow { top: calc(50% - 17px); }
  .carousel .prev { left: 12px; } .carousel .next { left: auto; right: 12px; }
  .carousel .dots { top: auto; bottom: 52px; left: 50%; transform: translateX(-50%); gap: 14px; }
}

/* ---------- Inner listing pages (Magazine, News, Yachts) ---------- */
.list-section { background: var(--white); margin-top: 157px; padding-top: 88px; }
.list-section .section-title { height: 64px; }
.list-divider { height: 1px; background: var(--navy); margin-top: 58px; width: 1264px; margin-left: -3px; }
.filters { display: flex; gap: 34px; margin-top: 48px; height: 56px; margin-left: -14px; }
.filters .field { position: relative; height: 56px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; }
.filters input, .filters select {
  width: 100%; height: 100%; border: 0; background: transparent; border-radius: 6px;
  padding: 0 20px; font-family: var(--body); font-weight: 400; font-size: 22px; color: #424242; appearance: none; -webkit-appearance: none;
}
.filters input::placeholder { color: #424242; opacity: 1; }
.filters select { padding-right: 44px; cursor: pointer; }
.filters .field.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid #424242; border-bottom: 1.5px solid #424242; transform: rotate(45deg); pointer-events: none;
}
.results { font-family: var(--sans); font-weight: 700; font-size: 32px; line-height: normal; margin: 44px 0 0 -14px; }
.list-pagination { position: relative; height: 34px; font-family: var(--sans); font-weight: 700; font-size: 28px; line-height: normal; }
.list-pagination a, .list-pagination span { position: absolute; top: 0; text-decoration: none; }
.list-pagination svg { display: block; margin-top: 9px; }
.ad-list { margin-top: 92px; }
.ad-list-y { margin-top: 103px; }
.site-footer.tight { margin-top: 106px; }

/* News list */
.news-list { position: relative; margin-top: 60px; height: 1093px; }
.news-list .news-item { position: absolute; }

.news-section-list .list-pagination { margin-top: 73px; }
.news-section-list { padding-bottom: 64px; }
.ad-news { margin-top: 70px; }
.site-footer.tight-news { margin-top: 67px; }

/* Yacht list */
.yacht-list { position: relative; margin-top: 36px; height: 1436px; }
.yacht-list .yacht-card { position: absolute; width: 400px; height: 440px; flex: none; margin: 0; padding: 23px 27px 0; }
.yacht-list .yacht-card img { width: 346px; height: 230px; }
.yacht-list .yacht-card .broker { margin-top: 12px; }
.yacht-list .price-tag { width: 346px; margin-top: 32px; }
.yacht-section-list .list-pagination { margin-top: 46px; }
.yacht-section-list { padding-bottom: 60px; }

/* Magazine list uses the same section spacing */
.mag-section.list-top { margin-top: 157px; }

/* ---------- Contact page ---------- */
.contact-section { background: var(--white); margin-top: 131px; padding: 65px 0 72px; }
.contact-section h1, .contact-section h2 { font-family: var(--serif); font-weight: 700; font-size: 64px; line-height: normal; }
.contact-info-grid { display: grid; grid-template-columns: 660px 1fr; row-gap: 26px; margin-top: 35px; }
.contact-info-grid .label { font-family: var(--sans); font-weight: 400; font-size: 30px; line-height: normal; color: var(--navy); }
.contact-info-grid .value { font-family: var(--sans); font-weight: 400; font-size: 32px; line-height: normal; color: #000; margin-top: 4px; text-decoration: none; display: block; }
.contact-info-grid a.value:hover { text-decoration: underline; }
.contact-section h2 { margin-top: 71px; }
.enquiry { display: grid; grid-template-columns: 620px 596px; justify-content: space-between; column-gap: 40px; row-gap: 44px; margin-top: 17px; }
.enquiry label { display: block; font-family: var(--sans); font-weight: 400; font-size: 30px; line-height: normal; color: var(--navy); }
.enquiry .control { margin-top: 8px; height: 55px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; position: relative; display: flex; align-items: center; }
.enquiry input, .enquiry select, .enquiry textarea {
  border: 0; background: transparent; width: 100%; height: 100%; padding: 0 26px;
  font-family: var(--body); font-weight: 300; font-size: 24px; color: #424242; appearance: none; -webkit-appearance: none; border-radius: 6px;
}
.enquiry input::placeholder, .enquiry textarea::placeholder { color: #424242; opacity: 1; }
.enquiry .select::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid #424242; border-bottom: 1.5px solid #424242; transform: rotate(45deg); pointer-events: none; }
.enquiry .phone { padding-left: 16px; }
.enquiry .phone .code { display: flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 300; font-size: 24px; color: #424242; padding-right: 14px; border-right: 1px solid #d9d9d9; height: 32px; white-space: nowrap; }
.enquiry .phone .code select { width: auto; padding: 0 22px 0 0; height: 32px; }
.enquiry .phone .code .chev { position: relative; width: 9px; height: 9px; margin-left: -18px; margin-top: -5px; border-right: 1.5px solid #424242; border-bottom: 1.5px solid #424242; transform: rotate(45deg); pointer-events: none; }
.enquiry .phone input { padding-left: 14px; }
.enquiry .full { grid-column: 1 / -1; }
.enquiry textarea { height: 368px; padding-top: 20px; resize: vertical; }
.enquiry .area { height: auto; margin-top: 12px; }
.enquiry .send { grid-column: 1 / -1; justify-self: end; margin-top: -20px; }
.site-footer.flush { margin-top: 0; }

@media (max-width: 1023px) {
  .list-section, .mag-section.list-top { margin-top: 56px; padding-top: 64px; }
  .list-divider { width: auto; margin: 40px 0 0; }
  .filters { flex-wrap: wrap; height: auto; margin: 32px 0 0; gap: 12px; }
  .filters .field { flex: 1 1 100% !important; width: auto !important; }
  .results { margin: 32px 0 0; font-size: 26px; }
  .news-list, .yacht-list { height: auto; display: grid; gap: 32px; margin-top: 24px; }
  .news-list .news-item, .yacht-list .yacht-card { position: static; width: auto; }
  .news-list .news-item img { width: 100%; height: auto; }
  .yacht-list .yacht-card { height: auto; padding: 18px; }
  .yacht-list .yacht-card img, .yacht-list .price-tag { width: 100%; }
  .yacht-list .yacht-card img { height: auto; aspect-ratio: 346 / 230; }
  .list-pagination { display: flex; justify-content: center; gap: 24px; font-size: 22px; margin-top: 40px !important; }
  .list-pagination a, .list-pagination span { position: static; }
  .news-section-list, .yacht-section-list { padding-bottom: 56px; }
  .ad-list, .ad-list-y, .ad-news { margin-top: 48px; }
  .site-footer.tight, .site-footer.tight-news { margin-top: 56px; }
  .contact-section { margin-top: 48px; padding: 48px 0; }
  .contact-section h1, .contact-section h2 { font-size: 44px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .contact-info-grid .label, .enquiry label { font-size: 22px; }
  .contact-info-grid .value { font-size: 22px; word-break: break-all; }
  .enquiry { grid-template-columns: 1fr; row-gap: 24px; }
}
.enquiry .send-inline { position: absolute; right: 18px; bottom: 18px; background: var(--navy); color: #fff; padding: 0 28px; }
.enquiry .send-inline:hover { background: #fff; color: var(--navy); }
@media (max-width: 1023px) { .mag-divider { width: auto; margin-left: 0; } }

/* ---------- Yacht cards link to their pages ---------- */
.yacht-card { position: relative; }
.yacht-card .card-link { position: absolute; inset: 0; z-index: 1; }
.yacht-card .price-tag { position: relative; z-index: 2; }
.yacht-card:hover h3 { text-decoration: underline; }
.yacht-list .empty-note { position: absolute; left: 0; top: 0; font-family: var(--body); font-size: 20px; color: #424242; }

/* ---------- Yacht detail page ---------- */
.yd { padding-top: 30px; }
.yd-crumbs { font-family: var(--sans); font-size: 16px; display: flex; gap: 10px; color: #8a8a8a; }
.yd-crumbs a { color: var(--navy); text-decoration: none; }
.yd-crumbs a:hover { text-decoration: underline; }
.yd-crumbs span { color: #b5b5b5; }
.yd-crumbs span[aria-current] { color: #8a8a8a; }
.yd-hero { margin-top: 24px; height: 509px; border-radius: 6px; overflow: hidden; background: var(--navy); }
.yd-hero img { width: 100%; height: 100%; object-fit: cover; }
.yd-cols { display: grid; grid-template-columns: 824px 376px; justify-content: space-between; align-items: start; margin-top: 50px; }
.yd-brand { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.yd-title { font-family: var(--serif); font-weight: 700; font-size: 60px; line-height: 1.05; margin-top: 10px; }
.yd-price { font-family: var(--sans); font-weight: 600; font-size: 22px; color: var(--gold); margin-top: 12px; }
.yd-specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; margin-top: 32px; border-top: 1px solid #e5e5e5; }
.yd-spec { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid #e5e5e5; }
.yd-spec span { font-family: var(--sans); font-weight: 300; font-size: 16px; color: #7a7a7a; }
.yd-spec strong { font-family: var(--sans); font-weight: 500; font-size: 18px; color: var(--navy); text-align: right; }
.yd-h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: normal; margin-top: 48px; }
.yd-text { font-family: var(--body); font-weight: 300; font-size: 19px; line-height: 1.9; color: #2b2b2b; margin-top: 14px; max-width: 72ch; }
.yd-shot { margin: 16px 0 0; }
.yd-shot + .yd-shot { margin-top: 28px; }
.yd-shot img { width: 100%; height: auto; border-radius: 6px; }
.yd-shot figcaption { font-family: var(--body); font-weight: 300; font-size: 15px; color: #7a7a7a; margin-top: 8px; }
.yd-side { position: sticky; top: 124px; }
.yd-card { background: var(--paper); border: 1px solid #e5e5e5; border-radius: 6px; padding: 32px 30px 30px; }
.yd-card h2 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.15; }
.yd-card p { font-family: var(--body); font-weight: 300; font-size: 18px; line-height: 1.7; color: #2b2b2b; margin-top: 12px; }
.yd-btn { display: block; margin-top: 26px; background: var(--navy); color: #fff; text-align: center; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 17px; padding: 16px; border-radius: 4px; border: 1px solid var(--navy); transition: background-color .2s, color .2s; }
.yd-btn:hover { background: #fff; color: var(--navy); }
.yd-back { display: inline-block; margin-top: 22px; font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--navy); text-decoration: none; }
.yd-back:hover { text-decoration: underline; }
@media (max-width: 1023px) {
  .yd-hero { height: auto; aspect-ratio: 1253 / 509; }
  .yd-cols { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .yd-title { font-size: 42px; }
  .yd-specs { grid-template-columns: 1fr; }
  .yd-side { position: static; }
}
.list-pagination a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.yacht-list .yacht-card[hidden] { display: none; }
.filters select { font-size: 20px; padding-left: 16px; padding-right: 34px; }
.filters .field.select::after { right: 14px; }
.yd-page { background: var(--white); padding-bottom: 110px; }

/* ---------- Sticky navbar ---------- */
.site-header { position: sticky; top: -35px; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; top: 35px; height: 89px;
  left: calc(50% - 629px); right: calc(50% - 624px);
  background: var(--paper); border: 1px solid var(--navy); box-sizing: border-box;
  transition: left .45s ease, right .45s ease, background-color .45s ease, box-shadow .45s ease;
  pointer-events: none;
}
.site-header.scrolled::before { left: 0; right: 0; background: var(--navy); box-shadow: 0 6px 18px rgba(0, 20, 50, 0.18); }
.navbar { position: relative; z-index: 1; background: transparent; border-color: transparent; }
.navbar .brand img, .navbar .nav-links a, .navbar .btn-pill, .navbar .nav-toggle span {
  transition: color .45s ease, background-color .45s ease, border-color .45s ease, filter .45s ease;
}
.site-header.scrolled .brand img { filter: brightness(0) invert(1); }
.site-header.scrolled .nav-links a { color: #fff; }
.site-header.scrolled .btn-pill { color: #fff; border-color: #fff; }
.site-header.scrolled .btn-pill:hover { background: #fff; color: var(--navy); }
.site-header.scrolled .nav-toggle span { background: #fff; }
@media (max-width: 1023px) {
  .site-header::before { height: 72px; left: 20px; right: 20px; }
  .site-header.scrolled::before { left: 0; right: 0; }
  .site-header.scrolled .nav-menu { background: var(--navy); border-color: var(--navy); }
}

/* ---------- Yacht card names always stay on one line ---------- */
.yacht-card h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Magazine links and online reader ---------- */
.issue-link { color: inherit; text-decoration: none; }
a.issue-link:hover { text-decoration: underline; }
.issue a.issue-link { display: block; }
.issue a.issue-link img { transition: transform .3s ease; }
.issue a.issue-link:hover img { transform: translateX(-34.5px) translateY(-6px); }
a.mag-cover { display: block; transition: opacity .2s; }
a.mag-cover:hover { opacity: .85; }
.mag-item .mag-read { position: absolute; left: 442px; top: 300px; }
.flipbook { margin-top: 32px; height: min(78vh, 820px); min-height: 460px; border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; background: var(--paper); }
.flipbook iframe { display: block; width: 100%; height: 100%; border: 0; }
.flipbook-note { font-family: var(--body); font-weight: 300; font-size: 16px; color: #7a7a7a; margin-top: 12px; }
@media (max-width: 1023px) {
  .issue a.issue-link:hover img { transform: none; }
  .mag-item .mag-read { position: static; justify-self: start; }
  .flipbook { height: 70vh; min-height: 380px; }
}

/* ---------- Homepage: latest issues in two columns ---------- */
.issues-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; align-items: start; }
.issues-cols .issue + .issue { margin-top: 0; }
.issues-cols .issue-cover { transform: none; }
.issues-cols .issue a.issue-link:hover img, .issues-cols a.issue-link:hover .issue-cover { transform: translateY(-6px); }
@media (max-width: 1023px) {
  .issues-cols { grid-template-columns: 1fr; row-gap: 72px; }
}
