:root {
    --purple: #5B2C8D;
    --purple-dark: #3E1B66;
    --yellow: #FFC107;
    --pink: #FF5E7E;
    --teal: #00B8A9;
    --wa-green: #25D366;
    --wa-dark: #075E54;
    --bg: #FFFDF7;
    --text: #2D243B;
    --muted: #665B7A;
    --radius: 18px;
    --shadow: 0 14px 36px rgba(91, 44, 141, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-title, .time-card span {
    font-family: 'Fredoka', sans-serif;
}

.container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

/* Floating Playful Background Shapes */
.bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.shape {
    position: absolute;
    opacity: 0.12;
    font-size: 3rem;
    animation: floatShape 9s ease-in-out infinite;
}
.s1 { top: 12%; left: 4%; color: var(--yellow); }
.s2 { top: 28%; right: 6%; color: var(--pink); animation-delay: 2s; }
.s3 { bottom: 22%; left: 7%; color: var(--teal); animation-delay: 4s; }
.s4 { top: 55%; right: 12%; color: var(--purple); font-size: 4rem; animation-delay: 1s; }
.s5 { bottom: 10%; right: 30%; color: var(--yellow); animation-delay: 3s; }

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(12deg); }
}

/* Top Bar */
.top-bar {
    background: var(--purple);
    color: #fff;
    font-size: 0.88rem;
    padding: 10px 0;
    position: relative;
    z-index: 10;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-links {
    display: flex;
    gap: 18px;
}
.top-links a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 700;
}
.top-links a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 2;
    padding: 48px 0 64px;
    background: radial-gradient(circle at top left, #f5ebff 0%, #fffdf7 55%, #fff6e0 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 40px;
    align-items: center;
}
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #ecdfff;
    color: var(--purple);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.7px;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.badge-dot {
    width: 9px;
    height: 9px;
    background: var(--pink);
    border-radius: 50%;
}
.brand-title {
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1.12;
    margin-bottom: 14px;
}
.brand-title .purple {
    color: var(--purple);
    display: block;
}
.brand-title .highlight {
    color: var(--pink);
}
.hero-subtitle {
    font-size: 1.08rem;
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 540px;
}

