/* ─────────────────────────────────────────────────────────────────────────────
   Chaynarium — Scroll animations
   Replaces Webflow Interactions 2.0 (webflow.js IX2)
   ───────────────────────────────────────────────────────────────────────────── */

/* Restore heading margin-bottom that chaynarium.webflow.css cancels to 0 */
.page-heading h1,
.page-heading h2 {
  margin-bottom: 10px;
}

/* Initial hidden state — added by JS before observing */
.anim-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Visible state — added by IntersectionObserver when element enters viewport */
.anim-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered children — each sibling gets a slightly longer delay */
.anim-stagger > .anim-hidden:nth-child(1)  { transition-delay: 0s;    }
.anim-stagger > .anim-hidden:nth-child(2)  { transition-delay: 0.10s; }
.anim-stagger > .anim-hidden:nth-child(3)  { transition-delay: 0.20s; }
.anim-stagger > .anim-hidden:nth-child(4)  { transition-delay: 0.30s; }
.anim-stagger > .anim-hidden:nth-child(5)  { transition-delay: 0.40s; }
.anim-stagger > .anim-hidden:nth-child(6)  { transition-delay: 0.50s; }
.anim-stagger > .anim-hidden:nth-child(7)  { transition-delay: 0.60s; }
.anim-stagger > .anim-hidden:nth-child(8)  { transition-delay: 0.70s; }
.anim-stagger > .anim-hidden:nth-child(9)  { transition-delay: 0.80s; }
.anim-stagger > .anim-hidden:nth-child(10) { transition-delay: 0.90s; }
.anim-stagger > .anim-hidden:nth-child(11) { transition-delay: 1.00s; }
.anim-stagger > .anim-hidden:nth-child(12) { transition-delay: 1.10s; }

/* ─────────────────────────────────────────────────────────────────────────────
   Sticky footer — body is a flex column so <main> grows to fill the viewport.
   Prevents short pages (auth, empty states) from leaving a gap before the footer.
   ───────────────────────────────────────────────────────────────────────────── */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Form field spacing (field-wrap / checkbox-wrap have no CSS in Webflow export)
   ───────────────────────────────────────────────────────────────────────────── */

