/* Custom Styles for Topi Trails Website - Mobile First */

/* Base Mobile Styles */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for mobile */
}

body {
    font-size: 1rem;
    line-height: 1.6;
}

/* Touch-friendly minimum sizes (44x44px recommended) */
button,
a[role="button"],
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* Mobile-first responsive typography */
h1 {
    font-size: 2rem; /* 32px on mobile */
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem; /* 28px on mobile */
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem; /* 24px on mobile */
    line-height: 1.4;
}

/* Tablet and up */
@media (min-width: 640px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.5rem; /* 40px */
    }
    
    h2 {
        font-size: 2rem; /* 32px */
    }
    
    h3 {
        font-size: 1.75rem; /* 28px */
    }
}

/* Desktop */
@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 3rem; /* 48px */
    }
    
    h2 {
        font-size: 2.5rem; /* 40px */
    }
    
    h3 {
        font-size: 2rem; /* 32px */
    }
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-in;
}

.animate-blob {
    animation: blob 7s infinite;
}

/* Selection Color */
::selection {
    background-color: rgb(253 230 138);
    color: rgb(28 25 23);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: rgb(217 119 6);
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Service Card Hover Effects */
.group:hover .group-hover\:opacity-100 {
    transition: opacity 0.3s ease-in-out;
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    backdrop-filter: blur(10px);
}

/* WhatsApp Button Pulse */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Floating Action Buttons - Mobile First */
#topi-toggle,
a[href*="wa.me"] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile positioning - removed conflicting positioning, using Tailwind classes instead */
/* Desktop hover effects */
@media (min-width: 1024px) {
    #topi-toggle:hover,
    a[href*="wa.me"]:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px) scale(1.05);
    }
}

/* WhatsApp Icon Animation */
a[href*="wa.me"]:hover svg {
    animation: bounce 0.6s ease-in-out;
}

/* Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mobile Menu Improvements */
#mobile-menu {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu a,
#mobile-menu button {
    padding: 0.875rem 1rem; /* 14px 16px - touch friendly */
    font-size: 1rem;
}

/* Form Inputs - Mobile First */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
    min-height: 44px;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

/* Calendar and Date Picker - Mobile */
.calendar-month {
    width: 100%;
}

.calendar-day {
    min-width: 40px;
    min-height: 40px;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .calendar-day {
        min-width: 44px;
        min-height: 44px;
        font-size: 1rem;
    }
}

/* Search Bar - Mobile First */
.airbnb-search-bar {
    width: 100%;
    flex-direction: column;
}

@media (min-width: 768px) {
    .airbnb-search-bar {
        flex-direction: row;
    }
}

/* Chatbot - Mobile First */
#topi-chatbot {
    width: calc(100vw - 2rem);
    max-width: 100%;
    height: calc(100vh - 8rem);
    max-height: 600px;
    bottom: 5.5rem;
    right: 1rem;
}

@media (min-width: 640px) {
    #topi-chatbot {
        width: 24rem; /* 384px */
        right: 1.5rem;
    }
}

/* Hero Section - Mobile First */
#home {
    min-height: 100vh;
    height: 100vh;
    padding-top: 4rem;
}

/* Image Carousel - Mobile */
.image-carousel-container {
    width: 100%;
    height: 100%;
}

.carousel-nav-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
}

/* Service Cards - Mobile First */
.service-card {
    width: 100%;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .service-card {
        width: calc(50% - 0.75rem);
    }
}

@media (min-width: 1024px) {
    .service-card {
        width: calc(25% - 0.75rem);
    }
}

/* Grid Improvements - Mobile First */
.grid-responsive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Spacing - Mobile First */
.section-padding {
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .section-padding {
        padding: 4rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 6rem 2rem;
    }
}

/* Print Styles */
@media print {
    .fixed {
        display: none;
    }
}

