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

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hover-scale-img .scaracode-card-img-wrapper img,
.hover-scale-img .rental-img-wrapper img,
.hover-scale-img .event-img-wrapper img,
.studio-img-wrapper img {
  transition: transform 0.7s ease;
}

.hover-scale-img:hover img,
.studio-img-wrapper:hover img {
  transform: scale(1.05);
}

/* TYPOGRAPHY */
.home .hero-title,
.home .about-title,
.home .classes-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.3;
}

.about-title,
.classes-title {
  color: var(--primary);
}

.hero-title {
  color: white;
}

.home .hero-subtitle,
.classes-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
  opacity: 0.8;
}

.home .hero-title {
  text-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px;
}
.home .hero-subtitle {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.text-terracotta {
  color: var(--terracotta);
}
.text-brown-muted {
  color: var(--text-muted);
}

/* BUTTONS */
.btn-hero-custom,
.btn-terracotta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.05em;

  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: none;
  outline: none;
  cursor: pointer;

  transition: all 300ms ease-in-out;
  transform: scale(1);
  box-shadow: var(--shadow-sm);
}

.btn-hero-custom {
  background-color: #ffffff;
  color: var(--primary);
}
.btn-hero-custom:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
  color: var(--primary);
}

.btn-terracotta {
  background-color: var(--terracotta);
  color: var(--primary-foreground);
}
.btn-terracotta:hover {
  background-color: var(--terracotta-hover);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(193, 130, 102, 0.4);
}

.btn-hero-custom:disabled,
.btn-terracotta:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.scaracode-groups-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background-color: #ffffff;
    z-index: 50;
    padding: 1rem;
    
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.scaracode-groups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 12px; 
  padding-bottom: 20px;
}

.scaracode-groups-drawer.is-active {
    transform: translateY(0);
}

.scaracode-drawer-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.scaracode-drawer-body {
    flex: 1;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.group-grid-card {
    border: 1px solid #e9ecef;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 140px; 
}

.group-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08)!important;
    border-color: #c18266; 
}

.badge-dot {
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    display: inline-block;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

@media (max-width: 400px) {
    .scaracode-groups-grid {
        grid-template-columns: 1fr; 
    }
}

.scaracode-drawer-close {
    position: absolute;
    top: 5px;
    left: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 60;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.scaracode-drawer-close:hover {
    opacity: 1;
}

.scaracode-drawer-body::-webkit-scrollbar {
    width: 6px;
}
.scaracode-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}
.scaracode-drawer-body::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 20px;
}

/* CARDS  */
.contact-card,
.scaracode-card,
.scaracode-event-card,
.scaracode-review-card,
.scaracode-rental-card {
  background-color: var(--primary-foreground);
  border-radius: var(--radius-xl) !important;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.contact-card:hover,
.scaracode-card:hover,
.scaracode-event-card:hover,
.scaracode-rental-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover) !important;
}

.scaracode-card-img-wrapper,
.event-img-wrapper {
  position: relative;
  overflow: hidden;
}

.scaracode-card-img-wrapper {
  height: 320px;
}
.event-img-wrapper {
  min-height: 250px;
}

@media (min-width: 768px) {
  .event-img-wrapper {
    min-height: 100%;
  }
}

.scaracode-info-box {
  background-color: var(--bg-cream);
  border: 2px solid var(--bg-beige);
  color: var(--primary);
}

.scaracode-price {
  color: var(--terracotta);
}
.scaracode-info-icon,
.info-box-meta svg {
  stroke: var(--text-muted);
  color: var(--text-muted);
}

.scaracode-badge {
  background-color: var(--terracotta);
  color: var(--primary-foreground);
  font-size: 0.85rem;
}

a.card-link-wrapper {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
}
a.card-link-wrapper:hover .btn-terracotta {
  background-color: var(--terracotta-hover);
  transform: translateY(-2px);
}

/* SECTIONS */
.hero-section {
  height: 50vh;
  min-height: 400px;
}
.absolute-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-bg {
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(58, 58, 58, 0.4) 0%,
    rgba(58, 58, 58, 0.3) 50%,
    rgba(58, 58, 58, 0.4) 100%
  );
}
.hero-scroll-down {
  animation: bounce 2s infinite;
  z-index: 2;
  opacity: 0.8;
}

/* About Section  */
.about-section {
  background-color: var(--bg-cream);
}
.about-image-wrapper {
  position: relative;
  padding: 0 10px;
}
.about-img-container {
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.about-decoration {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 8rem;
  height: 8rem;
  background-color: #e3c8b8;
  border-radius: 50%;
  z-index: 1;
}
.about-text-body {
  color: var(--primary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.about-text-body h4 {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .about-content-wrapper {
    padding-right: 3rem;
  }
}

/* Classes & Workshops  */
.classes-section,
.workshops-section {
  background-color: var(--bg-cream);
}

/* Rentals / Open Studio */
.rentals-section {
    background-color: #ffffff;
}

.scaracode-studio-pills::-webkit-scrollbar {
    width: 4px;
}
.scaracode-studio-pills::-webkit-scrollbar-track {
    background: transparent;
}
.scaracode-studio-pills::-webkit-scrollbar-thumb {
    background-color: rgba(138, 118, 99, 0.2);
    border-radius: 4px;
}

.scaracode-nav-link,
.scaracode-studio-pills .nav-link {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--primary) !important;
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    text-align: right;
    width: 100%;
    margin-bottom: 8px;
    border-color: var(--bg-beige) !important;
}

.scaracode-nav-link:hover,
.scaracode-studio-pills .nav-link:hover {
    background-color: var(--bg-cream) !important;
    color: var(--terracotta) !important;
}

.scaracode-nav-link.active,
.scaracode-studio-pills .nav-link.active {
    background-color: var(--terracotta) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(193, 130, 102, 0.3);
    border-color: var(--terracotta) !important;
}

.scaracode-studio-pills .contact-tab-btn {
    margin-top: 15px;
    border: 1px solid var(--terracotta) !important;
    font-weight: 600;
}

.scaracode-mobile-select {
    border: 2px solid var(--terracotta);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 1.1rem;
    color: var(--primary);
    background-color: #fff;
    cursor: pointer;
    text-align: right;
    direction: rtl;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238A7663' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-position: left 0.75rem center;
}

.scaracode-mobile-select:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 0.25rem rgba(138, 118, 99, 0.25);
}

.scaracode-rental-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border-radius: 16px;
}
.scaracode-rental-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}
.rental-img-wrapper {
    height: 100%;
    min-height: 320px;
}
.scaracode-rental-card img {
    transition: transform 0.6s ease;
}
.scaracode-rental-card:hover img {
    transform: scale(1.03);
}

@media (max-width: 991px) {
    .rentals-sidebar {
        position: static;
        top: 0;
        margin-bottom: 20px;
    }
    .rental-img-wrapper {
        min-height: 250px; 
    }
}

.hover-arrow svg {
  transition: all 0.3s ease;
}

.hover-arrow:hover svg {
  transform: translateX(-5px);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