/* Countdown Timer */
.countdown-wrapper {
    background: #fff;
    border: 2px dashed #d8bdf7;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.countdown-label {
    font-weight: 800;
    color: var(--purple);
    font-size: 0.95rem;
    margin-bottom: 14px;
    text-align: center;
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.time-card {
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    color: #fff;
}
.time-card span {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
}
.time-card small {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    opacity: 0.95;
}
.c-purple { background: linear-gradient(135deg, #6e35ab, #4e227d); }
.c-yellow { background: linear-gradient(135deg, #ffb300, #f57c00); }
.c-pink   { background: linear-gradient(135deg, #ff5e7e, #e03e63); }
.c-teal   { background: linear-gradient(135deg, #00c4b4, #008f84); }

.launch-date-pill {
    margin-top: 14px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--purple-dark);
    background: #f6eeff;
    padding: 6px 12px;
    border-radius: 999px;
}

/* Buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 8px 20px rgba(91, 44, 141, 0.28);
}
.btn-whatsapp {
    background: var(--wa-green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

/* Inquiry Form Card */
.hero-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 3px solid var(--yellow);
    position: relative;
}
.card-ribbon {
    display: inline-block;
    background: var(--yellow);
    color: var(--purple-dark);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.hero-card h2 {
    color: var(--purple);
    font-size: 1.55rem;
    margin-bottom: 4px;
}
.form-intro {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 18px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-group {
    margin-bottom: 13px;
}
.form-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #dfd4ee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: #fcfaff;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: #fff;
}
.hp-field {
    display: none;
}
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    padding: 14px;
    font-size: 1rem;
    margin-top: 4px;
}
.form-response {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}
.form-response.success {
    background: #e7f9ee;
    color: #126b36;
    border: 1px solid #9be3b7;
}
.form-response.error {
    background: #ffecee;
    color: #a81c2b;
    border: 1px solid #f7a8b1;
}

/* Highlights Section */
.highlights {
    padding: 56px 0;
    position: relative;
    z-index: 2;
}
.section-heading {
    text-align: center;
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 32px;
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hl-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--purple);
    transition: transform 0.2s ease;
}
.hl-card:nth-child(2) { border-top-color: var(--yellow); }
.hl-card:nth-child(3) { border-top-color: var(--pink); }
.hl-card:nth-child(4) { border-top-color: var(--teal); }
.hl-card:hover { transform: translateY(-5px); }
.hl-icon { font-size: 2.2rem; margin-bottom: 10px; }
.hl-card h3 { color: var(--purple-dark); margin-bottom: 8px; font-size: 1.15rem; }
.hl-card p { font-size: 0.9rem; color: var(--muted); }

/* Location & Google Map */
.location-section {
    padding: 20px 0 70px;
    position: relative;
    z-index: 2;
}
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    align-items: stretch;
}
.contact-card {
    background: var(--purple);
    color: #fff;
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--shadow);
}
.contact-card h2 {
    font-size: 1.7rem;
    color: var(--yellow);
    margin-bottom: 6px;
}
.contact-lead {
    opacity: 0.9;
    margin-bottom: 22px;
}
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.c-icon {
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.14);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.contact-list strong {
    display: block;
    font-size: 0.85rem;
    color: var(--yellow);
}
.contact-list a {
    color: #fff;
    text-decoration: none;
}
.contact-list a:hover {
    text-decoration: underline;
}
.map-card {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid #e9dcfa;
    min-height: 360px;
}
.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

/* Footer */
.site-footer {
    background: var(--purple-dark);
    color: #e6dcf5;
    text-align: center;
    padding: 24px 0;
    font-size: 0.9rem;
}
.footer-sub {
    font-size: 0.82rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* WhatsApp Floating Button & Chatbot */
.wa-float-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa-green);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
    z-index: 998;
    display: grid;
    place-items: center;
    font-size: 1.65rem;
}
.wa-badge {
    position: absolute;
    top: -3px;
    right: -2px;
    background: var(--pink);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.wa-chatbox {
    position: fixed;
    bottom: 92px;
    right: 22px;
    width: 360px;
    max-width: calc(100vw - 28px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    z-index: 999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    pointer-events: none;
    transition: all 0.3s ease;
}
.wa-chatbox.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.wa-header {
    background: var(--wa-dark);
    color: #fff;
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wa-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--purple-dark);
    font-weight: 800;
    display: grid;
    place-items: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
}
.wa-title {
    font-weight: 800;
    font-size: 0.94rem;
}
.wa-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}
.online-dot {
    width: 8px;
    height: 8px;
    background: #4dff88;
    border-radius: 50%;
}
.wa-header-actions {
    display: flex;
    gap: 6px;
}
.wa-icon-btn {
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
}
.wa-messages {
    background: #ece5dd;
    padding: 14px;
    height: 215px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wa-msg {
    max-width: 88%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.wa-msg.bot {
    background: #fff;
    align-self: flex-start;
    border-top-left-radius: 3px;
}
.wa-msg.user {
    background: #dcf8c6;
    align-self: flex-end;
    border-top-right-radius: 3px;
}
.wa-quick-wrap {
    padding: 10px 12px;
    background: #f7f7f7;
    border-top: 1px solid #e4e4e4;
}
.wa-quick-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 7px;
}
.wa-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 118px;
    overflow-y: auto;
}
.wa-q-btn {
    background: #fff;
    border: 1px solid #cde9d6;
    color: var(--wa-dark);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 999px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.wa-q-btn:hover {
    background: #e3f9eb;
}
.wa-footer {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #eee;
}
.wa-continue-btn {
    display: block;
    text-align: center;
    background: var(--wa-green);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 10px;
    border-radius: 10px;
}

/* =========================================================
   DEVICE-FRIENDLY RESPONSIVE MEDIA QUERIES
   (Desktop • Laptop • Tablet • Smartphone • Small Mobile)
========================================================= */

/* 1. Large Desktops & Wide Monitors (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
    .hero {
        padding: 64px 0 80px;
    }
    .hero-grid {
        gap: 54px;
    }
}

/* 2. Standard Laptops & Small Desktops (1024px to 1199px) */
@media (max-width: 1199px) {
    .container {
        width: 94%;
    }
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 28px;
    }
    .highlights-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    .hero-card {
        padding: 24px;
    }
}

/* 3. Tablets - Portrait & Landscape (768px to 1023px) */
@media (max-width: 1023px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
        gap: 6px;
    }
    .hero {
        padding: 36px 0 52px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .location-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .map-card,
    .map-card iframe {
        min-height: 340px;
    }
}

/* 4. Smartphones - Standard & Large (481px to 767px) */
@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
    .top-bar {
        font-size: 0.8rem;
        padding: 8px 0;
    }
    .top-bar-inner {
        flex-direction: column;
        gap: 4px;
    }
    .brand-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.98rem;
    }
    .countdown-wrapper {
        padding: 16px 12px;
    }
    .countdown-grid {
        gap: 8px;
    }
    .time-card {
        padding: 12px 6px;
        border-radius: 12px;
    }
    .time-card span {
        font-size: 1.55rem;
    }
    .time-card small {
        font-size: 0.68rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-card {
        padding: 22px 18px;
        border-radius: 18px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    /* Prevents iOS Safari auto-zoom on input focus */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    .highlights {
        padding: 40px 0;
    }
    .section-heading {
        font-size: 1.65rem;
        margin-bottom: 24px;
    }
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .contact-card {
        padding: 24px 20px;
    }
    .map-card,
    .map-card iframe {
        min-height: 300px;
    }
    /* WhatsApp Chatbot Mobile Fit */
    .wa-float-btn {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
        font-size: 1.45rem;
    }
    .wa-chatbox {
        right: 12px;
        left: 12px;
        bottom: 80px;
        width: auto;
        max-width: none;
    }
    .wa-messages {
        height: 185px;
    }
}

/* 5. Small Smartphones (320px to 480px) */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .brand-badge {
        font-size: 0.7rem;
        padding: 6px 11px;
    }
    .brand-title {
        font-size: 1.72rem;
    }
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .launch-date-pill {
        font-size: 0.78rem;
    }
    .hero-card h2 {
        font-size: 1.35rem;
    }
    .contact-card h2 {
        font-size: 1.4rem;
    }
    .wa-messages {
        height: 160px;
    }
    .wa-questions {
        max-height: 105px;
    }
}

/* 6. Mobile Landscape Mode (Short Viewport Height) */
@media (max-height: 540px) and (orientation: landscape) {
    .wa-chatbox {
        bottom: 72px;
        max-height: calc(100vh - 88px);
    }
    .wa-messages {
        height: 110px;
    }
    .wa-questions {
        max-height: 75px;
    }
}

/* =========================================================
   FIX: PREVENT HORIZONTAL OVERFLOW ON MOBILE (.contact-card)
========================================================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.location-section,
.location-grid,
.contact-card,
.map-card {
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Critical: allows CSS Grid items to shrink below content width */
}

.contact-list li {
    width: 100%;
    min-width: 0;
}

.contact-list li > div {
    flex: 1;
    min-width: 0; /* Critical: allows Flex text container to wrap long emails/URLs */
}

.contact-list p,
.contact-list a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 767px) {
    .contact-card {
        padding: 20px 16px;
    }
    .contact-list li {
        gap: 10px;
    }
    .c-icon {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
    }
}