/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Theme Colors */
    --primary: #FF6B00;       /* Vibrant Orange */
    --primary-dark: #E65100;  /* Deep Orange */
    --secondary: #FFFFFF;     /* Pure White */
    --tertiary: #000000;      /* Deep Black */
    
    /* UI Colors */
    --bg-light: #F9F9F9;      /* Off-white for section contrast */
    --text-main: #111111;
    --text-muted: #555555;
    --wa-green: #25D366;
    
    /* Shapes & Shadows */
    --border-radius: 6px;
    --modal-radius: 16px;
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(255, 107, 0, 0.15);
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

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

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--secondary); 
    color: var(--text-main); 
    line-height: 1.7; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}

h1, h2, h3, h4, .logo { 
    font-family: 'Playfair Display', serif; 
}

/* =========================================
   LAYOUT & TYPOGRAPHY
   ========================================= */
.container { 
    width: 100%; 
    max-width: 1140px; 
    margin: auto; 
    padding: 0 1.5rem; 
}

.section-padding { 
    padding: 6rem 0; 
}

.section-title { 
    text-align: center; 
    font-size: clamp(2.2rem, 5vw, 3rem); 
    color: var(--tertiary); 
    margin-bottom: 1rem; 
    font-weight: 700; 
}

.section-subtitle { 
    text-align: center; 
    color: var(--text-muted); 
    margin-bottom: 3.5rem; 
    font-size: clamp(0.95rem, 3vw, 1.1rem); 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
}

.bg-gray { 
    background-color: var(--bg-light); 
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(8px); 
    border-bottom: 2px solid var(--primary); 
    height: 75px; 
    display: flex; 
    align-items: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: var(--tertiary); 
    text-decoration: none; 
    letter-spacing: 0.5px; 
    z-index: 1001; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.logo i { 
    color: var(--primary); 
}

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
}

.nav-links a { 
    color: var(--tertiary); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: color 0.3s; 
}

.nav-links a:hover { 
    color: var(--primary); 
}

.btn-nav-call { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--secondary); 
    background: var(--tertiary); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 0.9rem; 
    padding: 10px 20px; 
    border-radius: var(--border-radius); 
    transition: all 0.3s ease; 
    z-index: 1001; 
}

.btn-nav-call:hover { 
    background: var(--primary); 
    color: var(--secondary); 
}

.hamburger { 
    display: none; 
    cursor: pointer; 
    z-index: 1001; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    color: var(--tertiary); 
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero { 
    height: 100vh; 
    min-height: 700px; 
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), url('https://andamankasa.com/assets/images/hero-bg.jpg') center/cover; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--secondary); 
    padding-top: 75px; 
}

.hero h1 { 
    font-size: clamp(2.8rem, 8vw, 5rem); 
    font-weight: 700; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    letter-spacing: 1px; 
}

.hero h1 span { 
    color: var(--primary); 
}

.hero p { 
    font-size: clamp(1rem, 4vw, 1.2rem); 
    font-weight: 300; 
    max-width: 600px; 
    margin: 0 auto 3rem auto; 
    opacity: 0.9; 
}

.hero-btn { 
    display: inline-block; 
    background: var(--primary); 
    color: var(--secondary); 
    padding: 14px 32px; 
    text-decoration: none; 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    border-radius: var(--border-radius); 
    transition: transform 0.3s, background 0.3s; 
}

.hero-btn:hover { 
    background: var(--tertiary); 
    transform: translateY(-3px); 
    color: var(--secondary); 
}

/* =========================================
   QUOTE BUILDER FORM
   ========================================= */
.quote-wrapper { 
    margin-top: -120px; 
    position: relative; 
    z-index: 10; 
    padding: 0 1.5rem; 
}

.quote-builder { 
    background: var(--secondary); 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-subtle); 
    padding: clamp(2rem, 5vw, 4rem); 
    max-width: 1000px; 
    margin: 0 auto; 
    border-top: 4px solid var(--primary); 
}

