/* Force light mode across entire website */
html {
    color-scheme: light !important;
    overscroll-behavior-y: none;

}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: black;
    color-scheme: light !important;
    background-color: white !important;
    overscroll-behavior-y: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.containerEvents {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}


.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-bottom {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.header {
    background: #fff;
    position: fixed;
    width: 100%;
    max-width: 1600px;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1000;

}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    box-shadow:
        0 5px 20px -12px rgba(0, 0, 0, 0.0),
        /* outer */
        inset 0px 0 0px rgba(0, 0, 0, 0.1),
        /* strong left shadow */
        inset 0 0px 4px rgba(0, 0, 0, 0.1);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.nav {
    padding: 1.4rem 0;
}

/* Logo styles */
.logo-link {
    display: block;
    text-align: center;
    text-decoration: none;
}

.logo-img {
    height: 30px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    /* transform: translateY(-2px); */
}

/* Footer logo styles */
.footer-logo-link {
    display: block;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    /* transform: translateY(-2px); */
}

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    text-align: center;
}

/* Hero Section */
.hero {
    margin-top: 60px;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 100%;
    background-color: #ffc801;
    z-index: 0;
    box-shadow: inset 0px 22px 15px rgba(0, 0, 0, 0.1), inset 0px 22px 15px rgba(0, 0, 0, 0.1);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
    z-index: 2;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 300px;
    align-items: flex-end;
    width: 100%;
    padding-top: 70px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    align-self: center;
}

.hero-your-img {
    height: 7rem;
    width: auto;
    vertical-align: baseline;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;

}

.highlight {
    color: black;
    font-weight: 800;
}

.desktop-break {
    display: block;
}

.app-text {
    display: block;
    text-align: center;
}

.app-store-buttons {
    display: flex;
    align-self: center;
}

.app-store-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    background: transparent;
    padding: 0;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.app-store-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.app-store-btn:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.app-store-btn * {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.app-btn-img {
    width: 200px;
    border-radius: 8px;
    outline: none;
    border: none;
}

.app-store-btn.small .app-btn-img {
    width: 140px;
}

/* Hero Phone */
.hero-phone {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.hero-phone-image {
    width: 100%;
    max-width: 400px;
    background: transparent;
    margin-bottom: 0;
    padding-bottom: 0;
    margin: 0;
    padding: 0;
}

.hero-phone-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    margin-bottom: 0;
    padding-bottom: 0;
    display: block;
    vertical-align: bottom;
}


/* Communities Section */
.communities {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.communities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 100%;
    box-shadow: inset 0px 8px 20px rgba(0, 0, 0, 0.2), inset 0px -8px 20px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    z-index: 0;
}

.communities>* {
    position: relative;
    z-index: 1;
}

.communities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 250px;
    align-items: flex-start;
}

.communities-right {
    background-color: transparent;
}

.communities-left h2,
.communities-right h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: black;
    max-width: 400px;
    line-height: 1.1;
    text-align: center;
    background-color: transparent;
}

.communities-left p,
.communities-right p {
    font-size: 1.2rem;
    color: black;
    margin-bottom: 2rem;
    text-align: center;
    margin-top: 10px;
    max-width: 380px;
}

.community-image {
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
    background: transparent;
}

.communities-list-img {
    width: 100%;
    height: auto;
    background: transparent;
    transition: transform 0.3s ease;
}


/* Discussion Image */
.discussion-image {
    width: 100%;
    max-width: 370px;
    margin-top: 2rem;
}

.discussions-img {
    width: 100%;
    height: auto;
    background: transparent;
}

/* Events Section */
.events {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 100%;
    background-color: #ffc801;
    z-index: 0;
}

.events::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 20px;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent); */
    pointer-events: none;
    z-index: 3;
}

.events>* {
    position: relative;
    z-index: 1;
}

.events-bunting-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    z-index: 2;
    height: 50px;
    background-image: url('LanternSingle.png');
    background-repeat: repeat-x;
    background-size: auto 50px;
    background-position: left top;
}

.bunting-img {
    display: none;
}

.events-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 80px;
    overflow: hidden;
    box-shadow:
        0 5px 20px -12px rgba(0, 0, 0, 0.0),
        /* outer */
        inset 0px 0 0px rgba(0, 0, 0, 0.1),
        /* strong left shadow */
        inset 0 0px 4px rgba(0, 0, 0, 0.1);

}

.events-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
    padding-left: calc(20%);
    padding-top: 20px;
}

