/* Casa Aura - Theme variables and border-radius utilities
   - Defines CSS custom properties (--radius-*) you asked for
   - Adds fallback utility classes (rounded-5xl, etc.) so they work
     even if Tailwind doesn't generate them in your current build

   Usage:
     <div class="rounded-5xl">...</div>

   If you use Tailwind and prefer generating these via the Tailwind
   build step, either use `@theme { --radius-... }` (Tailwind v4+),
   or extend `theme.borderRadius` in `tailwind.config.js` (v3).
*/

:root {
  --radius-sm: 0.125rem;
  /* 2px */
  --radius-md: 0.375rem;
  /* 6px */
  --radius-lg: 0.5rem;
  /* 8px */
  --radius-xl: 0.75rem;
  /* 12px */
  --radius-2xl: 1rem;
  /* 16px */
  --radius-3xl: 1.5rem;
  /* 24px */
  --radius-4xl: 2.5rem;
  /* 40px */
  --radius-5xl: 3rem;
  /* 48px - your requested value */

  /* project-specific names */
  --radius-button: 0.375rem;
  --radius-card: 1.25rem;
}

/* Prevent horizontal overflow on mobile */
html {
  overflow-x: hidden;
  width: 100%;
}

html body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}


/* Utility classes: provide the rounded-* utilities referencing the variables.
   These won't conflict with Tailwind-generated classes if Tailwind already
   provides them; they simply act as a useful fallback or immediate helper.
*/
.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-2xl {
  border-radius: var(--radius-2xl);
}

.rounded-3xl {
  border-radius: var(--radius-3xl);
}

.rounded-4xl {
  border-radius: var(--radius-4xl);
}

.rounded-5xl {
  border-radius: var(--radius-5xl);
}

.rounded-button {
  border-radius: var(--radius-button);
}

.rounded-card {
  border-radius: var(--radius-card);
}

/* Optional: preserve existing utility specificity when used alongside
   Tailwind's utilities. Uncomment to give these rules higher priority.
.rounded-5xl { border-radius: var(--radius-5xl) !important; }
*/

/* Small helper: show current variable values during dev if you add
   the `.show-radius-vars` class to an element (non-intrusive).
*/
.show-radius-vars::after {
  content: "r-sm:" var(--radius-sm) " r-md:" var(--radius-md) " r-lg:" var(--radius-lg) " r-5xl:" var(--radius-5xl);
  display: block;
  font-size: 0.75rem;
  color: #444;
  margin-top: 0.5rem;
}

/* Partner slider helpers */
.partner-slider {
  position: relative;
  overflow: hidden;
}

.partner-track {
  display: flex;
  gap: 3rem;
  transition: transform 0.7s ease-in-out;
  will-change: transform;
}

.partner-card {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .partner-card {
    flex: 0 0 60%;
  }
}

@media (min-width: 1024px) {
  .partner-card {
    flex: 0 0 calc(33.333% - 2rem);
  }
}

/* Small button variant that keeps inside WhatsApp icon visible/overflowing */
.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* small gap between label and icon */
  padding: 0.5rem 1rem;
  /* top/bottom, left/right default */
  padding-right: 3.5rem;
  /* reserve space for small icons on mobile */
  font-size: 1rem;
  position: relative;
  /* to position whatsapp icon absolutely */
  overflow: visible;
  /* allow icon to overflow outside container */
}

.btn-small .text-2xl {
  font-size: 1rem;
  /* Reduce large text size if present */
}

/* Position the WhatsApp icon so it can overflow the button */
.whatsapp-icon {
  position: absolute;
  right: -1rem;
  /* push it outside the button to the right */
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: transform 0.3s ease;
}

.whatsapp-icon:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Larger screens: increase right padding a bit so label keeps distance from bigger icons */
@media (min-width: 768px) {
  .btn-small {
    padding-right: 5.25rem;
    /* space for larger icons like w-16 or w-20 */
  }
}

/* Ensure any inner svg keeps visual size and centering */
.whatsapp-icon svg {
  display: block;
}

/* Hero ornament size overrides (smaller than original widths) */
.hero-ornament {
  width: 11rem !important;
  /* default smallish width */
  height: auto;
}

@media (min-width: 768px) {
  .hero-ornament {
    width: 14rem !important;
    /* md */
  }
}

