/* ════════════════════════════════════════════════════════════
   VILLA LOS NAVEGANTES · Custom styles
   Supplements Tailwind (via CDN) with animations, form styles,
   accordion, scroll reveal, and refinements.
   ════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   BASE
   ───────────────────────────────────── */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-feature-settings: "ss01", "ss02", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: #c8922a;
  color: #F5F0E8;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #fafaf7;
}
::-webkit-scrollbar-thumb {
  background: #c8922a;
  border-radius: 10px;
  border: 2px solid #fafaf7;
}
::-webkit-scrollbar-thumb:hover {
  background: #1a1a1a;
}

/* ─────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
   ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ─────────────────────────────────────
   HERO SCROLL INDICATOR ANIMATION
   ───────────────────────────────────── */
.scroll-indicator-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(-100%); opacity: 0; }
  50% { transform: translateY(0); opacity: 1; }
}

/* ─────────────────────────────────────
   AMENITY CARD
   ───────────────────────────────────── */
.amenity-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.amenity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c8922a, transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.amenity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 146, 42, 0.3);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 26, 0.15);
}

.amenity-card:hover::before {
  transform: translateX(0);
}

/* ─────────────────────────────────────
   PRINCIPLE CARD (testimonials section)
   ───────────────────────────────────── */
.principle-card {
  background: linear-gradient(135deg, #F5F0E8 0%, #fafaf7 100%);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.principle-card::before {
  content: '"';
  position: absolute;
  top: -2rem;
  right: 1.5rem;
  font-family: 'Fraunces', serif;
  font-size: 12rem;
  font-weight: 300;
  color: #c8922a;
  opacity: 0.1;
  line-height: 1;
  transition: opacity 0.5s ease;
}

.principle-card:hover {
  border-color: rgba(200, 146, 42, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 26, 0.2);
}

.principle-card:hover::before {
  opacity: 0.25;
}

/* ─────────────────────────────────────
   FAQ ACCORDION
   ───────────────────────────────────── */
.faq-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(200, 146, 42, 0.3);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(200, 146, 42, 0.4);
  box-shadow: 0 10px 30px -15px rgba(26, 26, 26, 0.1);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 2rem;
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: #1a1a1a;
  position: relative;
  padding-right: 4rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.75rem;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c8922a' stroke-width='2'%3E%3Cpath stroke-linecap='round' d='M12 4v16m-8-8h16'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(135deg);
}

.faq-body {
  padding: 0 2rem 1.75rem;
  color: rgba(26, 26, 26, 0.7);
  line-height: 1.7;
  font-size: 0.975rem;
}

.faq-body p {
  margin: 0;
}

.faq-body a:hover {
  color: #c8922a;
}

/* ─────────────────────────────────────
   RESOURCE CARD (downloads)
   ───────────────────────────────────── */
.resource-card {
  display: block;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.resource-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(200, 146, 42, 0.4);
  transform: translateX(4px);
  box-shadow: 0 20px 40px -20px rgba(26, 26, 26, 0.15);
}

/* ─────────────────────────────────────
   FORM INPUTS
   ───────────────────────────────────── */
.form-input {
  width: 100%;
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.15);
  border-radius: 0.625rem;
  padding: 0.9rem 1.1rem;
  color: #F5F0E8;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(245, 240, 232, 0.35);
}

.form-input:hover {
  border-color: rgba(200, 146, 42, 0.35);
}

.form-input:focus {
  border-color: #c8922a;
  background: rgba(245, 240, 232, 0.08);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.1);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c8922a' stroke-width='2'%3E%3Cpath stroke-linecap='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.75rem;
  cursor: pointer;
}

select.form-input option {
  background: #1a1a1a;
  color: #F5F0E8;
}

/* ─────────────────────────────────────
   SUCCESS STATE (when form submitted)
   ───────────────────────────────────── */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.form-success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  color: #c8922a;
}
.form-success-title {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #F5F0E8;
  margin-bottom: 0.5rem;
}
.form-success-text {
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.6;
}

/* ─────────────────────────────────────
   MOBILE MENU ANIMATION
   ───────────────────────────────────── */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────
   MEDIA QUERIES · refinements
   ───────────────────────────────────── */
@media (max-width: 640px) {
  .amenity-card,
  .faq-item summary,
  .resource-card {
    padding: 1.5rem;
  }

  .principle-card {
    padding: 2rem 1.5rem;
  }

  .faq-body {
    padding: 0 1.5rem 1.5rem;
  }
}

/* ─────────────────────────────────────
   PRINT STYLES
   ───────────────────────────────────── */
@media print {
  nav, .reveal, form, footer { display: none; }
  body { color: #000; background: #fff; }
  * { box-shadow: none !important; }
}