.form-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 2rem; 
}

.input-group { 
    display: flex; 
    flex-direction: column; 
}

.input-group label { 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: var(--tertiary); 
    margin-bottom: 8px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}

.input-group input, .input-group select, .input-group textarea { 
    padding: 12px 0; 
    border: none; 
    border-bottom: 1px solid #DDDDDD; 
    font-size: 1rem; 
    background-color: transparent; 
    outline: none; 
    transition: border-color 0.3s; 
    font-family: 'Poppins', sans-serif; 
    color: var(--text-main); 
    border-radius: 0; 
    -webkit-appearance: none; 
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus { 
    border-bottom: 2px solid var(--primary); 
}

.btn-submit-quote { 
    width: 100%; 
    background: var(--tertiary); 
    color: var(--secondary); 
    border: none; 
    padding: 16px; 
    font-size: 1rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-radius: var(--border-radius); 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    transition: 0.3s; 
    margin-top: 1rem; 
}

.btn-submit-quote:hover { 
    background: var(--primary); 
}

/* =========================================
   SERVICES SECTION & LOCATIONS GRID
   ========================================= */
.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 2rem; 
}

.service-card {
    background: var(--secondary);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-subtle);
    border: 1px solid #EEEEEE;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--tertiary);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   LOCATIONS & ACTIVITIES (DEST CARDS)
   ========================================= */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2.5rem; 
}

.dest-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-subtle);
    transition: box-shadow 0.4s ease;
}

.dest-card:hover { 
    box-shadow: var(--shadow-hover); 
}

.dest-card img {
    width: 100%;
    height: 300px; 
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.dest-card:hover img {
    transform: scale(1.05);
}

.dest-overlay {
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 3rem 1.5rem 1.5rem; 
    color: var(--secondary);
}

.dest-overlay h3 { 
    font-size: 1.4rem; 
    margin-bottom: 5px; 
    font-weight: 400; 
    color: var(--secondary);
}

.dest-overlay p { 
    font-size: 0.85rem; 
    font-weight: 300; 
    letter-spacing: 0.5px; 
    opacity: 0.9; 
    color: #DDDDDD;
}

/* =========================================
   PACKAGE CARDS
   ========================================= */
.package-card { 
    background: var(--secondary); 
    padding: 2.5rem 2rem; 
    box-shadow: var(--shadow-subtle); 
    border: 1px solid #EEEEEE; 
    border-radius: var(--border-radius); 
    transition: transform 0.4s, box-shadow 0.4s; 
    display: flex; 
    flex-direction: column; 
}

.package-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--primary); 
}

.pkg-category { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 5px; 
    display: block; 
}

.pkg-duration { 
    display: inline-block; 
    color: var(--secondary); 
    background: var(--primary); 
    padding: 4px 12px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 1.5rem; 
    border-radius: 20px; 
    align-self: flex-start; 
}

.package-card h3 { 
    font-size: 1.6rem; 
    margin-bottom: 1rem; 
    color: var(--tertiary); 
}

.pkg-summary { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-bottom: 1.5rem; 
    flex-grow: 1; 
}

.pkg-summary strong { 
    color: var(--tertiary); 
}

.card-actions { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-top: auto; 
}

.btn-outline { 
    display: block; 
    text-align: center; 
    background: transparent; 
    color: var(--tertiary); 
    border: 2px solid var(--tertiary); 
    padding: 10px 0; 
    text-decoration: none; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    transition: all 0.3s; 
    border-radius: var(--border-radius); 
    cursor: pointer; 
    width: 100%; 
}

.btn-outline:hover { 
    background: var(--tertiary); 
    color: var(--secondary); 
}

.btn-solid { 
    display: block; 
    text-align: center; 
    background: var(--primary); 
    color: var(--secondary); 
    border: 2px solid var(--primary); 
    padding: 10px 0; 
    text-decoration: none; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    transition: all 0.3s; 
    border-radius: var(--border-radius); 
    cursor: pointer; 
    width: 100%; 
}

