/* Swyn Yachts – "Featured yachts" block on the home page. The sy-* classes come from the Elementor kit;
   the swyn-feat-* rules below are the fallback and the card styling. */

.swyn-feat-section {
  margin: 0 12px 12px;
  padding: 112px 24px;
  border-radius: 24px;
  background: #f4f2ed;
  color: #071a26;
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}
.swyn-feat-section .swyn-feat-wrap { max-width: 1320px; margin: 0 auto; }
.swyn-feat-section .swyn-feat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.swyn-feat-section .swyn-feat-head__text { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.swyn-feat-section .swyn-feat-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; text-align: right; max-width: 420px; }
.swyn-feat-section .swyn-feat-eyebrow { margin: 0; font-family: "Instrument Sans", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #5e7480; }
.swyn-feat-section .swyn-feat-title { margin: 0; font-family: "Instrument Sans", sans-serif; font-size: 48px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: #071a26; }
.swyn-feat-section .swyn-feat-sub { margin: 0; font-size: 16px; line-height: 1.6; color: #5e7480; }
.swyn-feat-section .swyn-feat-btn:hover { color: #f4f2ed; background-color: #071a26; }
.swyn-feat-section .swyn-feat-btn { display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 14px; background: #123240; color: #f4f2ed; font-family: "Instrument Sans", sans-serif; font-weight: 600; font-size: 15px; text-decoration: none; }

.swyn-feat-section .swyn-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.swyn-feat-section .swyn-feat-card, .swyn-feat-section .swyn-feat-card * { text-decoration: none; }
.swyn-feat-section .swyn-feat-card { display: flex; flex-direction: column; gap: 6px; color: #071a26; text-decoration: none; }
.swyn-feat-section .swyn-feat-card:hover, .swyn-feat-section .swyn-feat-card:focus { color: #071a26; }
.swyn-feat-section .swyn-feat-card__img { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #0b2530; margin-bottom: 14px; }
.swyn-feat-section .swyn-feat-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1); }
.swyn-feat-section .swyn-feat-card:hover .swyn-feat-card__img img { transform: scale(1.05); }
.swyn-feat-section .swyn-feat-card__placeholder { display: flex; height: 100%; align-items: center; justify-content: center; color: #c9d2d2; font-size: 14px; }
.swyn-feat-section .swyn-feat-card__arrow {
  position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; background-color: #071a26;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f2ed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f2ed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px 18px; background-position: center, -30px center;
  transition: background-position 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.swyn-feat-section .swyn-feat-card:hover .swyn-feat-card__arrow { background-position: 78px center, center; transform: scale(1.06); }
.swyn-feat-section .swyn-feat-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 6px; }
.swyn-feat-section .swyn-feat-card__title { font-family: "Instrument Sans", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.3; }
.swyn-feat-section .swyn-feat-card__price { font-family: "Instrument Sans", sans-serif; font-size: 20px; font-weight: 600; white-space: nowrap; }
.swyn-feat-section .swyn-feat-card__meta { font-size: 15px; color: #5e7480; }
/* Tile in the empty place when fewer than three yachts are featured */
.swyn-feat-section .swyn-feat-tile__box {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 28px 88px 28px 28px;
  background-color: #071a26; background-size: cover; background-position: center; color: #f4f2ed;
}
.swyn-feat-section .swyn-feat-tile__title { font-family: "Instrument Sans", sans-serif; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.swyn-feat-section .swyn-feat-tile__text { font-size: 15px; line-height: 1.55; color: rgba(244, 242, 237, 0.82); }
.swyn-feat-section .swyn-feat-tile__arrow {
  background-color: #f4f2ed;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.swyn-feat-section .swyn-feat-empty { margin: 0; padding: 32px; border-radius: 18px; background: #ffffff; color: #5e7480; max-width: 640px; }
.swyn-feat-section .swyn-feat-empty a { color: #071a26; font-weight: 600; text-decoration: underline; }

@media (max-width: 1024px) {
  .swyn-feat-section .swyn-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swyn-feat-section .swyn-feat-grid--n2 .swyn-feat-tile { display: none; } /* two yachts already fill the row */
}
@media (max-width: 767px) {
  .swyn-feat-section { margin: 0 8px 8px; padding: 72px 16px; border-radius: 18px; }
  .swyn-feat-section .swyn-feat-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .swyn-feat-section .swyn-feat-head__side { align-items: flex-start; text-align: left; }
  .swyn-feat-section .swyn-feat-title { font-size: 34px; }
  .swyn-feat-section .swyn-feat-grid { grid-template-columns: 1fr; gap: 28px; }
  .swyn-feat-section .swyn-feat-grid--n2 .swyn-feat-tile { display: flex; }
  .swyn-feat-section .swyn-feat-tile__box { padding: 24px 80px 24px 24px; }
  .swyn-feat-section .swyn-feat-tile__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .swyn-feat-section .swyn-feat-card__img img, .swyn-feat-section .swyn-feat-card__arrow { transition: none; }
}

/* ---------- Home header: on the hero photo, solid bar slides in on scroll (see home.js) ---------- */
.elementor .swyn-sticky-header.is-visible,
.elementor .swyn-sticky-header:focus-within { transform: none; }
.admin-bar .elementor .swyn-sticky-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor .swyn-sticky-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .elementor .swyn-sticky-header { top: 0; } }
.elementor .swyn-hero-header .sy-nav-link { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (prefers-reduced-motion: reduce) { .elementor .swyn-sticky-header { transition: none; } }
