/* ===============================================================
   MarineLife premium enhancements — counter, header, BTT, scrollbar,
   selection, card hover refinements, sticky CTA mobile
   =============================================================== */

/* ---------- Unified header across ALL pages (overrides main.min.css differences) ---------- */

/* Base: identical on every page */
.home .site-header,
.site-header,
body:not(.home) .site-header {
  background: #fff;
  border-bottom: 1px solid rgba(11, 45, 70, 0.06);
  box-shadow: 0 1px 3px rgba(11, 45, 70, 0.04);
  backdrop-filter: blur(0.9rem);
  -webkit-backdrop-filter: blur(0.9rem);
}

/* Logo: same size everywhere — override .home fixed 2.5rem */
.home .site-brand__image,
.site-brand__image {
  height: clamp(2.5rem, 4vw, 3.25rem);
}

/* Scroll state — identical shadow, slightly stronger border */
.site-header.is-scrolled {
  background: #fff;
  border-bottom: 1px solid rgba(11, 45, 70, 0.08);
  box-shadow: 0 1px 3px rgba(11, 45, 70, 0.04);
  backdrop-filter: blur(0.9rem);
  -webkit-backdrop-filter: blur(0.9rem);
}

/* ---------- Back-to-top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(11, 45, 70, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(15, 55, 90, 0.95);
}

/* ---------- Counter animated ---------- */
[data-counter] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(207, 160, 102, 0.25);
  color: var(--color-text, #102434);
}

/* ---------- Custom scrollbar ---------- */
@media (pointer: fine) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold, #cfa066) transparent;
  }

  ::-webkit-scrollbar {
    width: 6px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background: var(--color-gold, #cfa066);
    border-radius: 3px;
  }
}

/* ===============================================================
   Card micro-interactions — unified for ALL card types site-wide
   =============================================================== */

/* --- Shared image zoom on hover --- */
.ml-boat-card:hover .ml-boat-image img,
.motoare-tip-card:hover .motoare-tip-card__image img,
.motoare-brand-card:hover .motoare-brand-card__image,
.echipamente-card:hover .echipamente-card__image img,
.ml-offer-card:hover .ml-offer-card__media img,
.post-card:hover .post-card__thumb img,
.ml-about-definition-card:hover .ml-about-definition-card__media img,
.categories__card:hover .categories__img img,
.de-ce-noi__card:hover .de-ce-noi__media img {
  transform: scale(1.04);
}

