/* ===========================
   Loverpool — styles.css
   Clean rebuild
   =========================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --deep: #051937;
  --ocean: #0a3250;
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.25);
  --silver: #c0c8d4;
  --white: #f0f4f8;
  --pure: #ffffff;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--white);
  background: var(--deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===========================
   VIDEO BACKGROUND
   =========================== */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 25, 55, 0.75);
}

@media (min-width: 768px) {
  .video-bg {
    display: block;
  }
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(5, 25, 55, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.6rem 0;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 200;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-brand span {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pure);
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 200;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile fullscreen menu (lives outside nav) */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 25, 55, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 9999;
}

.nav-menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.nav-menu a {
  display: block;
  padding: 1.1rem 2rem;
  font-size: 1.3rem;
  color: var(--silver);
  transition: color 0.25s;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.nav-menu a:hover,
.nav-menu a:active { color: var(--teal); }

/* Desktop inline links (inside nav) */
.nav-links {
  display: none;
}

.nav-cta {
  display: inline-block !important;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: var(--deep) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 50px;
  font-weight: 500 !important;
  margin-top: 0.5rem;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(45, 212, 191, 0.08), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(13, 74, 107, 0.2), transparent 50%),
    linear-gradient(180deg, var(--deep) 0%, var(--ocean) 50%, var(--deep) 100%);
}

@media (min-width: 768px) {
  .hero-bg {
    background: none;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6rem 1.25rem 3rem;
  animation: fadeUp 0.9s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  animation: float 4s ease-in-out infinite, logoGlow 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 30px rgba(45, 212, 191, 0.2));
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 8px 30px rgba(45, 212, 191, 0.2)); }
  100% { filter: drop-shadow(0 8px 50px rgba(45, 212, 191, 0.5)) drop-shadow(0 0 20px rgba(45, 212, 191, 0.15)); }
}

@media (min-width: 768px) {
  .hero-logo {
    animation: float 4s ease-in-out infinite;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--pure);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--silver);
  margin-bottom: 2.5rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  min-height: 48px;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: var(--deep);
  box-shadow: 0 4px 24px var(--teal-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(45, 212, 191, 0.4);
}

.btn-lg {
  padding: 1.1rem 2.6rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   FEATURES
   =========================== */
.features {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: linear-gradient(180deg, var(--deep) 0%, var(--ocean) 100%);
}

@media (min-width: 768px) {
  .features {
    background: rgba(5, 25, 55, 0.85);
  }
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--pure);
  margin-bottom: 0.6rem;
}

.features-header p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--silver);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 40px rgba(45, 212, 191, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  color: var(--teal);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--pure);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--silver);
  line-height: 1.65;
}

/* ===========================
   CTA
   =========================== */
.cta {
  padding: clamp(5rem, 12vw, 8rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ocean), #030f1f);
  z-index: 0;
}

@media (min-width: 768px) {
  .cta-bg {
    background: rgba(3, 15, 31, 0.85);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--pure);
  margin-bottom: 0.8rem;
  line-height: 1.15;
}

.cta .sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--silver);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.cta .trust {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: rgba(192, 200, 212, 0.5);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #030f1f;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--silver);
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--teal); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(192, 200, 212, 0.35);
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 1024px) {
  .nav-hamburger { display: none; }
  .nav-menu { display: none !important; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    color: var(--silver);
    transition: color 0.25s;
    white-space: nowrap;
  }

  .nav-links a:hover { color: var(--teal); }

  .hero-content { padding: 0 2rem; }

  .hero-logo {
    width: 240px;
    height: 240px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===========================
   ACCESSIBILITY
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ===========================
   GOOGLE TRANSLATE
   =========================== */
.translate-wrap {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 9000;
}

/* Language picker */
.lang-select {
  background: rgba(5, 25, 55, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--silver);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23c0c8d4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.75rem;
  transition: border-color 0.2s;
}

.lang-select:hover {
  border-color: rgba(45, 212, 191, 0.4);
}

.lang-select option {
  background: #051937;
  color: var(--silver);
}

.lang-picker-desktop {
  margin-left: 0.75rem;
}

/* Mobile: hide desktop picker, show mobile picker inside menu */
.lang-picker-mobile {
  display: none;
  padding: 0.5rem 2rem 0;
}

.lang-picker-mobile .lang-select {
  width: 100%;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  padding-right: 2rem;
}

@media (max-width: 1023px) {
  .lang-picker-desktop {
    display: none;
  }
  .nav-menu.open .lang-picker-mobile,
  .lang-picker-mobile {
    display: block;
  }
}
