/* Aino Yachts — design prototype, Variant A "Editorial"
   Colours and fonts come only from brand.css (brand-book palette,
   light + dark theme). Display: Cormorant Garamond (var(--serif)), text: Jost (var(--sans)).
   Layout tokens only below. */

:root {
  --gutter: clamp(20px, 5vw, 96px);
  --section: clamp(88px, 12vw, 176px);
  --max: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { text-wrap: pretty; }
/* keyboard focus: hairline in the current text colour (works on photos and in both themes) */
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.btn:focus-visible { outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.h1 { font-size: clamp(47px, 7.17vw, 108px); line-height: 1.06; }
.h2 { font-size: clamp(38px, 4.48vw, 65px); }
.h3 { font-size: clamp(29px, 2.58vw, 38px); }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 620px; }
.caps {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--bg-alt); }   /* UX Builder: Section bg = Light Grey / Aino Black in dark */
.section--deep { background: var(--bg-deep); }   /* the one accent section (Plan your charter) */
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 48px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .lead { margin: 0; }
.section-head .link { flex: none; white-space: nowrap; }
/* two plain (white) sections in a row: don't double the gap */
.section:not(.section--paper):not(.section--deep) + .section:not(.section--paper):not(.section--deep) { padding-top: 0; }

/* ---------- Buttons (square, hairline, no shadow) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 30px; border-radius: 0;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--ghost { color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* over photos / video only */
.btn--light { color: var(--on-photo); border-color: rgba(255, 255, 255, .7); }
.btn--light:hover { background: var(--on-photo); color: var(--aino-black); border-color: var(--on-photo); }
.link {
  display: inline-flex; gap: 12px; align-items: center;
  font-size: 11.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.link span { transition: transform .4s var(--ease); }
.link:hover span { transform: translateX(6px); }

/* ---------- Header ---------- */
/* Transparent over the hero (white logo), solid on scroll (grey logo on var(--bg-glass)). */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--on-photo);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  height: 92px;
}
.header__logo { width: 92px; height: auto; }
.header__logo img { width: 100%; }
.header__logo .logo-dark { display: none; }
.nav { display: flex; gap: 36px; }
.nav a { font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; opacity: .9; }
.nav a:hover { opacity: 1; }
.header__right { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: .18em; }
.lang a { opacity: .55; }
.lang a.is-active { opacity: 1; }
.header .btn { height: 44px; padding: 0 22px; font-size: 11px; }
.header.is-solid {
  background: var(--bg-glass);
  color: var(--ink);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header.is-solid .logo-light { display: none; }
.header.is-solid .logo-dark { display: block; }
.header.is-solid .btn--light { color: var(--ink); border-color: var(--line-strong); }
.header.is-solid .btn--light:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .3s; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Mobile menu (≤1100px) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 120px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
html.menu-open { overflow: hidden; }
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a {
  font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.2;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mobile-menu__lang { display: flex; gap: 14px; font-size: 11px; font-weight: 500; letter-spacing: .18em; }
.mobile-menu__lang a { opacity: .55; }
.mobile-menu__lang a.is-active { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  color: var(--on-photo); overflow: hidden; background: var(--aino-black);
  display: flex; align-items: flex-end;
}
.hero__media, .hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--shade), .7) 0%, rgba(var(--shade), .16) 46%, rgba(var(--shade), .3) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 9vh, 120px); }
.hero .display { color: var(--on-photo); }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero__title { max-width: 1000px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.play-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor;
  display: inline-grid; place-items: center;
}
.play-dot::after {
  content: ""; border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-left: 2px;
}
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 120px); z-index: 2;
  writing-mode: vertical-rl; font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; opacity: .75;
}

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.intro p { margin: 0 0 24px; color: var(--text); }
.intro .eyebrow { color: var(--muted); }
.intro__stats { display: flex; gap: 56px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 52px; font-weight: 400; line-height: 1.05; color: var(--ink); }
.stat span { font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

/* ---------- Fleet ---------- */
.fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.yacht-card { display: block; }
.yacht-card__img { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-deep); }
.yacht-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.yacht-card:hover .yacht-card__img img { transform: scale(1.05); }
.yacht-card__tag {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  background: var(--bg); color: var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding: 8px 12px;
}
.yacht-card__body { padding-top: 24px; }
.yacht-card__name { font-family: var(--serif); font-size: 29px; line-height: 1.15; margin: 0 0 8px; font-weight: 400; color: var(--ink); text-wrap: balance; }
.yacht-card__meta { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.yacht-card__price { margin-top: 14px; font-size: 15px; color: var(--text); }

/* ---------- Bases ---------- */
/* Destinations: editorial rows, image bleeding to the screen edge, sides alternate */
.dest-head { text-align: center; margin-bottom: clamp(56px, 8vw, 120px); }
.dest-head .display em, .base h3 em { font-style: italic; }
.base {
  display: grid; grid-template-columns: 7fr 5fr; align-items: center;
  gap: clamp(40px, 7vw, 128px); margin-bottom: clamp(72px, 10vw, 160px);
}
.base:last-child { margin-bottom: 0; }
.base--reverse { grid-template-columns: 5fr 7fr; }
.base--reverse .base__img { order: 2; }
.base__img { position: relative; overflow: hidden; height: min(82vh, 820px); background: var(--bg-deep); }
.base__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.base:hover .base__img img { transform: scale(1.04); }
.base__content { max-width: 480px; padding-right: var(--gutter); }
.base--reverse .base__content { padding-right: 0; padding-left: var(--gutter); justify-self: end; }
.base__coords { font-size: 11px; font-weight: 500; letter-spacing: .26em; color: var(--muted); margin: 0 0 28px; }
.base h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(43px, 4.7vw, 74px); line-height: 1.08; margin: 0 0 28px; color: var(--ink); text-wrap: balance; }
.base__lead { color: var(--text); margin: 0 0 28px; }
.base__places {
  margin: 0 0 36px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); line-height: 2;
}