/* --- Shared image transition base --- */
.ml-boat-image img,
.motoare-tip-card__image img,
.motoare-brand-card__image,
.echipamente-card__image img,
.ml-offer-card__media img,
.post-card__thumb img,
.ml-about-definition-card__media img,
.categories__img img,
.de-ce-noi__media img {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Shared card lift on hover --- */
.ml-boat-card:hover,
.motoare-tip-card:hover,
.echipamente-card:hover,
.ml-offer-card:hover,
.post-card:hover,
.ml-about-definition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.ml-boat-card,
.motoare-tip-card,
.echipamente-card,
.ml-offer-card,
.post-card,
.ml-about-definition-card {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- CTA arrow animation (shared pattern) --- */
.categories__cta::after,
.post-card__link span[aria-hidden],
.echipamente-card__cta span[aria-hidden] {
  display: inline-block;
  transition: transform 0.25s ease;
}

.categories__card:hover .categories__cta::after,
.post-card:hover .post-card__link span[aria-hidden],
.echipamente-card:hover .echipamente-card__cta span[aria-hidden] {
  transform: translateX(4px);
}

/* --- Brand cards — overlay lift (motoare brand cards) --- */
.motoare-brand-card:hover .motoare-brand-card__overlay {
  transform: translateY(0);
}

.motoare-brand-card .motoare-brand-card__overlay {
  transition: transform 0.35s ease;
}

/* --- Offer card badge glow --- */
.ml-offer-card:hover .ml-offer-card__badge {
  box-shadow: 0 0 0 4px rgba(207, 160, 102, 0.15);
}

.ml-offer-card__badge {
  transition: box-shadow 0.3s ease;
}

/* --- Disable hover animations on touch devices --- */
@media (hover: none) and (pointer: coarse) {
  .ml-boat-card:hover,
  .motoare-tip-card:hover,
  .echipamente-card:hover,
  .ml-offer-card:hover,
  .post-card:hover,
  .ml-about-definition-card:hover {
    transform: none;
    box-shadow: none;
  }

  .ml-boat-card:hover .ml-boat-image img,
  .motoare-tip-card:hover .motoare-tip-card__image img,
  .motoare-brand-card:hover .motoare-brand-card__image,
  .echipamente-card:hover .echipamente-card__image img,
  .ml-offer-card:hover .ml-offer-card__media img,
  .post-card:hover .post-card__thumb img,
  .ml-about-definition-card:hover .ml-about-definition-card__media img,
  .categories__card:hover .categories__img img,
  .de-ce-noi__card:hover .de-ce-noi__media img {
    transform: none;
  }
}

/* ---------- Sticky CTA mobile ---------- */
@media (max-width: 767px) {
  .sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(11, 45, 70, 0.08);
    padding: 0.625rem 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .sticky-cta-mobile.is-visible {
    transform: translateY(0);
  }
}

/* ===============================================================
   Brand hero layout variants (P1.6)
   =============================================================== */

/* Variant 1 (default): full-video, left-aligned content — Beneteau, Selva */

/* Variant 2: centered layout (Raymarine) — darker overlay, centered text */
.brand-hero--centered .brand-hero__overlay {
  background: linear-gradient(180deg, rgba(8, 26, 41, 0.82) 0%, rgba(10, 38, 58, 0.7) 100%);
}

.brand-hero--centered .brand-hero__content {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}

.brand-hero--centered .brand-hero__brand {
  font-size: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.brand-hero--centered .brand-hero__tagline {
  text-align: center;
}

.brand-hero--centered .brand-hero__actions {
  justify-content: center;
}

/* Variant 3: compact layout (Zipwake) — spec-heavy, tighter */
.brand-hero--compact .brand-hero__overlay {
  background: rgba(11, 45, 70, 0.78);
}

.brand-hero--compact .brand-hero__brand {
  display: inline-block;
  background: var(--color-gold, #cfa066);
  color: var(--color-primary, #0b2d46);
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.brand-hero--compact .brand-hero__desc {
  max-width: 36ch;
  font-size: 0.95rem;
}

/* ---------- Footer contact icons ---------- */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.footer-contact-list li::before {
  content: '';
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2em;
  background: var(--color-gold, #cfa066);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  opacity: 0.8;
}

.footer-contact-list li:nth-child(1)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.footer-contact-list li:nth-child(2)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.footer-contact-list li:nth-child(3)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.footer-contact-list li:nth-child(4)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ===============================================================
   PREMIUM CONTACT PAGE — MarineLife (form + cards + buttons)
   =============================================================== */

/* ---------- Contact info cards — premium redesign ---------- */

/* Remove container card background — let info cards float independently */
.ml-contact-layout__details {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Individual card: gold left accent, soft lift on hover */
.ml-contact-info-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11, 45, 70, 0.07);
  border-left: 3px solid var(--color-gold, #cfa066);
  border-radius: 1rem;
  padding: clamp(1.4rem, 2.5vw, 1.8rem);
  box-shadow:
    0 1px 2px rgba(11, 45, 70, 0.03),
    0 4px 12px rgba(11, 45, 70, 0.05);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.ml-contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(11, 45, 70, 0.04),
    0 8px 24px rgba(11, 45, 70, 0.09);
  border-color: rgba(207, 160, 102, 0.35);
}

/* Card heading: gold-accented, uppercase, tracked */
.ml-contact-info-card h3 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-body, 'Sora', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold, #cfa066);
}

/* Card value: clean, strong, readable */
.ml-contact-info-card p {
  margin: 0;
  font-family: var(--font-body, 'Sora', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text, #102434);
}

.ml-contact-info-card a {
  color: var(--color-text, #102434);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ml-contact-info-card a:hover {
  color: var(--color-primary, #0b2d46);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Button row spacing (after contact cards AND in hero) ---------- */
/* Both button-row instances need breathing room */
.ml-contact-layout__details > .button-row,
.ml-contact-info-grid + .button-row {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Form card refinement --- */
.ml-form-card {
  background: #fff;
  border: 1px solid rgba(11, 45, 70, 0.06);
  border-radius: 1.25rem;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  box-shadow:
    0 1px 2px rgba(11, 45, 70, 0.04),
    0 8px 24px rgba(11, 45, 70, 0.07);
}

/* --- Form grid — 2 columns, generous gaps --- */
.ml-form-card .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* --- Full-width fields (message, hidden fields) --- */
.ml-form-card .form-field--full {
  grid-column: 1 / -1;
}

/* --- Field labels --- */
.ml-form-card .form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-body, 'Sora', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted, #5a6b7a);
}

/* --- Inputs & textarea — premium styling --- */
.ml-form-card .form-field input,
.ml-form-card .form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body, 'Sora', sans-serif);
  font-size: 0.9375rem;
  color: var(--color-text, #102434);
  background: #f9fafb !important;
  border: 1.5px solid rgba(11, 45, 70, 0.1) !important;
  border-radius: 0.75rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}

.ml-form-card .form-field input:hover,
.ml-form-card .form-field textarea:hover {
  border-color: rgba(11, 45, 70, 0.2);
  background: #fff;
}

.ml-form-card .form-field input:focus,
.ml-form-card .form-field textarea:focus {
  background: #fff;
  border-color: var(--color-gold, #cfa066);
  box-shadow: 0 0 0 3px rgba(207, 160, 102, 0.1);
}

.ml-form-card .form-field input::placeholder,
.ml-form-card .form-field textarea::placeholder {
  color: rgba(90, 107, 122, 0.4);
}

/* --- Textarea specific --- */
.ml-form-card .form-field textarea {
  resize: vertical;
  min-height: 8.5rem;
  line-height: 1.6;
}

/* --- Submit button — premium positioning --- */
.ml-form-card button[type="submit"],
.ml-form-card .button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 14rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body, 'Sora', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--color-primary, #0b2d46);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin-top: 0.25rem;
}

.ml-form-card button[type="submit"]:hover,
.ml-form-card .button--primary:hover {
  background: #12344a;
  box-shadow: 0 4px 14px rgba(11, 45, 70, 0.22);
  transform: translateY(-1px);
}

.ml-form-card button[type="submit"]:active,
.ml-form-card .button--primary:active {
  transform: translateY(0);
}

/* --- Feedback notice --- */
.ml-form-card .contact-form__notice {
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(207, 160, 102, 0.08);
  border: 1px solid rgba(207, 160, 102, 0.18);
  color: var(--color-primary, #0b2d46);
  font-size: 0.875rem;
}

/* --- Mobile: single column form --- */
@media (max-width: 47.9375rem) {
  .ml-form-card .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ml-form-card button[type="submit"],
  .ml-form-card .button--primary {
    width: 100%;
  }

  .ml-contact-layout__grid {
    grid-template-columns: 1fr;
  }

  .ml-contact-info-card:hover {
    transform: none;
  }
}

/* ===============================================================
   NAVIGATION — IDENTICAL on every page, no exceptions
   =============================================================== */

/* Nav links — same font, spacing, weight, radius everywhere */
.site-nav__list a {
  white-space: nowrap;
  background: transparent;
  color: var(--color-text, #102434);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.5rem 0.875rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  background: rgba(11, 45, 70, 0.06);
  color: var(--color-primary, #0b2d46);
}

.site-nav__list .is-current-menu-item a,
.site-nav__list .current-menu-item a {
  background: rgba(11, 45, 70, 0.1);
  color: var(--color-primary, #0b2d46);
  font-weight: 600;
}

/* SHOP button — solid navy on every page */
.home .site-nav__cta .button,
.site-nav__cta .button {
  padding: 0.55rem 1.2rem;
  font-family: var(--font-body, 'Sora', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--color-primary, #0b2d46);
  color: #fff;
  border-color: transparent;
  transition: background 0.2s ease;
}

.home .site-nav__cta .button:hover,
.site-nav__cta .button:hover {
  background: #12344a;
}

/* ===============================================================
   MOBILE RESPONSIVE — all pages
   =============================================================== */

@media (max-width: 47.9375rem) {
  /* Mobile form already handled above */

  /* Back-to-top: smaller, not overlapping content */
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  /* Cards: no lift on mobile (touch devices) */
  .ml-boat-card:hover,
  .motoare-tip-card:hover,
  .echipamente-card:hover,
  .ml-offer-card:hover,
  .post-card:hover,
  .ml-about-definition-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Brand hero: stack content on mobile */
  .brand-hero--centered .brand-hero__brand {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* --- Tablet: ensure 2-col contact grid works --- */
@media (min-width: 48rem) {
  .ml-contact-layout__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