.btn-solid:hover { 
    background: var(--primary-dark); 
    border-color: var(--primary-dark); 
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-wrap { 
    background: var(--secondary); 
    box-shadow: var(--shadow-subtle); 
    border-radius: var(--border-radius); 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    overflow: hidden; 
    border: 1px solid #EEEEEE; 
}

.contact-content { 
    padding: clamp(2rem, 5vw, 4rem); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.contact-details p { 
    margin-bottom: 1.5rem; 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    font-size: 0.95rem; 
    color: var(--text-muted); 
}

.contact-details i { 
    color: var(--primary); 
    margin-top: 4px; 
    font-size: 1.2rem; 
}

.map-frame { 
    min-height: 400px; 
    width: 100%; 
    height: 100%; 
    border: none; 
    display: block; 
}

/* =========================================
   MEGA FOOTER
   ========================================= */
.site-footer { 
    background: var(--tertiary); 
    color: var(--secondary); 
    padding: 5rem 1.5rem 6rem; 
    font-size: 0.9rem; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 3rem; 
    text-align: left; 
    margin-bottom: 3rem; 
}

.footer-brand h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2rem; 
    color: var(--secondary); 
    margin-bottom: 1rem; 
}

.footer-brand p { 
    color: #AAAAAA; 
    font-size: 0.9rem; 
    line-height: 1.6;
}

.footer-links h4 { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.2rem; 
    color: var(--primary); 
    margin-bottom: 1.5rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.footer-links ul { 
    list-style: none; 
    padding: 0; 
}

.footer-links li { 
    margin-bottom: 0.8rem; 
}

.footer-links a { 
    color: #CCCCCC; 
    text-decoration: none; 
    transition: color 0.3s ease, padding-left 0.3s ease; 
}

.footer-links a:hover { 
    color: var(--primary); 
    padding-left: 5px; 
}

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 2rem; 
    text-align: center; 
    color: #888888; 
    font-size: 0.85rem; 
}

.footer-bottom .designer { 
    color: var(--primary); 
    font-weight: 600; 
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.float-wa { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    background-color: var(--wa-green); 
    color: var(--secondary); 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.8rem; 
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); 
    z-index: 900; 
    transition: transform 0.3s; 
}

.float-wa:hover { 
    transform: scale(1.1); 
    color: var(--secondary); 
}

/* =========================================
   MODAL (TIMELINE UI) - TABLET/MOBILE OPTIMIZED
   ========================================= */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 2000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.4s ease; 
    backdrop-filter: blur(8px); 
}

.modal-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

.modal-content { 
    background: var(--bg-light); 
    width: 90%; 
    max-width: 600px; 
    /* Uses dynamic viewport height for tablets, falls back to vh */
    max-height: 85vh; 
    max-height: 85dvh; 
    border-radius: var(--modal-radius); 
    position: relative; 
    transform: scale(0.95) translateY(20px); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; 
    flex-direction: column; 
    box-shadow: var(--shadow-modal); 
    overflow: hidden; 
}

.modal-overlay.active .modal-content { 
    transform: scale(1) translateY(0); 
}

.modal-header { 
    padding: 1.5rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--tertiary); 
    color: var(--secondary); 
    flex-shrink: 0; 
}

.modal-header h3 { 
    font-size: 1.4rem; 
    margin: 0; 
    font-family: 'Playfair Display', serif; 
    letter-spacing: 0.5px; 
}

.close-modal { 
    background: rgba(255,255,255,0.1); 
    border: none; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.2rem; 
    color: var(--secondary); 
    cursor: pointer; 
    transition: all 0.2s; 
}

.close-modal:hover { 
    background: var(--primary); 
    transform: rotate(90deg); 
}