/* field-wrap / field-label spacing — superseded by custom.css global forms */

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.checkbox-wrap .field-label {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* Auth form: wider wrapper and restored paragraph spacing */
.w-users-userformpagewrap {
  max-width: 560px;
}

.w-users-userformheader p {
  margin-bottom: 16px;
}

/* Phone input overrides to match site field style */
.PhoneInput {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 55px;
  padding: 14px 12px;
  border: 1px solid var(--pale-green);
  border-radius: 2px;
  background-color: transparent;
  font-size: 18px;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.PhoneInput:hover {
  border-color: var(--light-green);
}

.PhoneInputCountry {
  margin-right: 8px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.PhoneInputInput {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  background: transparent;
  color: var(--dark-green);
  font-family: Inter, sans-serif;
  padding: 0;
}

/* react-day-picker — Chaynarium palette overrides
   Use .rdp-root.rdp-chaynarium (two classes) for higher specificity than
   the library's own .rdp-root defaults set in style.css */
.rdp-root.rdp-chaynarium {
  --rdp-accent-color: #548630;
  --rdp-accent-background-color: #f0f7e8;
  --rdp-today-color: #548630;
  --rdp-selected-border: 2px solid #548630;
  --rdp-disabled-opacity: 0.35;
  font-family: inherit;
}

.rdp-root.rdp-chaynarium .rdp-day_button {
  border-radius: 6px;
  color: #3a4b3c;
}

.rdp-root.rdp-chaynarium .rdp-selected .rdp-day_button {
  background: #548630;
  color: #fff;
  font-weight: 600;
}

.rdp-root.rdp-chaynarium .rdp-day_button:hover:not(:disabled) {
  background: #f0f7e8;
  color: #3a4b3c;
}

.rdp-root.rdp-chaynarium .rdp-disabled .rdp-day_button {
  cursor: not-allowed;
}

.rdp-root.rdp-chaynarium .rdp-nav button,
.rdp-root.rdp-chaynarium .rdp-nav_button {
  color: #548630;
}

.rdp-root.rdp-chaynarium .rdp-month_caption {
  font-family: inherit;
  color: #3a4b3c;
}

.rdp-root.rdp-chaynarium .rdp-weekday {
  color: #548630;
  opacity: 0.7;
}

/* section-description margin-bottom override — 63px from Webflow is too much */
.section-description {
  margin-bottom: 0;
}

/* Shop numbered pagination */
.page-number {
  border: 1px solid var(--green);
  color: var(--green);
  background-color: transparent;
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  transition: border-color .2s, background-color .2s;
  text-decoration: none;
}

.page-number:hover {
  background-color: var(--light-green);
  border-color: var(--light-green);
  color: var(--white);
}

.page-number.page-number-active {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--white);
  cursor: default;
  pointer-events: none;
}

.page-ellipsis {
  display: flex;
  align-items: center;
  padding: 0 4px;
  margin-top: 24px;
  color: #3a4b3c;
  font-size: 16px;
  font-weight: 600;
}

/* Booking product titles — balance long EN/PT names; size from h1/h2 /.h-size-* */
.booking-product-title {
  text-wrap: balance;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .anim-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Square CTAs — override Webflow pill (30px) for all primary action buttons
   ───────────────────────────────────────────────────────────────────────────── */

.button,
.button.small,
.button-2,
.button-3 {
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Home page Lisbon redesign + nav/footer helpers
   ───────────────────────────────────────────────────────────────────────────── */

.button.small.outline {
  background-color: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 11px 22px;
  white-space: nowrap;
}

.button.small.outline:hover {
  background-color: var(--light-green);
  border-color: var(--light-green);
  color: var(--white);
}

/* Home hero — column flex so the container spans full width (not shrink-centered) */
.section.hero.home-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  margin-top: 0;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
  background-color: #2e2e2e;
  background-image: none;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-video,
.home-hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-poster {
  display: none;
  background-position: center;
  background-size: cover;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(30, 38, 28, 0.82) 0%,
    rgba(30, 38, 28, 0.55) 50%,
    rgba(30, 38, 28, 0.1) 100%
  );
}

.home-hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.home-hero .home-hero-heading {
  max-width: 620px;
  color: var(--white);
  align-self: flex-start;
  margin-inline: 0;
}

.home-hero-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 7px 16px;
  border: 1px solid rgba(252, 250, 248, 0.6);
  border-radius: 999px;
  font: 600 15px Nunito, sans-serif;
  color: var(--white);
  margin-bottom: 8px;
}

/* home-hero-title: size from h1; color from .on-dark */

.home-hero-subheading {
  font: 400 20px/1.55 Nunito, sans-serif;
  color: var(--white);
  margin: 0;
}

.home-hero-ctas .button.white {
  color: #2e2e2e;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-video {
    display: none;
  }

  .home-hero-poster {
    display: block;
  }
}

/* Experience cards */
.home-experiences-heading {
  margin: 0 auto 56px;
}

.home-experience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.home-experience-card {
  background: #fff;
  border: 1px solid #ebe5db;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-experience-card-image {
  position: relative;
  height: 240px;
  width: 100%;
  flex-shrink: 0;
}

.home-experience-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.home-experience-card-body .text-green {
  font: 600 15px Nunito, sans-serif;
}

/* home-experience-card-title: size from global h3 */

.home-experience-card-body .text-gray {
  flex: 1;
  margin: 0;
}

.home-experience-card-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.home-experience-about-link {
  font: 600 16px Nunito, sans-serif;
  color: var(--green);
  text-decoration: none;
}

.home-experience-about-link:hover {
  color: var(--light-green);
}

/* Vinyl shop header */
.home-vinyl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.home-vinyl-description {
  text-align: left;
  margin-top: 12px;
}

.home-vinyl-view-all {
  font: 700 16px Nunito, sans-serif;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.home-vinyl-view-all:hover {
  color: var(--light-green);
}

/* Founder */
.home-founder {
  background-color: var(--light-green);
}

.home-founder .home-about-content {
  padding-top: 72px;
  padding-bottom: 72px;
}

.home-founder .button.white {
  color: #2e2e2e;
}

/* Newsletter */
.footer-newsletter-section .container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-newsletter {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* footer-newsletter-title: size from global h2 */

.footer-newsletter-subtitle {
  font: 400 17px/1.55 Nunito, sans-serif;
  margin: 0;
  color: #2e2e2e;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.footer-newsletter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-newsletter-input {
  flex: 1;
  min-width: 220px;
  margin-bottom: 0;
}

.footer-newsletter-submit {
  padding: 14px 28px;
  white-space: nowrap;
}

.footer-newsletter-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.footer-newsletter-gdpr {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  font: 400 14px/1.5 Nunito, sans-serif;
}

.footer-newsletter-gdpr input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.footer-newsletter-gdpr label {
  cursor: pointer;
  color: #2e2e2e;
}

.footer-newsletter-gdpr a {
  color: var(--green);
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .section.hero.home-hero {
    min-height: 520px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .home-hero-subheading {
    font-size: 18px;
  }

  .home-vinyl-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-founder .home-about-content {
    padding: 56px 18px;
  }
}
