/* style.css */
:root {
    --bg-dark: #080D14;
    --bg-card: #0D1924;
    --warm-white: #F4F6F6;
    --muted: #93A5B5;
    --terracotta-main: #C85A32;
    --terracotta-dark: #873618;
    --sky-blue: #2C9EE5;
    --teal: #00A29A;

    --font-heading: 'Merriweather', serif;
    --font-body: 'DM Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--sky-blue);
    color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero {
    position: relative;
    width: 100%;
    height: 1192px;
    background-color: var(--sky-blue);
    background-image: url('Assets/hero.webp'), linear-gradient(135deg, var(--sky-blue) 0%, var(--teal) 100%);
    background-size: 100% auto, 100% 100%;
    background-position: center bottom, left top;
    background-repeat: no-repeat, no-repeat;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.navbar {
    width: 100%;
    padding: 1rem 0 3rem 0;
}

.logo {
    font-size: 18px;
    font-family: var(--font-body);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--warm-white);
}

.logo-bold {
    font-weight: 700;
}

.logo-accent {
    font-weight: 600;
    color: #4df4eb;
    /* Using a brighter cyan since Teal #00A29A might not contrast well with Sky Blue */
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 2rem;
    flex: 1;
}

.hero-text-main h1 {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2.5rem;
    color: var(--warm-white);
}

.button-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 8px;
    /* Slightly rounded */
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    display: inline-block;
}

.btn:focus-visible {
    outline: 2px solid var(--warm-white);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--terracotta-main);
    color: var(--warm-white);
    box-shadow: 0 4px 14px rgba(200, 90, 50, 0.3);
}

.btn-primary:hover {
    background-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 90, 50, 0.4);
}

.btn-secondary {
    background-color: rgba(244, 246, 246, 0.08);
    /* F4F6F6 with 8% opacity */
    color: var(--warm-white);
    border: 1px solid rgba(244, 246, 246, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(244, 246, 246, 0.15);
    border-color: rgba(244, 246, 246, 0.3);
    transform: translateY(-2px);
}

.hero-text-side {
    text-align: right;
    margin-top: 1.5rem;
}

.hero-text-side p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--warm-white);
    opacity: 0.9;
}

/* Details Section */
.details-section {
    background-color: var(--bg-dark);
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--warm-white);
    margin-bottom: 3rem;
    line-height: 1.3;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.5rem;
}

.bento-card {
    background-color: var(--bg-card);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(244, 246, 246, 0.05);
}

.bento-card-1 {
    grid-column: 1 / -1;
    min-height: 350px;
}

.bento-card-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
}

.bento-card-3 {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.bento-card-4 {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-bg img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-bg img.img-right {
    position: absolute;
    right: 0;
}

/* Gradients for blending images into background */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
}

.gradient-overlay.right {
    background: linear-gradient(to right, transparent 30%, var(--bg-card) 60%);
}

.gradient-overlay.left {
    left: auto;
    right: 0;
    background: linear-gradient(to left, transparent 30%, var(--bg-card) 60%);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.right-content {
    align-items: flex-start;
    margin-left: auto;
    width: 50%;
}

.left-content {
    align-items: flex-start;
    width: 50%;
}

.bento-card-3 .left-content {
    width: 65%;
}

.center-content {
    align-items: center;
    text-align: center;
}

/* Badge styles */
.badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.badge-outline {
    /* Kept for semantic reasons, but let it inherit the glassy background */
}

/* Card Typography */
.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.card-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* Specific Card Styles */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.spec-item {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    align-items: center;
}

.bento-orange {
    background: linear-gradient(135deg, var(--terracotta-main), var(--terracotta-dark));
}

.bento-orange .badge {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.bento-orange h3 {
    font-size: 28px;
    margin: 1rem 0;
}

.bento-orange .card-desc {
    color: var(--warm-white);
    opacity: 0.9;
}

.coin-img {
    width: 300px;
    height: auto;
    margin: 1.5rem 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Commitment Section */
.commitment-section {
    background-color: var(--bg-dark);
    padding: 6rem 0;
}

.commitment-container {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 4rem;
    align-items: center;
}

/* Left side */
.commitment-left {
    position: relative;
    padding-left: 4rem;
}

.commitment-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 600px;
    width: 100%;
    max-width: 452px;
    margin-left: auto;
}

.pillar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-cards {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;
}

.float-card {
    background-color: var(--terracotta-dark);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.float-card h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--warm-white);
    margin-bottom: 0.75rem;
}

.float-card p {
    font-size: 14px;
    color: var(--warm-white);
    opacity: 0.8;
    line-height: 1.5;
}

/* Right side */
.commitment-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.commitment-top-img img {
    width: 100%;
    border-radius: 1.5rem;
    object-fit: cover;
    max-height: 300px;
}

.commitment-text h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.commitment-text p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-text-main h1 {
        font-size: 56px;
    }

    /* Commitment Mobile Landscape */
    .commitment-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .commitment-left {
        padding-left: 0;
        order: 2;
    }

    .commitment-right {
        order: 1;
    }

    .floating-cards {
        left: 2rem;
        right: 2rem;
        flex-direction: row;
        top: auto;
        bottom: 2rem;
        transform: none;
    }

    .float-card {
        max-width: 100%;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        background-size: 150% auto, 100% 100%;
    }

    .navbar {
        text-align: center;
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        gap: 2rem;
        margin-top: 10rem;
    }

    .hero-text-side {
        display: none;
    }

    .hero-text-main h1 {
        font-size: 40px;
        margin-bottom: 2rem;
    }

    .button-group {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: auto;
    }

    /* Details Section Mobile */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card-1,
    .bento-card-2,
    .bento-card-3,
    .bento-card-4 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .right-content,
    .left-content,
    .bento-card-3 .left-content {
        width: 100%;
        padding-top: 250px;
    }

    .card-bg img,
    .card-bg img.img-right {
        width: 100%;
        right: auto;
    }

    .gradient-overlay.right,
    .gradient-overlay.left {
        width: 100%;
        left: 0;
        right: auto;
        background: linear-gradient(to bottom, transparent 30%, var(--bg-card) 70%);
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    /* Commitment Section Mobile */
    .commitment-left {
        padding: 68px 1rem;
    }

    .commitment-image-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
    }

    .floating-cards {
        flex-direction: column;
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        top: auto;
        margin-top: 0;
        padding: 0;
    }

    .commitment-text h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-text-main h1 {
        font-size: 32px;
    }

    .btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    .button-group {
        gap: 0.75rem;
    }
}

/* Types Section */
.types-section {
    background-color: var(--bg-dark);
    padding: 6rem 0;
}

.types-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.types-section h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--warm-white);
    line-height: 1.2;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.type-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.type-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.type-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.type-card:hover .type-image-wrapper img {
    transform: scale(1.05);
}