@media (min-width: 1024px) {
  .hero-ornament {
    width: 20rem !important;
    /* lg */
  }
}

@media (min-width: 1280px) {
  .hero-ornament {
    width: 24rem !important;
    /* xl */
  }
}

/* Hero responsiveness near 1130px: keep layout centered but tighten text and push image right */
@media (max-width: 1280) {
  .hero-section .hero-inner {
    transform: scale(1);
    transform-origin: top center;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
  }

  .hero-section .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    text-align: left;
  }

  .hero-section .hero-subtitle {
    font-size: 2rem;
    line-height: 1.2;
    text-align: left;
  }

  .hero-section .hero-copy {
    max-width: 560px;
    margin: 0 auto;
    align-items: flex-start;
  }

  .hero-section .hero-container {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section .hero-image-wrapper {
    right: -5.5rem;
  }

  .hero-section .hero-main-image {
    width: 260px !important;
    height: auto;
  }
}

/* Small desktop (e.g., ~790px wide) - give hero more breathing room without hiding items */
@media (min-width: 768px) and (max-width: 980px) {
  .hero-section {
    min-height: 105vh;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .hero-section .hero-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-section .hero-inner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
    transform: scale(1);
    transform-origin: top center;
  }

  .hero-section .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-section .hero-title {
    font-size: 2.5rem;
    line-height: 1.15;
  }

  .hero-section .hero-subtitle {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero-section .btn-small {
    padding-right: 4.5rem;
  }

  .hero-section .whatsapp-icon {
    right: -0.75rem;
  }

  .hero-section .hero-image-wrapper {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    margin-top: 0.5rem;
  }

  .hero-section .hero-main-image {
    width: 260px;
  }
}

/* Short desktop heights (~500-650px tall): drop hero content and pin image to the bottom */
@media (min-width: 768px) and (max-height: 650px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .hero-section .hero-inner {
    transform: translate(-6%, 20px);
    transform-origin: center bottom;
  }

  .hero-section .hero-image-wrapper {
    position: absolute;
    right: 0%;
    left: auto;
    bottom: 0;
    margin-top: 0;
  }
}

/* Testimonials: fade incoming card on desktop */
.testimonial-card {
  transition: opacity 0.6s ease;
}

@media (min-width: 1920px) {
  .hero-section {
    min-height: 100vh;
  }

  .hero-section .hero-container {
    max-width: 90rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-section .hero-inner {
    gap: 3.5rem;
    transform: scale(1.5);
    transform-origin: left top;
  }

  .hero-section .hero-copy {
    max-width: 48rem;
  }

  .hero-section .hero-title,
  .hero-section .hero-subtitle {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .hero-section .btn-small {
    font-size: 1.1rem;
    padding: 1rem 1.75rem;
    padding-right: 6rem;
  }

  .hero-section .whatsapp-icon {
    right: -1.25rem;
    width: 5.25rem;
    height: 5.25rem;
  }

  .hero-section .hero-image-wrapper {
    right: 1%;
  }

  .hero-section .hero-main-image {
    width: 40vw !important;
    max-width: 640px !important;
  }

  .hero-ornament {
    width: 30rem !important;
  }
}

/* Testimonials: fade incoming card on desktop */
.testimonial-card {
  transition: opacity 0.6s ease;
}

@media (min-width: 1024px) {
  .testimonial-card {
    opacity: 0.2;
  }

  .testimonial-card.is-active {
    opacity: 1;
  }
}

/* Hero Animations - Desktop Only */
@media (min-width: 768px) {
  @keyframes float-left {

    0%,
    100% {
      transform: translateY(-50%) translateX(-12.5%);
    }

    50% {
      transform: translateY(-55%) translateX(-12.5%);
    }
  }

  @keyframes float-right {

    0%,
    100% {
      transform: translateY(-50%) translateX(12.5%);
    }

    50% {
      transform: translateY(-45%) translateX(12.5%);
    }
  }

  @keyframes float-main {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-15px);
    }
  }

  .hero-ornament-left {
    animation: float-left 6s ease-in-out infinite;
  }

  .hero-ornament-right {
    animation: float-right 7s ease-in-out infinite;
  }

  .hero-main-image {
    animation: float-main 8s ease-in-out infinite;
  }
}
