/* ========================================
   TOROI KOAT SURFCAMP - OPTIMIZED CUSTOM CSS
   Mobile-First Responsive Framework v2.0
   ======================================== */

:root {
    --primary-orange: #F1682B;
    --primary-orange-hover: #d95a23;
    --brand-accent: #F1682B;
    --wa-green: #25D366;
    --text-primary: #111827;
    --text-secondary: #555555;
    --text-muted: #888888;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --border-light: #E5E5E5;
    --black: #000000;
    --transition-fast: 300ms;
    --transition-base: 500ms;
    --transition-slow: 700ms;
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ANIMATION LIBRARY - KEYFRAMES
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   ANIMATION UTILITY CLASSES
   ======================================== */

.animate-fade-in { animation: fadeIn var(--transition-fast) ease-out forwards; }
.animate-slide-up { animation: slideUp var(--transition-base) var(--ease-out) forwards; }
.animate-slide-down { animation: slideDown var(--transition-base) var(--ease-out) forwards; }
.animate-slide-left { animation: slideLeft var(--transition-base) var(--ease-out) forwards; }
.animate-slide-right { animation: slideRight var(--transition-base) var(--ease-out) forwards; }
.animate-scale-in { animation: scaleIn var(--transition-base) var(--ease-out) forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }

/* ========================================
   RESPONSIVE TYPOGRAPHY - MOBILE FIRST
   ======================================== */

h1 { font-family: 'Phudu', sans-serif; font-size: 1.75rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
@media (min-width: 640px) { h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { h1 { font-size: 3rem; } }
@media (min-width: 1024px) { h1 { font-size: 3.75rem; } }

h2 { font-family: 'Phudu', sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 640px) { h2 { font-size: 2rem; } }
@media (min-width: 768px) { h2 { font-size: 2.5rem; } }
@media (min-width: 1024px) { h2 { font-size: 3rem; } }

h3 { font-family: 'Phudu', sans-serif; font-size: 1.125rem; font-weight: 600; }
@media (min-width: 640px) { h3 { font-size: 1.25rem; } }

h4, h5, h6 { font-family: 'Josefin Sans', sans-serif; font-weight: 600; }

p { line-height: 1.7; margin-bottom: 1rem; }

/* ========================================
   RESPONSIVE SECTIONS - MOBILE FIRST
   ======================================== */

section { padding: 2rem 1rem; }
@media (min-width: 640px) { section { padding: 3rem 1.5rem; } }
@media (min-width: 768px) { section { padding: 4rem 2rem; } }
@media (min-width: 1024px) { section { padding: 6rem 2rem; } }

/* ========================================
   INTERACTIVE ELEMENTS
   ======================================== */

button, [role="button"], a[href*="wa.me"] {
    transition: all var(--transition-fast) var(--ease-out);
    cursor: pointer;
}

button:hover, [role="button"]:hover, a[href*="wa.me"]:hover {
    transform: translateY(-2px);
}

button:active, [role="button"]:active, a[href*="wa.me"]:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    button, [role="button"], a.interactive {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========================================
   REUSABLE SWIPER NAVIGATION BUTTONS
   ======================================== */
.nav-btn-prev, .nav-btn-next {
    width: 40px;
    height: 40px;
    background-color: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background-color var(--transition-fast);
}

.nav-btn-prev:hover, .nav-btn-next:hover {
    background-color: #222;
}

.nav-btn-prev i, .nav-btn-next i {
    font-size: 14px;
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

.card-base {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all var(--transition-base) var(--ease-out);
}

@media (min-width: 640px) {
    .card-base { border-radius: 1rem; padding: 1.5rem; }
}

@media (min-width: 1024px) {
    .card-base { border-radius: 1.25rem; padding: 2rem; }
}

.card-base:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SHADOW UTILITIES
   ======================================== */

.shadow-sm { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); }
.shadow-md { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); }

/* ========================================
   NAVIGATION STYLES
   ======================================== */

nav a {
    position: relative;
    font-weight: 600;
    transition: all var(--transition-fast) var(--ease-out);
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-orange), var(--brand-accent));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-orange-hover), #d95a23);
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ========================================
   SWIPER CUSTOMIZATION
   ======================================== */

.swiper-pagination-bullet {
    background-color: rgba(241, 104, 43, 0.3);
    transition: all var(--transition-fast) var(--ease-out);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-orange);
    width: 24px;
    border-radius: 4px;
}

