/*
Theme Name: Rizerve Classic
Theme URI: https://rizerve.io
Description: Direct bookings for vacation rentals. Keep 100% of what guests pay.
Author: Osolvo Ltd
Version: 1.0
License: GPL v2 or later
Text Domain: rizerve
*/

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: #0f172a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  padding-top: 5rem;
}

a { color: inherit; text-decoration: none; }
img { max-width: none; height: auto; }

/* === BUTTONS === */
.btn-primary {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 16px -2px rgba(14,116,144,0.18);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 14px 28px -4px rgba(14,116,144,0.22);
}
.btn-primary:hover::after { opacity: 1; }

/* === UTILITY === */
.card-lift { transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2); }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -8px rgba(0,0,0,0.1); }
.input-focus:focus { outline: none; border-color: #0e7490; box-shadow: 0 0 0 3px rgba(14,116,144,0.08), 0 0 0 1px rgba(14,116,144,0.2); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* Phone shadow */
.phone-frame {
  box-shadow: 0 0 0 3px #1e293b, 0 0 0 6px #334155, 0 25px 60px -12px rgba(0,0,0,0.5);
}

/* Calculator pulse */
@keyframes pulseFee { 0%,100%{box-shadow:0 0 0 0 rgba(244,63,94,0.3)} 50%{box-shadow:0 0 0 8px rgba(244,63,94,0)} }
.pulse-fee { animation: pulseFee 3s ease-in-out infinite; }

/* Shimmer text */
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.shimmer-text {
  background: linear-gradient(90deg, #0e7490 0%, #06b6d4 30%, #0e7490 60%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Number input hide spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* FAQ */
details summary::-webkit-details-marker { display: none; }
details summary { cursor: pointer; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.anim-fade-up { animation: fadeUp 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.anim-fade-up-1 { animation: fadeUp 0.7s 0.1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; opacity: 0; }
.anim-fade-up-2 { animation: fadeUp 0.7s 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; opacity: 0; }
.anim-fade-up-3 { animation: fadeUp 0.7s 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; opacity: 0; }
.anim-scale-in { animation: scaleIn 0.5s 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; opacity: 0; }
.anim-slide-right { animation: slideRight 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; opacity: 0; }
.anim-slide-right-1 { animation: slideRight 0.6s 0.15s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; opacity: 0; }

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

/* === NAVBAR === */
.rz-nav-container {
  position: fixed;
  top: 0.75rem; left: 0.75rem; right: 0.75rem;
  z-index: 999;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226,232,240,0.5);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.rz-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rz-nav-logo img { height: 2rem; width: auto; display: block; }

.rz-nav-menu { display: none; }

.rz-nav-menu ul {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}

.rz-nav-menu a {
  font-size: 0.875rem; font-weight: 500;
  color: #64748b; transition: color 0.15s;
}
.rz-nav-menu a:hover { color: #0f172a; }

.rz-nav-cta {
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 180px; justify-content: flex-end;
}

.rz-nav-signin {
  font-size: 0.875rem; font-weight: 600;
  color: #64748b; transition: color 0.15s;
}
.rz-nav-signin:hover { color: #0f172a; }

.rz-nav-start {
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #fff;
  font-size: 0.875rem; font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 12px;
  display: inline-flex; align-items: center; gap: 0.375rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 16px -2px rgba(14,116,144,0.18);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
.rz-nav-start:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 14px 28px -4px rgba(14,116,144,0.25); color: #fff; }

@media (min-width: 640px) {
  .rz-nav-menu { display: block; }
}

/* === FOOTER === */
.rz-footer {
  background: #0f172a; color: #94a3b8;
  padding: 4rem 1rem; position: relative; overflow: hidden;
}
.rz-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem; max-width: 72rem;
  margin: 0 auto 3rem; position: relative;
}
.rz-footer h4 {
  font-size: 0.75rem; font-weight: 600; color: #475569;
  text-transform: uppercase; letter-spacing: 0.15em;
  margin: 0 0 0.75rem 0;
}
.rz-footer a {
  color: #94a3b8; font-size: 0.875rem;
  transition: color 0.15s; display: block; margin-bottom: 0.5rem;
}
.rz-footer a:hover { color: #fff; }
.rz-footer-logo img { height: 1.75rem; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; display: block; }
.rz-footer-copy {
  border-top: 1px solid #1e293b;
  padding-top: 2rem; text-align: center;
  font-size: 0.75rem; color: #475569;
  max-width: 72rem; margin: 0 auto;
}

/* ===== GLOBAL FORM STYLES ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  color: #0f172a;
  background: #fff;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: #0e7490;
  box-shadow: 0 0 0 3px rgba(14,116,144,0.1);
}
textarea { min-height: 8rem; resize: vertical; }
label { display: block; font-size: 0.875rem; font-weight: 600; color: #334155; margin-bottom: 0.375rem; }
input[type="submit"],
button[type="submit"],
.wpcf7-submit {
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 0.875rem 2rem; border: none; border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 16px -2px rgba(14,116,144,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 14px 28px -4px rgba(14,116,144,0.2);
}
.wpcf7-not-valid-tip { font-size: 0.75rem; color: #ef4444; margin-top: 0.25rem; }
