/* 
* OJANCANO CORE - Components
* Buttons, Cards, Hero, etc.
*/

/* Button */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: #1e4220;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-text-main);
}

.btn--accent:hover,
.btn--accent:focus {
    background-color: #c49261;
    color: #fff;
    transform: translateY(-2px);
}

.btn--lg {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* Hero */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    background-color: #333;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--space-sm);
}

.hero__title {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--space-sm);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero__microcopy {
    font-size: 0.875rem;
    margin-top: var(--space-sm);
    opacity: 0.9;
}

/* Feature/Benefit Card */
.feature-card {
    text-align: center;
    padding: var(--space-sm);
}

.feature-card__icon {
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.feature-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.feature-card__text {
    color: var(--color-text-light);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    height: 300px;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

.gallery__item--large {
    height: auto;
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .gallery__item--large {
        grid-column: span 2;
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__item--large {
        grid-column: span 2;
        grid-row: span 2;
        height: 100%;
    }
}

/* Info Section (Description / Env) */
.info-block {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-lg);
    align-items: center;
}

.info-block__content {
    flex: 1;
}

.info-block__media {
    flex: 1;
    width: 100%;
}

.info-block__img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
    .info-block {
        flex-direction: row;
    }

    .info-block--reverse {
        flex-direction: row-reverse;
    }
}

/* Detail Card */
.detail-card {
    background: var(--color-bg-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.detail-card__list-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-card__icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Booking Widget */
.booking-widget {
    background: var(--color-bg-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    min-height: 200px;
}

.booking-widget__placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    color: var(--color-text-light);
    font-style: italic;
    background: #f9f9f9;
    border-radius: var(--radius-sm);
}

/* Testimonials */
.testimonial-card {
    background: var(--color-bg-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-card__stars {
    color: #F59E0B;
    margin-bottom: var(--space-sm);
}

.testimonial-card__text {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-card__author {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* Extension v1.3: WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* Extension v1.3: Sticky Mobile Bar */
.sticky-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    display: flex;
    /* Flex layout */
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-mobile__btn {
    flex: 1;
    /* 50% width if 2 buttons, 100% if 1 */
    text-align: center;
    padding: 15px 0;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
}

.sticky-mobile__btn--call {
    background-color: #f4f4f4;
    color: #333;
}

.sticky-mobile__btn--book {
    background-color: var(--color-primary);
    color: #fff;
}

.sticky-mobile__btn--full {
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .whatsapp-float {
        bottom: 40px;
        right: 40px;
    }

    .sticky-mobile {
        display: none;
        /* Hidden on Desktop */
    }
}