/* ============================================================
   Component styles: header, footer, cards, slots, sections
   ============================================================ */

/* ---------- image slot wrapper ---------- */
.slot-wrap { position: relative; overflow: hidden; }
.slot-wrap image-slot::part(placeholder) { font-family: var(--font-body); }
.slot-tag {
  position: absolute; left: 12px; bottom: 11px;
  color: oklch(0.92 0.01 240 / 0.85);
  background: oklch(0.2 0.03 250 / 0.42);
  backdrop-filter: blur(3px);
  padding: 4px 9px; border-radius: 6px;
  pointer-events: none; z-index: 2;
  max-width: calc(100% - 24px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px;
}
/* subtle wave motif inside empty slots */
image-slot:not([data-filled])::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(120% 80% at 80% -10%, oklch(0.45 0.06 235 / 0.5), transparent 60%),
    repeating-linear-gradient(135deg, oklch(1 0 0 / 0.03) 0 2px, transparent 2px 10px);
  pointer-events: none;
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.14em; }
.logo-sub { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.site-header.is-scrolled .header-inner { height: 66px; }
.site-header.is-transparent { background: transparent; }
.site-header.is-solid {
  background: oklch(0.985 0.004 230 / 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.site-header.is-scrolled.is-solid { box-shadow: var(--shadow-sm); }
.logo-btn { background: none; border: none; padding: 0; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.nav-link {
  background: none; border: none; padding: 9px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: inherit; opacity: 0.82;
  transition: opacity .2s, background .2s, color .2s;
}
.is-solid .nav-link { color: var(--navy-700); }
.is-transparent .nav-link { color: var(--white); }
.nav-link:hover { opacity: 1; background: oklch(0.5 0.02 250 / 0.08); }
.is-transparent .nav-link:hover { background: oklch(1 0 0 / 0.12); }
.nav-link.active { opacity: 1; }
.nav-link.active::after {
  content: ""; display: block; height: 2px; width: 18px; margin: 3px auto -2px;
  background: var(--brass); border-radius: 2px;
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang-toggle { display: inline-flex; border-radius: 999px; padding: 3px; gap: 2px; }
.is-solid .lang-toggle { background: oklch(0.5 0.02 250 / 0.08); }
.is-transparent .lang-toggle { background: oklch(1 0 0 / 0.14); }
.lang-opt {
  border: none; background: none; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: inherit; opacity: 0.7;
  transition: all .2s;
}
.is-transparent .lang-opt { color: var(--white); }
.is-solid .lang-opt { color: var(--navy-700); }
.lang-opt.on { opacity: 1; background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.is-transparent .lang-opt.on { background: var(--white); color: var(--navy-900); }
.header-cta { padding: 11px 20px; font-size: 14px; }
.is-transparent .header-cta { background: var(--white); color: var(--navy-900); }
.is-transparent .header-cta:hover { background: var(--brass); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.burger span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; display: block; }
.is-transparent .burger { color: var(--white); }
.is-solid .burger { color: var(--navy-800); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 66px 0 auto 0; z-index: 99;
  background: var(--white); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; padding: 18px var(--gutter) 26px;
  transform: translateY(-130%); transition: transform .4s cubic-bezier(.2,.7,.3,1);
  border-bottom: 1px solid var(--line);
}
.mobile-drawer.open { transform: translateY(0); }
.drawer-link {
  background: none; border: none; text-align: left; padding: 14px 4px; font-size: 18px;
  font-weight: 500; color: var(--navy-800); border-bottom: 1px solid var(--line-soft);
}
.drawer-link.active { color: var(--brass); }

/* ---------- section heading ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-title { font-size: clamp(30px, 4.4vw, 52px); margin-top: 18px; }
.section-sub { margin-top: 18px; font-size: clamp(16px, 1.5vw, 19px); color: var(--slate-500); max-width: 56ch; }
.section-sub.center { margin-inline: auto; }

/* ---------- boat card ---------- */
.boats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 32px); }
.boat-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s, border-color .3s;
  display: flex; flex-direction: column;
}
.boat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.boat-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.boat-card-media .slot-wrap { width: 100%; height: 100%; }
.boat-card-media image-slot { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.boat-card:hover .boat-card-media image-slot { transform: scale(1.04); }
.sale-badge {
  position: absolute; top: 13px; left: 13px; z-index: 3;
  background: var(--brass); color: var(--navy-900);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card-loc {
  position: absolute; top: 13px; right: 13px; z-index: 3;
  color: var(--white); background: oklch(0.2 0.03 250 / 0.42); backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: 999px; font-size: 10px;
}
.boat-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.boat-name { font-size: 21px; letter-spacing: -0.01em; }
.boat-name span { color: var(--slate-500); font-weight: 500; }
.spec-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-mini span {
  font-size: 12px; color: var(--navy-700); background: var(--paper-2);
  padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line-soft); font-weight: 500;
  white-space: nowrap;
}
.boat-blurb { font-size: 14.5px; color: var(--slate-500); flex: 1; }
.boat-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.price-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.price-old { font-size: 13px; color: var(--slate-400); text-decoration: line-through; }
.price { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--navy-900); }
.card-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--navy-800); white-space: nowrap; }
.card-cta .arrow { transition: transform .25s; }
.boat-card:hover .card-cta .arrow { transform: translateX(4px); }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 90;
  display: inline-flex; align-items: center; gap: 0; overflow: hidden;
  background: oklch(0.62 0.16 150); color: #fff; border: none;
  height: 56px; border-radius: 999px; padding: 0 17px;
  box-shadow: var(--shadow-lg); transition: padding .3s, transform .3s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { flex: none; }
.wa-float .wa-label { max-width: 0; opacity: 0; white-space: nowrap; transition: max-width .4s ease, opacity .3s, margin .3s; font-weight: 600; font-size: 14px; }
.wa-float:hover .wa-label { max-width: 220px; opacity: 1; margin-left: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: oklch(0.82 0.02 240); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 52px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; max-width: 340px; }
.footer-tag { font-size: 14.5px; color: oklch(0.74 0.02 240); line-height: 1.6; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--brass-soft); padding: 7px 16px; border: 1px solid oklch(1 0 0 / 0.16); border-radius: 999px; transition: all .2s; }
.footer-social a:hover { border-color: var(--brass); background: oklch(1 0 0 / 0.05); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.footer-link { background: none; border: none; padding: 0; text-align: left; color: oklch(0.78 0.02 240); font-size: 15px; font-family: var(--font-body); transition: color .2s; }
.footer-link:hover { color: var(--white); }
.footer-addr { font-style: normal; font-size: 15px; line-height: 1.7; color: oklch(0.78 0.02 240); }
.footer-addr a { transition: color .2s; }
.footer-addr a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid oklch(1 0 0 / 0.1); font-size: 13px; color: oklch(0.62 0.02 240); flex-wrap: wrap; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* responsive */
@media (max-width: 1080px) {
  .boats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
}
@media (max-width: 620px) {
  .boats-grid { grid-template-columns: 1fr; }
}