/* ---------- Experiences ---------- */
.experiences { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.experiences__img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-deep); }
.experiences__img img { width: 100%; height: 100%; object-fit: cover; }
.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.exp-list li:last-child a { border-bottom: 1px solid var(--line); }
.exp-list h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 2.18vw, 34px); line-height: 1.15; margin: 0; color: var(--ink); }
.exp-list p { grid-column: 1; margin: 0; color: var(--muted); font-size: 15px; }
.exp-list span { grid-row: 1 / span 2; grid-column: 2; font-size: 20px; color: var(--ink); transition: transform .4s var(--ease); }
.exp-list a:hover span { transform: translateX(6px); }

/* ---------- Film band ---------- */
.film-band { position: relative; height: 80vh; min-height: 520px; overflow: hidden; color: var(--on-photo); background: var(--aino-black); display: grid; place-items: center; text-align: center; }
.film-band video, .film-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-band::after { content: ""; position: absolute; inset: 0; background: rgba(var(--shade), .42); }
.film-band__content { position: relative; z-index: 2; padding: 0 var(--gutter); }
.film-band .display { color: var(--on-photo); }
.film-band .eyebrow { color: rgba(255, 255, 255, .85); }
.film-band .btn { margin-top: 40px; }

/* ---------- Partners ---------- */
.partners-wrap { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.partners {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.partners figure {
  margin: 0; aspect-ratio: 3 / 2; display: grid; place-items: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg); transition: background .4s var(--ease);
}
.partners img {
  width: 58%; height: 38%; object-fit: contain;
  filter: grayscale(1) brightness(.4); opacity: .8; transition: opacity .4s var(--ease);
}
.partners figure:hover img { opacity: 1; }
.partners .is-solid-logo img { width: 46%; height: 30%; }
/* grey PNG logos read white on the dark theme */
html[data-theme="dark"] .partners img { filter: brightness(0) invert(1); opacity: .6; }
html[data-theme="dark"] .partners figure:hover img { opacity: .9; }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.cta__steps { list-style: none; margin: 0; padding: 0; }
.cta__steps li {
  display: flex; gap: 24px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line-strong); color: var(--text);
}
.cta__steps li:last-child { border-bottom: 1px solid var(--line-strong); }
.cta__steps svg {
  flex: none; width: 28px; height: 28px; color: var(--ink);
  fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.cta__steps li { align-items: flex-start; }
.cta__steps li svg { margin-top: 2px; }
.cta__steps strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.2; color: var(--ink); }
.cta__steps li div span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--muted); padding: 96px 0 40px; font-size: 15px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer__logo { width: 96px; margin-bottom: 28px; }
.footer h4 { color: var(--ink); font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin: 0 0 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--ink); }
.footer__legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; }
.footer__legal a { color: var(--muted); }

/* ---------- Sticky contact ---------- */
.contact-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.contact-fab.is-hidden { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.contact-fab__toggle {
  height: 48px; padding: 0 24px; border-radius: 0;
  background: var(--bg-glass); color: var(--ink); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  transition: border-color .4s var(--ease);
}
.contact-fab__toggle:hover { border-color: var(--ink); }
.contact-fab__icon { width: 18px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1; overflow: visible; }
.contact-fab__menu {
  display: grid; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.contact-fab.is-open .contact-fab__menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.menu-open .contact-fab { opacity: 0; pointer-events: none; }
.contact-fab__menu a {
  background: var(--bg-glass); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 0;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 16px 24px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; text-align: right;
}
.contact-fab__menu a:hover { background: var(--bg-alt); }

/* ---------- Film modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(var(--shade), .94); display: none; place-items: center; padding: 4vw; }
.modal.is-open { display: grid; }
.modal video { width: min(1400px, 100%); max-height: 86vh; background: #000; }
.modal__close { position: absolute; top: 24px; right: 28px; color: var(--on-photo); font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .fleet { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section-head > div { flex: 1 1 55%; }
  .section-head .lead { flex: 0 1 40%; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header__bar { height: 72px; }
  .header__logo { width: 76px; }
  .header .btn, .lang { display: none; }
  .section-head { flex-direction: column; align-items: start; gap: 20px; }
  .section-head > div, .section-head .lead { flex: none; }
  .mobile-menu { padding-top: 100px; }
  .intro, .cta, .bases { grid-template-columns: 1fr; }
  .base, .base--reverse { grid-template-columns: 1fr; gap: 32px; }
  .base--reverse .base__img { order: 0; }
  .base__img { height: 64vh; }
  .base__content, .base--reverse .base__content { padding: 0 var(--gutter); justify-self: start; }
  .intro__stats { gap: 32px; }
  .stat b { font-size: 40px; }
  .fleet { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .yacht-card__name { font-size: 22px; }
  .yacht-card__meta { font-size: 10.5px; letter-spacing: .14em; }
  .yacht-card__price { font-size: 14px; }
  .experiences { grid-template-columns: 1fr; gap: 40px; }
  .experiences__img { aspect-ratio: 4 / 3; }
  .scroll-cue { display: none; }
  .hero__title { font-size: min(47px, 11.6vw); }   /* keeps "Mediterranean seas" on one line, no orphan */
  .partners-wrap { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-fab { right: 16px; bottom: 16px; }
}
