@import url("./variables.css");

.partner {
    background: var(--color-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 8rem;
    gap: 4rem;
}

.partner .partner-text {
    flex: 1;
    max-width: 900px;
}

.partner .partner-text h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.partner .partner-text p {
    font-size: .9rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.partner .partner-text .partner-subtext {
    color: #ececec;
    font-size: .9rem;
    font-weight: 400;
    opacity: 0.95;
}

.partner .partner-login {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: #ffffff;
    color: #00534d;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: .2s all ease;
    cursor: pointer;
    white-space: nowrap;
}

.partner .partner-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.03);
}

.join-section {
    background: #f1f1f1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 6rem;
}

.join-section .join-section-title h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-secondary);
    padding-bottom: .8rem;
    line-height: 1.3;
}

.join-section .join-section-title p {
    font-size: .9rem;
    color: #3f3f3f;
    width: 55%;
    margin: auto;
    line-height: 1.7;
}

.join-cta {
    margin-top: 1.5rem;
    text-decoration: none;
    background: var(--color-primary);
    color: #ffffff;
    padding: 1rem 3rem;
    font-weight: 600;
    font-size: .9rem;
    border-radius: var(--radius-md);
    transition: .2s all ease;
}

.join-cta:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 134, 99, 0.3);
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4rem;
}

footer .footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-wrapper .logo-text {
    font-weight: bolder;
    font-size: 1rem;
    color: #3f3f3f;
}

.footer-logo-wrapper .logo-text sup {
    font-weight: 600;
    font-size: .6rem;
    margin: .1rem;
}

footer .footer-links .links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

footer .footer-links .links .link-item {
    list-style: none;
}

footer .footer-links .links .link-item .link {
    text-decoration: none;
    color: #3f3f3f;
    font-size: .9rem;
    transition: color 0.2s ease;
}

footer .footer-links .links .link-item .link:hover {
    color: var(--color-primary);
}

.about-tooltip {
    position: absolute;
    max-width: 300px;
    background: #006D65;
    color: #fff;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-5px);
    z-index: 1000;
}

.about-tooltip.show {
    opacity: 1;
    transform: translateY(-10px);
}

.trademark p {
    font-size: .8rem;
    color: #3f3f3f;
}

@media (max-width: 1560px) {
    .cards {
        margin: 0 4rem;
    }

    .cards .card {
        padding: 2rem 1.5rem;
    }

    .mission-section {
        padding: 5rem 4rem;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 109, 101, 0.98), rgba(66, 149, 69, 0.98));
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem 5%;
    z-index: 999999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.cookie-icon {
    flex-shrink: 0;
    margin-top: 0.2rem;
    opacity: 0.9;
}

.cookie-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.cookie-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
    margin: 0;
}

.cookie-link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cookie-link:hover {
    opacity: 0.8;
}