.modal-body { 
    padding: 2rem; 
    overflow-y: auto; 
    flex: 1 1 auto; 
    min-height: 0;  
    background: var(--secondary); 
    -webkit-overflow-scrolling: touch; 
}

.timeline-container { 
    position: relative; 
    padding-left: 2rem; 
}

.timeline-container::before { 
    content: ''; 
    position: absolute; 
    left: 5px; 
    top: 10px; 
    bottom: 0; 
    width: 2px; 
    background: #EEEEEE; 
}

.timeline-item { 
    position: relative; 
    margin-bottom: 2.5rem; 
}

.timeline-item:last-child { 
    margin-bottom: 1rem; 
}

.timeline-item::before { 
    content: ''; 
    position: absolute; 
    left: -2rem; 
    top: 5px; 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background: var(--primary); 
    border: 3px solid var(--secondary); 
    box-shadow: 0 0 0 3px rgba(255,107,0,0.2); 
    z-index: 2; 
}

.timeline-item h4 { 
    display: inline-block; 
    background: var(--bg-light); 
    color: var(--primary); 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 0.8rem; 
}

.timeline-item p { 
    font-size: 0.95rem; 
    color: var(--text-main); 
    margin:0; 
    line-height: 1.6; 
    font-weight: 400;
}

.modal-footer { 
    padding: 1.5rem 2rem; 
    text-align: center; 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(5px); 
    border-top: 1px solid #EEEEEE; 
    flex-shrink: 0; 
    z-index: 10; 
}

.modal-footer .btn-solid { 
    width: 100%; 
    padding: 14px 0; 
    font-size: 0.9rem; 
    border-radius: var(--border-radius); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px;
}

.modal-footer .btn-solid i { 
    font-size: 1.2rem; 
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 1024px) {
    .hamburger { 
        display: block; 
    }
    
    .nav-links { 
        position: fixed; 
        top: 75px; 
        left: -100%; 
        width: 100%; 
        height: calc(100vh - 75px); 
        background: var(--secondary); 
        flex-direction: column; 
        justify-content: flex-start; 
        padding-top: 3rem; 
        gap: 2.5rem; 
        transition: left 0.4s ease; 
        border-top: 1px solid #EEEEEE; 
    }
    
    .nav-links.active { 
        left: 0; 
    }
    
    .btn-nav-call span { 
        display: none; 
    }
    
    .btn-nav-call { 
        padding: 10px 14px; 
        border-radius: 50%; 
    }
    
    .card-actions { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 768px) {
    .section-padding { 
        padding: 4rem 0; 
    }
    
    .quote-wrapper { 
        margin-top: 0; 
        padding: 2rem 1rem; 
        background: var(--bg-light); 
    }
    
    .quote-builder { 
        border-top: none; 
        padding: 2rem 1.5rem; 
    }
    
    .hero { 
        min-height: 60vh; 
        padding-top: 100px; 
        padding-bottom: 40px; 
        height: auto; 
    }
    
    .contact-wrap { 
        margin: 0; 
        border-radius: 0; 
        border-left: none; 
        border-right: none; 
    }
    
    .map-frame { 
        min-height: 300px; 
    }
    
    .float-wa { 
        bottom: 20px; 
        right: 20px; 
        width: 55px; 
        height: 55px; 
        font-size: 1.5rem; 
    }
    
    /* Mobile Modal Fixes (Bottom-Sheet Style) */
    .modal-content { 
        width: 100%; 
        height: 100%; 
        max-height: 100vh; 
        max-height: 100dvh; 
        border-radius: 0; 
        transform: translateY(100%); 
    }
    
    .modal-overlay.active .modal-content { 
        transform: translateY(0); 
    }
    
    .modal-header { 
        padding: 1.2rem 1.5rem; 
    }
    
    .modal-body { 
        padding: 1.5rem; 
    }
    
    .modal-footer { 
        padding: 1rem 1.5rem; 
        padding-bottom: calc(1rem + env(safe-area-inset-bottom)); 
    }
}