/*
Theme Name:  FreeRideBoat
Theme URI:   https://freerideboat.com
Description: Thème custom pour FreeRideBoat – Excursions en bateau à Polignano a Mare (Pouilles, Italie). Stack WordPress natif + Tailwind CSS.
Version:     1.0.0
Author:      FreeRideBoat
Text Domain: freerideboat
Tags:        custom, tailwind, fullwidth, one-page
*/

/* ─── ANIMATIONS SCROLL (Intersection Observer) ──────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1),
              transform 0.65s cubic-bezier(.22,1,.36,1);
}
[data-animate="slide-left"]  { transform: translateX(-40px); }
[data-animate="slide-right"] { transform: translateX(40px); }
[data-animate="zoom-in"]     { transform: scale(0.92); }
[data-animate="fade"]        { transform: none; }
[data-animate].animated {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* ─── HEADER ──────────────────────────────────────────────────────────── */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#site-header.scrolled {
  background-color: rgba(10, 61, 98, 0.97) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  backdrop-filter: blur(8px);
}
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00B4D8;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.current::after { width: 100%; }

/* ─── WAVE DIVIDERS ───────────────────────────────────────────────────── */
.wave-wrapper {
  position: relative;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}
.wave-wrapper svg { display: block; width: 100%; }

/* Hero : image d’écume en superposition de la vague */
/* ─── CARDS HOVER ─────────────────────────────────────────────────────── */
.excursion-card {
  transition: transform 0.35s cubic-bezier(.22,1,.36,1),
              box-shadow 0.35s ease;
}
.excursion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(10,61,98,0.18);
}

/* ─── COUNTER ─────────────────────────────────────────────────────────── */
.stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

/* ─── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00B4D8;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  padding: 17px 40px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn-primary:hover { background: #0A3D62; transform: translateY(-2px); color: #fff; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0A3D62;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  padding: 17px 40px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn-navy:hover { background: #071E31; transform: translateY(-2px); color: #fff; }

/* ─── TYPOGRAPHY ──────────────────────────────────────────────────────── */
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #0A3D62;
  line-height: 1.2;
}
.section-divider {
  display: block;
  width: 60px;
  height: 3px;
  background: #00B4D8;
  border-radius: 9999px;
  margin: 16px auto 0;
}
.section-divider.left { margin-left: 0; }

/* ─── MOBILE MENU ─────────────────────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.22,1,.36,1);
}
#mobile-menu.open { max-height: 500px; }

/* ─── SOCIAL ICONS ────────────────────────────────────────────────────── */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}
.social-icon:hover { transform: translateY(-3px); color: #fff; }
.social-icon.instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-icon.facebook:hover  { background: #1877F2; border-color: #1877F2; }
.social-icon.whatsapp:hover  { background: #25D366; border-color: #25D366; }
.social-icon.tripadvisor:hover { background: #00AF87; border-color: #00AF87; }

/* ─── FORM ────────────────────────────────────────────────────────────── */
.frb-form input,
.frb-form select,
.frb-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #1F2937;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.frb-form input:focus,
.frb-form select:focus,
.frb-form textarea:focus { border-color: #00B4D8; }
.frb-form textarea { min-height: 130px; resize: vertical; }

/* Section Contact — carte 2 colonnes + champs underline */
.frb-contact-card {
  box-shadow: 0 2px 10px -3px rgba(115, 120, 131, 0.2), 0 4px 20px -4px rgba(10, 61, 98, 0.12);
}
.frb-form--contact .frb-form-input--underline,
.frb-form--contact .frb-form-input.frb-form-input--underline {
  padding: 12px 4px 12px 0;
  border: none;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  color: #0A3D62;
}
.frb-form--contact .frb-form-input--underline::placeholder {
  color: #6b7280;
}
.frb-form--contact .frb-form-input--underline:focus {
  border-bottom-color: #0A3D62;
  outline: none;
}
.frb-contact-submit {
  border-radius: 12px;
}
.frb-contact-submit:hover {
  background: #0A3D62;
  color: #fff;
}

/* Section Contact — image de fond */
.frb-contact-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.frb-contact-bg-overlay {
  background: rgba(255, 255, 255, 0.48);
}

/* Section CTA — dégradé bleu → blanc cassé en bas */
.frb-cta-gradient {
  background: linear-gradient(180deg, #00B4D8 0%, #00B4D8 35%, #7dd3e8 70%, #FEFEFE 100%);
}
.frb-cta-map {
  aspect-ratio: 16 / 10;
  min-height: 280px;
}
.frb-cta-map iframe {
  min-height: 280px;
}

/* ─── ÉCLABOUSSURES / ÉCUME (arrière-plan dynamique) ──────────────────── */
.frb-splash-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.frb-splash {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  will-change: transform;
  transition: transform 0.15s ease-out;
  animation: frb-splash-breathe 6s ease-in-out infinite;
}
.frb-splash--w { background: rgba(255, 255, 255, 0.35); }
.frb-splash--t { background: rgba(0, 180, 216, 0.12); }
.frb-splash--n { background: rgba(10, 61, 98, 0.08); }
@keyframes frb-splash-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ─── WORDPRESS RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