.cookie-accept-btn {
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-accept-btn:active {
    transform: translateY(0);
}

/* Responsive Design - Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .cookie-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cookie-icon {
        margin-top: 0;
    }

    .cookie-accept-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 1.25rem 4%;
    }

    .cookie-text strong {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-accept-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* RESPONSIVE DESIGN - Mobile & Tablet */

/* Tablets and smaller desktops (1024px and below) */
@media (max-width: 1024px) {
    header {
        margin: 2rem;
        padding: 1rem 3%;
        width: 94%;
    }

    .hero {
        padding: 6rem 4rem;
        height: auto;
        min-height: 80vh;
    }

    .hero .app-description h2 {
        font-size: 2.8rem;
    }

    .hero .app-description p {
        font-size: 1.1rem;
    }

    .cards {
        margin: 0 4rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .cards .card {
        padding: 2rem;
    }

    .mission-section {
        padding: 4rem;
    }

    .mission-content h2 {
        font-size: 1.8rem;
    }

    .mission-content p {
        font-size: 1rem;
    }

    .partner {
        padding: 4rem;
    }

    .partner .partner-text h2 {
        font-size: 1.6rem;
    }

    .join-section {
        padding: 4rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    header {
        margin: 1rem;
        padding: 0.8rem 4%;
        width: 92%;
        border-radius: 32px;
    }

    .logo-wrapper .logo-text {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: 0.6rem;
    }

    .cta-nav {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        grid-template-columns: 1fr;
        padding: 8rem 2rem 4rem 2rem;
        gap: 3rem;
        height: auto;
    }

    .hero .app-description {
        padding: 1rem;
        text-align: center;
    }

    .hero .app-description h2 {
        font-size: 2.2rem;
    }

    .hero .app-description p {
        font-size: 1rem;
    }

    .hero .app-description .hero-subtext {
        font-size: 0.95rem;
    }

    .hero-img {
        order: -1;
    }

    .hero-img img {
        border-radius: 120px 280px 60px 120px;
    }

    .cta-hero {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-hero .register-hero,
    .cta-hero .learn-more-hero {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Features Section */
    .feature-description {
        margin: 3rem 2rem;
    }

    .feature-description .section-title {
        font-size: 1.6rem;
    }

    .feature-description .section-title strong {
        font-size: 1.8rem;
    }

    .feature-description .section-sub-title {
        font-size: 1rem;
    }

    .cards {
        margin: 0 2rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cards .card {
        padding: 2rem 1.5rem;
    }

    .card-title h3 {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    /* Mission Section */
    .mission-section {
        padding: 3rem 2rem;
    }

    .mission-content h2 {
        font-size: 1.6rem;
    }

    .mission-content p {
        font-size: 1rem;
    }

    /* Partner Section */
    .partner {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 2rem;
        text-align: center;
    }

    .partner .partner-text h2 {
        font-size: 1.5rem;
    }

    .partner .partner-text p {
        font-size: 0.95rem;
    }

    .partner .partner-login {
        align-self: center;
        width: fit-content;
    }

    /* Join Section */
    .join-section {
        padding: 3rem 2rem;
    }

    .join-section .join-section-title h2 {
        font-size: 1.6rem;
    }

    .join-section .join-section-title p {
        font-size: 1rem;
        width: 100%;
    }

    .join-cta {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }

    footer .footer-links .links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .trademark {
        margin-top: 1rem;
    }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    header {
        margin: 0.5rem;
        padding: 0.7rem 3%;
        width: 94%;
        border-radius: 24px;
    }

    .logo-wrapper {
        gap: 0.5rem;
    }

    .logo-wrapper .logo-text {
        font-size: 1rem;
    }

    .logo-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .cta-nav {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Hero Section */
    .hero {
        padding: 7rem 1.5rem 3rem 1.5rem;
        gap: 2rem;
    }

    .hero .app-description {
        padding: 0.5rem;
    }

    .hero .app-description h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero .app-description p {
        font-size: 0.95rem;
    }

    .hero .app-description .hero-subtext {
        font-size: 0.9rem;
    }

    .hero-img img {
        border-radius: 80px 200px 40px 80px;
    }

    .cta-hero {
        gap: 0.8rem;
    }

    .cta-hero .register-hero,
    .cta-hero .learn-more-hero {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Features Section */
    .features {
        padding-bottom: 4rem;
    }

    .feature-description {
        margin: 2rem 1rem;
    }

    .feature-description .section-title {
        font-size: 1.4rem;
    }

    .feature-description .section-title strong {
        font-size: 1.6rem;
    }

    .feature-description .section-sub-title {
        font-size: 0.95rem;
    }

    .cards {
        margin: 0 1rem;
        gap: 1.2rem;
    }

    .cards .card {
        padding: 1.5rem;
    }

    .card-title {
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .card-title svg {
        width: 20px;
        height: 20px;
    }

    .card-title h3 {
        font-size: 0.95rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    /* Mission Section */
    .mission-section {
        padding: 2.5rem 1.5rem;
    }

    .mission-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .mission-content p {
        font-size: 0.9rem;
    }

    /* Partner Section */
    .partner {
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .partner .partner-text h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .partner .partner-text p {
        font-size: 0.9rem;
    }

    .partner .partner-login {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }

    /* Join Section */
    .join-section {
        padding: 2.5rem 1.5rem;
        gap: 0.8rem;
    }

    .join-section .join-section-title h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        padding-bottom: 0.5rem;
    }

    .join-section .join-section-title p {
        font-size: 0.95rem;
    }

    .join-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .footer-logo-wrapper {
        gap: 0.6rem;
    }

    .footer-logo-wrapper svg {
        width: 18px;
        height: 18px;
    }

    .footer-logo-wrapper .logo-text {
        font-size: 0.95rem;
    }

    footer .footer-links .links {
        gap: 1rem;
    }

    footer .footer-links .links .link-item .link {
        font-size: 0.85rem;
    }

    .trademark p {
        font-size: 0.75rem;
    }

    .about-tooltip {
        max-width: 220px;
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .hero .app-description h2 {
        font-size: 1.6rem;
    }

    .hero .app-description p {
        font-size: 0.9rem;
    }

    .hero .app-description .hero-subtext {
        font-size: 0.85rem;
    }

    .cta-hero {
        flex-direction: column;
        width: 100%;
    }

    .cta-hero .register-hero,
    .cta-hero .learn-more-hero {
        width: 100%;
    }

    .feature-description .section-title {
        font-size: 1.2rem;
    }

    .feature-description .section-title strong {
        font-size: 1.4rem;
    }

    .cards .card {
        padding: 1.2rem;
    }

    .mission-content h2 {
        font-size: 1.2rem;
    }

    .mission-content p {
        font-size: 0.85rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 2rem 2rem 2rem;
    }

    header {
        margin: 0.5rem;
    }
}