.events-left::before {
    content: '';
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: calc(75%);
    height: 300px;
    background: white;
    border-radius: 0 150px 150px 0;
    z-index: -1;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.13), inset 10px 0px 20px rgba(0, 0, 0, 0.13);
}

.events-left h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: black;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

/* Desktop and Mobile title variants */
.events-title-desktop {
    display: block;
}

.events-title-mobile {
    display: none;
}

.events-left p {
    font-size: 1.2rem;
    color: black;
    margin-top: 1.4rem;
    position: relative;
    z-index: 1;
}

.events-image {
    width: 100%;
    max-width: 500px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.events-img {
    width: 100%;
    height: auto;
    background: transparent;
    transition: transform 0.3s ease;
}

.events-img-mobile {
    display: none;
}

.events-img-desktop {
    display: block;
    margin-bottom: -8px;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 100%;
    box-shadow: inset 0px 8px 20px rgba(0, 0, 0, 0.2), inset 0px -8px 20px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    z-index: 0;
}

.map-section>* {
    position: relative;
    z-index: 1;
}

.map-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: black;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: black;
}

.map-container {
    max-width: 720px;
    margin: 0 auto;
    background: transparent;
}

.us-map-img {
    width: 100%;
    height: auto;
    background: transparent;
    transition: transform 0.3s ease;
}

/* Footer */
.footer {
    padding-top: 60px;
    position: relative;
    overflow-x: hidden;
    background: #ffffff;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 100%;
    background-color: #ffc801;
    z-index: 0;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 100%;
    box-shadow:
        0 5px 20px -12px rgba(0, 0, 0, 0.0),
        /* outer */
        inset 0px 0 0px rgba(0, 0, 0, 0.1),
        /* strong left shadow */
        inset 0 0px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    pointer-events: none;
}

.footer>* {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    padding-bottom: 40px;

}

.footer-left h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #000000;
}

.footer-left {
    padding-left: 20px;
}

.footer-left p {
    color: #000000;
    margin-bottom: 0.8rem;
}

.footer-apps {
    display: flex;
    margin-top: 5px;
}

.copyright {
    font-size: 0.9rem;
    color: black;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}


.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #000000;
    text-align: left;
}

.footer-column ul {
    list-style: none;
    text-align: left;

}

.footer-column li {
    margin-bottom: 0.2rem;
    text-align: left;

}

.footer-column a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: left;
    white-space: nowrap;
}


.social-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
}