.reviewsSwiper { padding-bottom: 3rem; }

.reviewsSwiper .swiper-pagination {
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.reviewsSwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    margin: 0 !important;
    background-color: rgba(241, 104, 43, 0.25);
    opacity: 1;
    border-radius: 9999px;
    transition: all var(--transition-fast) var(--ease-out);
}

.reviewsSwiper .swiper-pagination-bullet-active {
    width: 24px;
    height: 8px;
    min-width: 24px;
    min-height: 8px;
    background-color: var(--primary-orange);
    border-radius: 9999px;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all var(--transition-fast) var(--ease-out);
}

.faq-item.active {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(241, 104, 43, 0.08);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows var(--transition-fast) var(--ease-out),
        opacity var(--transition-fast) var(--ease-out),
        visibility var(--transition-fast) var(--ease-out);
}

.faq-answer>div { overflow: hidden; }

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ========================================
   TAB & COMPONENT STYLES
   ======================================== */

.fade-in-tab {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-base) ease-out, transform var(--transition-base) ease-out;
}

.fade-in-tab.active {
    opacity: 1;
    transform: translateY(0);
}

.review-card {
    transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    .review-card { border-radius: 1.5rem; }
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.platform-card {
    transition: all var(--transition-fast) var(--ease-out);
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    .platform-card { border-radius: 1rem; }
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-orange);
}

/* ========================================
   CARD HOVER EFFECTS
   ======================================== */

.package-card {
    transition: all var(--transition-base) var(--ease-out);
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    .package-card { border-radius: 1rem; }
}

@media (min-width: 1024px) {
    .package-card { border-radius: 1.25rem; }
}

.package-card:hover {
    transform: translateY(-16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.contact-card-hover {
    transition: all var(--transition-fast) var(--ease-out);
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    .contact-card-hover { border-radius: 1rem; }
}

.contact-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-orange);
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-input {
    transition: all var(--transition-fast) ease;
    border-radius: 0.5rem;
}

.form-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(241, 104, 43, 0.1);
    outline: none;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE IMAGE OPTIMIZATION
   ======================================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ========================================
   RESPONSIVE DISPLAY HELPERS
   ======================================== */

@media (max-width: 767px) {
    .hidden-mobile { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hidden-tablet { display: none !important; }
}

@media (min-width: 1024px) {
    .hidden-desktop { display: none !important; }
}

/* ========================================
   RESPONSIVE HARDENING - MOBILE & TABLET
   ======================================== */

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

img, iframe, video, svg {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p, a, span, li, blockquote {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ===== MOBILE (<= 640px) ===== */
@media (max-width: 640px) {

    #why-us .absolute.top-0 { height: 40%; }

    section.relative.min-h-screen .max-w-\[1400px\] { gap: 0.75rem; }

    #surf-packages .package-card { min-height: 18rem; }

    .reviewsSwiper .swiper-slide,
    .whyUsSwiper .swiper-slide,
    .learnMoreSwiper .swiper-slide,
    .heroCategorySwiper .swiper-slide,
    .roomsSwiper .swiper-slide,
    .mealsSwiper .swiper-slide,
    .boatsSwiper .swiper-slide,
    .bathroomsSwiper .swiper-slide,
    .facilitiesSwiper .swiper-slide {
        height: auto;
    }

    footer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        text-align: left;
    }
}

/* ===== TABLET (641px - 1023px) ===== */
@media (min-width: 641px) and (max-width: 1023px) {

    section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #experience .lg\:w-1\/2 {
        margin-left: auto;
        margin-right: auto;
    }

    #the-rooms .max-w-\[600px\] {
        max-width: 100%;
    }

    #surf-packages .package-card {
        min-height: 24rem;
    }
}

/* ===== SMALL TABLET / LARGE PHONE (max 767px) ===== */
@media (max-width: 767px) {

    #the-package { background-attachment: scroll !important; }

    footer .min-w-\[150px\] { min-width: 130px; }
}