/* Base */
body {
    background-color: #ecf0f1;
}

/* Blur the whole app behind modal */
#pageRoot {
    transition: filter 200ms ease, opacity 200ms ease;
    will-change: filter;
}

#pageRoot.blurred {
    filter: blur(6px) saturate(0.9);
    pointer-events: none;
    user-select: none;
}

/* Hero image */
.img-1 {
    width: 400px;
    height: 400px;
}

@media (max-width: 768px) {
    .img-1 {
        width: 100%;
        height: auto;
        margin-top: 20px;
    }
}

/* Links & buttons */
#tgHero {
    cursor: pointer;
}

.a-color {
    color: #ffffff;
}

h1 {
    color: #2980b9;
    text-shadow: 2px 2px 4px #ffffff;
}

.btn-hero {
    border: 1px solid white;
    padding: 5px 10px;
    color: white;
    font-weight: bold;
}

/* Hero layout */
.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Buttons */
.buttons {
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    padding-block: 0.5rem;
    padding-inline: 1.25rem;
    background-color: rgb(0 107 179);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffff;
    gap: 10px;
    font-weight: bold;
    border: 3px solid #ffffff4d;
    outline: none;
    overflow: hidden;
    font-size: 15px;
}

.icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease-in-out;
}

.buttons:hover {
    transform: scale(1.05);
    border-color: #fff9;
}

.buttons:hover .icon {
    transform: translate(4px);
}

.buttons:hover::before {
    animation: shine 1.5s ease-out infinite;
}

.buttons::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0) 70%);
    top: 0;
    left: -100px;
    opacity: 0.6;
}

@keyframes shine {
    0% {
        left: -100px;
    }

    60% {
        left: 100%;
    }

    to {
        left: 100%;
    }
}

/* Collapsible (mobile menu) */
.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease, opacity 250ms ease;
    opacity: 0;
}

.collapsible.open {
    max-height: 600px;
    /* ample space */
    opacity: 1;
}

/* Accordion icon rotation */
.accordion-icon {
    display: inline-block;
    transition: transform 200ms ease;
}

.accordion-icon.rotated {
    transform: rotate(180deg);
}

/* ---------- Modal (responsive & scroll-safe) ---------- */
.modal {
    /* hidden by default */
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;

    /* center the dialog and give breathing room on all screens */
    place-items: center;
    padding: clamp(12px, 3vw, 32px);

    /* dim/blur the app behind */
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px);

    opacity: 0;
    transition: opacity 250ms ease;
}

.modal.show {
    display: grid;
    opacity: 1;
}

/* The dialog card */
.modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(2, 6, 23, .25);
    padding: clamp(16px, 2vw, 24px);

    /* KEY: size to viewport; scroll inside if needed */
    width: min(96vw, 920px);
    max-height: min(90vh, 760px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;

    /* entrance animation */
    transform: translateY(16px);
    opacity: 0;
    transition: transform 280ms ease, opacity 240ms ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #555;
}

.close:hover {
    color: #2980b9;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Optional: small-screen width nudge */
@media (max-width: 480px) {
    .modal-content {
        width: 100%;
    }
}

/* Form inputs/buttons */
form input,
form button {
    outline-color: #ccc;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    background: #3498db;
    color: white;
    border: none;
    width: 100%;
    cursor: pointer;
}

form button:hover {
    background: #2980b9;
}

#formStatus.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Contact section */
.contact {
    margin-top: 50px;
    margin-bottom: 20px;
    background-color: #2980b9;
    padding: 20px;
    color: white;
    max-width: 100%;
    height: 250px;
    text-align: center;
    line-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-h1 {
    font-size: 25px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 2px #000;
    font-weight: bold;
}

/* Contact button */
.btn-contact {
    color: white;
    border: 2px solid #b9c3db;
    font-weight: 500;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 2rem;
    padding: 0.7rem 2rem;
    text-align: center;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-contact:hover {
    background-color: #1E40AF;
}

.btn-contact svg {
    display: inline;
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 0.75rem;
    color: white;
    animation: spin_357 1s linear infinite;
}

@keyframes spin_357 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* FAQ accordion */
.faq {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 0.75rem 0;
    font-weight: 500;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq-plus {
    transition: transform 0.2s ease;
    font-weight: bold;
}

.faq[open] .faq-plus {
    transform: rotate(45deg);
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .p-10 .w-full {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    nav .max-w-screen-xl {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Sticky CTA (mobile only) */
.sticky-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 -8px 24px rgba(2, 6, 23, 0.06);
    padding: 12px 14px;
}

.sticky-cta .cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

body.modal-open .sticky-cta {
    display: none !important;
}