.social-btn {
    display: block;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-icon {
    width: 25px;
    height: 25px;
}

.footer-bottom {
    text-align: center;
    background: transparent;
    position: relative;
    padding-top: 0;
    z-index: 0;
}

.landmark-icons {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 0;
    width: 100%;
    margin-top: 20px;
}

.landmarks-img {
    width: auto;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}


.landmarks-img-mobile {
    display: none;

}

.landmarks-img-desktop {
    display: block;
}

/* Desktop styles for Social section */
@media (min-width: 1025px) {
    .discussion-image {
        margin-left: 20px;
    }

    .footer-column:has(h4:contains("Social")) {
        margin-left: 50px;
    }
}

/* Alternative approach for better browser support */
@media (min-width: 1025px) {
    .footer-links .footer-column:last-child {
        margin-left: 50px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {

    .hero-content,
    .communities-content,
    .events-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .communities-left,
    .communities-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .communities-left h2,
    .communities-left p,
    .communities-right h2,
    .communities-right p {
        text-align: center;
    }

    .events-left {
        margin-left: 0;
        padding-left: 0;
    }

    .events-left::before {
        width: 100%;
        border-radius: 20px;
        left: 50%;
        transform: translate(-50%, -50%);
        background: transparent;
    }

    .events-left h2,
    .events-left p {
        padding-left: 20px;
        padding-right: 20px;
    }

    .events-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-your-img {
        height: 7rem;
    }

    .communities-left h2,
    .communities-right h2,
    .events-left h2 {
        font-size: 2rem;
    }

    /* Mobile title variants */
    .events-title-desktop {
        display: none;
    }

    .events-title-mobile {
        display: block;
    }

    .communities-right {
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        /* gap: 40px; */
        /* text-align: center; */
        /* align-items: center; */
        /* justify-content: center; */
    }

    .footer-links {
        padding-left: 20px;
        /* justify-items: center; */
    }

    .discussion-image {
        max-width: 400px;
        margin: 2rem auto 0;
    }

    .community-image {
        max-width: 400px;
        margin: 2rem auto 0;
    }

    .events-left::before {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.0);
    }

}

@media (max-width: 768px) {

    .container,
    .container-wide,
    .container-narrow,
    .container-bottom {
        padding: 0 15px;
    }

    .footer-bottom {
        margin: 0 -15px;
    }

    .communities-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .communities-left h2,
    .communities-left p {
        text-align: center;
    }

    .nav {
        padding: 1.2rem 0;
    }

    .logo-img {
        height: 25px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-your-img {
        height: 2.5rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .desktop-break {
        display: none;
    }

    .app-text {
        display: inline;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .app-store-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .app-btn-img {
        width: 140px;
    }

    .hero-phone-image {
        max-width: 320px;
    }

    .communities,
    .map-section {
        padding: 60px 0;
    }

    .events {
        min-height: 500px;
    }

    .events-content {
        padding-top: 60px;
    }

    .discussion-image {
        max-width: 320px;
        margin: 1rem auto 0;
    }

    .community-image {
        max-width: 320px;
        margin: 1rem auto 0;
    }

    .events-image {
        max-width: 450px;
    }

    .events-img-desktop {
        display: none;
    }

    .events-img-mobile {
        display: block !important;
        width: auto;
        max-width: 100%;
        margin-bottom: -18px;
    }

    .events-image {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto;
    }

    .events-right {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        text-align: center;
    }

    .footer-content {
        align-items: center;
        justify-content: center;
    }

    .footer-apps {
        /* justify-content: center; */
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 30px;
    }

    .footer-links .footer-column h4 {
        white-space: nowrap;
    }

    .footer-links .footer-column:nth-child(3) {
        grid-column: 1 / -1;
        text-align: left;
        justify-self: start;
        width: 100%;
    }

    .footer-links .footer-column:nth-child(3) h4,
    .footer-links .footer-column:nth-child(3) .social-buttons {
        text-align: left;
        justify-content: flex-start;
    }

    .landmark-icons {
        flex-wrap: wrap;
    }

    .landmarks-img-desktop {
        display: none;
    }

    .landmarks-img-mobile {
        display: block;
    }

    .landmark {
        font-size: 1.5rem;
    }

    .subtitle {
        display: block;
    }
}

@media (max-width: 480px) {

    .container,
    .container-wide,
    .container-narrow,
    .container-bottom {
        padding: 0 0px;
    }

    .communities-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .communities-left h2,
    .communities-left p {
        text-align: center;
    }

    .nav {
        padding: 1.6rem 0;
    }

    .logo-img {
        height: 25px;
    }

    .hero {
        min-height: 450px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-your-img {
        height: 3rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-title {
        margin-bottom: 0.8rem;
    }

    .app-btn-img {
        width: 140px;
    }

    .communities-left h2,
    .communities-right h2,
    .events-left h2,
    .map-section h2 {
        font-size: 1.8rem;
        margin-top: 5px;
    }

    .subtitle {
        display: block;
    }

    .hero-phone-image {
        max-width: 350px;
    }

    .discussion-image {
        max-width: 340px;
        margin: 1rem auto 0;
    }

    .community-image {
        max-width: 340px;
        margin: 1rem auto 0;
    }

    .community-item {
        padding: 12px;
    }

    .events {
        min-height: 450px;
    }

    .events-image {
        max-width: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 100%;
    }

    .events-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }

    .map-section h2 {
        font-size: 1.5rem;
    }

    .map-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.communities-content,
.events-content {
    animation: fadeInUp 0.8s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .header {
        background: #2a2a2a;
    }

    .nav-brand h2 {
        color: #fff;
    }

    .communities {
        background: #2a2a2a;
    }

    .map-section {
        background: #2a2a2a;
    }

    .phone-screen {
        background: #3a3a3a;
        color: #e0e0e0;
    }

    .menu-item {
        background: #4a4a4a;
        color: #e0e0e0;
    }

    .community-item {
        background: #3a3a3a;
    }

    .community-item:hover {
        background: #4a4a4a;
    }

    .chat-mockup {
        background: #3a3a3a;
    }

    .chat-message {
        background: #4a4a4a;
    }

    .event-item {
        background: #4a4a4a;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.app-store-btn:focus,
.community-item:focus,
.event-item:focus {
    outline: 3px solid #007AFF;
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .hero::before {
        background: #FFC801;
    }

    .events::before {
        background: #FFC801;
    }

    .footer::before {
        background: white;
    }
}