.type-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(147, 165, 181, 0.8);
    backdrop-filter: blur(4px);
    color: var(--bg-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.type-badge svg {
    stroke: var(--terracotta-main);
}

.type-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.type-info h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--warm-white);
}

.type-specs {
    display: flex;
    gap: 2rem;
}

.spec-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.spec-col p {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.spec-col svg {
    margin-top: 2px;
    flex-shrink: 0;
}

.btn-detail {
    display: inline-block;
    background-color: var(--terracotta-main);
    color: var(--warm-white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.btn-detail:hover {
    background-color: var(--terracotta-dark);
}

/* Media query updates for Types section */
@media (max-width: 992px) {
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .types-grid {
        grid-template-columns: 1fr;
    }

    .types-section h2 {
        font-size: 32px;
    }
}

/* Maps Section */
.maps-section {
    background-color: var(--bg-dark);
    padding: 6rem 0;
}

.maps-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.maps-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.maps-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--warm-white);
    margin-bottom: 1rem;
}

.maps-header p {
    color: var(--warm-white);
    opacity: 0.9;
    font-size: 16px;
    line-height: 1.6;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--bg-card);
    /* Placeholder while loading */
}

@keyframes pulse-marker {
    0% {
        box-shadow: 0 0 0 0 rgba(200, 90, 50, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(200, 90, 50, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(200, 90, 50, 0);
    }
}

/* Custom MapLibre overrides mimicking mapcn */
.custom-marker {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border: 2px solid var(--terracotta-main);
    transition: transform 0.2s ease;
    animation: pulse-marker 2s infinite;
}

.custom-marker:hover {
    transform: scale(1.1);
    animation: none;
}

.custom-popup .maplibregl-popup-content {
    background-color: var(--bg-card);
    color: var(--warm-white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-body);
}

.custom-popup .maplibregl-popup-content h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--terracotta-main);
}

.custom-popup .maplibregl-popup-content p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.custom-popup .maplibregl-popup-tip {
    border-top-color: var(--bg-card);
}

.popup-content-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-navigate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--terracotta-main);
    color: var(--warm-white);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    transition: background-color 0.2s ease;
}

.btn-navigate:hover {
    background-color: var(--terracotta-dark);
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-dark);
    padding: 6rem 0;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--warm-white);
    line-height: 1.2;
}

.cta-section p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4CAF50;
    color: var(--warm-white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-wa:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-brochure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #262D34;
    color: var(--warm-white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-brochure:hover {
    background-color: #343d46;
    transform: translateY(-2px);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--terracotta-main);
    color: var(--warm-white);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.btn-back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background-color: var(--terracotta-dark);
    transform: translateY(-3px) scale(1.05);
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 2rem;
}

.footer-huge-text {
    font-family: var(--font-body);
    font-size: 11vw;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    color: transparent;
    white-space: nowrap;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.footer-left p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-left p:last-child {
    margin-bottom: 0;
}

.footer-right {
    color: var(--muted);
    font-size: 13px;
}

.footer-right a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--warm-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }

    .maps-header h2 {
        font-size: 32px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-huge-text {
        font-size: 16vw;
    }

    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}