/* Responsive Styles */
/* ======================
   TABLET
====================== */

@media (max-width:1024px){

    /* TOP BAR */

    .top-bar{
        padding:.8rem 2rem;
    }

    .top-left{
        gap:1.5rem;
    }

    .contact-item{
        font-size:.75rem;
    }

    .top-right{
        gap:.75rem;
    }

    /* NAVBAR */

    .navbar{
        width:92%;
        padding:1.5rem 0;
    }

    .navbar ul{
        gap:.75rem;
        font-size:.85rem;
    }

    .navbar a{
        font-size:.85rem;
    }

    .logo img{
        width:65px;
    }

    .join-btn{
        font-size:.85rem;
        padding:.7rem 1rem;
    }

    /* HERO */

    .hero-content{
        width:92%;
        gap:3rem;
    }

    .hero-left h1{
        font-size:4rem;
        line-height:.95;
    }

    /* EVENT CARD */

    .event-card{
        width:260px;
        padding:20px;
    }

    .event-card img{
        height:120px;
    }

    .event-details{
        gap:.8rem;
    }

    .event-details p{
        font-size:.85rem;
    }

    /* HERO FOOTER */

    .hero-footer{
        padding:0 4%;
    }

    .coordinates{
        font-size:1.25rem;
    }

    .countdown{
        font-size:1.25rem;
    }

    /* MODAL */

    .modal-content{
        width:460px;
        padding:32px;
    }

    .modal-content h2{
        font-size:3.5rem;
    }

    .route-options{
        gap:10px;
    }

    .route-btn{
        padding:14px;
    }

    /* STATS */

    .stats{
        padding:5rem 6%;
    }

    .counter{
        font-size:4rem;
    }

    .stat p{
        font-size:1.25rem;
    }

    /* ABOUT */

 .about{
        grid-template-columns:1fr 1fr;
        gap:3rem;
    }

    .about-left{
        grid-column:1 / -1;
    }

    .about-left h2{
        max-width:600px;
        font-size:3rem;
    }

    .about-images{
        justify-content:center;
        gap:1rem;
    }

    .image-top,
    .image-bottom{
        width:180px;
        height:240px;
    }

    .about-right p{
        font-size:1rem;
        max-width:100%;
    }

    .weekly-run{

        grid-template-columns:1fr;

        min-height:auto;
    }

    .weekly-content{

        padding:5rem 5%;

        text-align:center;

        align-items:center;
    }

    .sectionweekly-tag{

        margin-bottom:1.5rem;
    }

    .weekly-content h2{

        font-size:2.25rem;

        margin-bottom:1.5rem;
    }

    .weekly-content p{

        max-width:700px;

        font-size:1.1rem;

        margin:0 auto;
    }

    .route-grid{

        height:500px;

        width:100%;
    }

    .route-card{

        flex:1;
    }

    .route-card:hover{

        flex:1.15;
    }

    .route-info{

        left:0;

        right:0;

        bottom:40px;

        transform:none;

        width:100%;

        padding:0 1rem;

        text-align:center;
    }

    .route-info h3{

        font-size:1.25rem;
    }

    .route-info p{

        font-size:.95rem;
    }

    .route-info span{

        font-size:1rem;
    }

    .route-card img{

        object-position:center;
    }

     .gallery-section{

        padding:4rem 5%;
    }

    .gallery-header{

        flex-direction:column;

        gap:2rem;

        margin-bottom:3rem;
    }

    .gallery-title h2{

        font-size:3rem;

        line-height:1;
    }

    .gallery-description{

        max-width:700px;
    }

    .gallery-description p{

        font-size:1.1rem;

        line-height:1.5;
    }

    .gallery-carousel{

        height:550px;
    }

    .gallery-card{

        width:320px;

        height:420px;
    }

    .gallery-btn{

        width:50px;
        height:50px;

        font-size:20px;
    }

    .prev{

        left:15px;
    }

    .next{

        right:15px;
    }


    .faq-section{

        padding:4rem 5%;

        gap:2.5rem;

        grid-template-columns:
        0.9fr
        1.1fr;
    }

    .faq-left h2{

        font-size:2.5rem;

        line-height:1.1;
    }

    .faq-question{

        font-size:1rem;

        padding:1.1rem 0;
    }

    .faq-answer{

        font-size:.95rem;
    }

    .faq-question svg{

        width:20px;
        height:20px;
    }

     .contact-section{

    padding:4rem 5%;
}

.contact-title{

    font-size:4rem;

    margin-bottom:3rem;

    line-height:1;
}

.contact-container{

    display:grid;

    grid-template-columns:
    0.9fr
    1.3fr;

    gap:4rem;

    align-items:start;
}

.contact-info{

    max-width:350px;
}

.contact-info h3{

    font-size:2rem;

    margin-bottom:1rem;
}

.contact-info p{

    font-size:1rem;

    line-height:1.6;
}

.contact-details{

    margin-top:1.5rem;

    gap:.75rem;
}

.contact-details a,
.contact-details p{

    font-size:1rem;
}

.contact-form{

    width:100%;
}

.form-row{

    display:grid;

    grid-template-columns:
    repeat(2,minmax(220px,1fr));

    gap:1.5rem;

    margin-bottom:1.5rem;
}

.form-group label{

    font-size:.95rem;
}

.form-group input,
.form-group textarea{

    font-size:.95rem;

    padding:.75rem 0;
}

.send-btn{

    padding:.9rem 1.75rem;

    font-size:.95rem;
}

 .footer {
    padding: 3rem 3rem 2rem;
  }

  .footer-top {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
  }

  .footer-intro p {
    font-size: 1.25rem;
    max-width: 230px;
    line-height: 1.25;
  }

  .footer-right {
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-links a,
  .footer-social a,
  .footer-legal a,
  .footer-info p {
    font-size: 0.9rem;
  }

  .footer-info {
    gap: 0.6rem;
  }

  .footer-bottom {
    margin-top: 3rem;
    gap: 1.5rem;
  }

  .copyright {
    white-space: normal;
    font-size: 0.85rem;
  }

  .footer-logo {
    font-size: clamp(4rem, 8vw, 6rem);
    white-space: nowrap;
  }
}


/* ======================
   MOBILE & SMALL PHONES
   ====================== */

/* Mobile Landscape & Small Tablets (481px - 768px) */
@media (max-width: 768px) {
    /* TOP BAR */
     .top-bar{
        display:none;
    }

    .top-left {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .contact-item {
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    .top-right {
        gap: 0.5rem;
    }

  .menu-toggle{
        display:block;
    }

    .navbar{

        flex-direction:row;

        justify-content:space-between;

        z-index:100;
    }

    .navbar ul{

        position:absolute;

        top:100%;

        left:0;

        width:100%;

        flex-direction:column;

        background:#000;

        padding:2rem;

        display:none;

        z-index:100;
    }

    .navbar ul.active{
        display:flex;
    }

    .navbar .divider{
        display:none;
    }

    .join-nav{
        display:list-item;
        margin-top:1rem;
    }

    .join-nav a{
        display:inline-block;
        background:white;
        color:black;
        padding:0.75rem 1.5rem;
        font-weight:600;
    }

    .join-btn{
        display:none;
    }

    /* HERO */
    .hero-content {
        width: 90%;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        min-height: auto;
        padding: 2rem 0 6rem;
    }
    .hero-left h1 {
        font-size: 1rem;
        line-height: 1.1;
    }
    .event-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 16px;
    }
    .event-card img {
        height: 110px;
    }
    .event-details p {
        font-size: 0.8rem;
        gap: 8px;
    }
    .hero-footer {
        position: relative;
        bottom: auto;
        padding: 1rem 5%;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
    .coordinates,
    .countdown {
        font-size: 1.2rem;
    }

    /* MODAL */
    .modal-content {
        width: 90%;
        max-width: 380px;
        padding: 24px;
        margin: 0 1rem;
    }
    .modal-content h2 {
        font-size: 2.5rem;
    }
    .route-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .route-btn {
        padding: 12px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .info-item {
        font-size: 0.9rem;
    }
    .whatsapp-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    .close-modal {
        top: 12px;
        right: 12px;
    }

    /* STATS */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 3rem 5%;
    }
    .counter {
        font-size: 3rem;
    }
    .stat p {
        font-size: 1rem;
    }

    /* ABOUT */
    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 5%;
        text-align: center;
    }
    .about-left {
        grid-column: auto;
    }
    .about-left h2 {
        font-size: 2.2rem;
        max-width: 100%;
    }
    .section-tag {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
    .about-images {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .image-top,
    .image-bottom {
        width: 200px;
        height: 250px;
        margin-bottom: 0;
    }
    .image-bottom {
        margin-bottom: 0;
    }
    .about-right p {
        font-size: 0.95rem;
        text-align: center;
    }

    /* WEEKLY RUN */
    .weekly-content {
        padding: 3rem 5%;
    }
    .weekly-content h2 {
        font-size: 1.8rem;
    }
    .weekly-content p {
        font-size: 0.95rem;
    }
    .route-grid {
        flex-direction: column;
        height: auto;
    }
    .route-card {
        height: 280px;
        width: 100%;
    }
    .route-card:hover {
        flex: 1;
    }
    .route-info {
        bottom: 20px;
    }
    .route-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .route-info p {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    .route-info span {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    /* GALLERY */
    .gallery-section {
        padding: 3rem 4%;
    }
    .gallery-title h2 {
        font-size: 2.2rem;
    }
    .gallery-description p {
        font-size: 0.95rem;
    }
    .gallery-carousel {
        height: 420px;
    }
    .gallery-card {
        width: 260px;
        height: 360px;
    }
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .prev {
        left: 5px;
    }
    .next {
        right: 5px;
    }

    /* FAQ */
    .faq-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 5%;
    }
    .faq-left {
        text-align: center;
    }
    .faq-left h2 {
        font-size: 2rem;
    }
    .faq-question {
        font-size: 0.95rem;
        padding: 0.9rem 0;
    }
    .faq-answer {
        font-size: 0.85rem;
    }

    /* CONTACT */
    .contact-section {
        padding: 3rem 5%;
    }
    .contact-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-info {
        max-width: 100%;
        text-align: center;
    }
    .contact-info h3 {
        font-size: 1.6rem;
    }
    .contact-info p {
        font-size: 0.9rem;
    }
    .contact-details {
        align-items: center;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 1.2rem;
    }
    .form-group label {
        font-size: 0.85rem;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
    .send-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    /* FILLER SECTION */
    .filler-content h2 {
        font-size: 2rem;
    }

    /* FOOTER */
    .footer {
        padding: 2rem 1.25rem 1.5rem;
    }

    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* Center the intro text on mobile */
    .footer-intro p {
        font-size: 1.1rem;
        line-height: 1.3;
        max-width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* Reorganize footer-right into 2 columns */
    .footer-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    /* Style each column group */
    .footer-links,
    .footer-social,
    .footer-info,
    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    /* Make all text slightly smaller for mobile */
    .footer-links a,
    .footer-social a,
    .footer-legal a,
    .footer-info p {
        font-size: 0.85rem;
    }

    /* Style the weekly run info block */
    .footer-info p:first-child {
        font-weight: 700;
        margin-bottom: 0.2rem;
    }

    /* Remove the extra br spacing */
    .footer-info br {
        display: none;
    }

    /* Bottom section - stack vertically */
    .footer-bottom {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.15);
    }

    /* Copyright text */
    .copyright {
        font-size: 0.75rem;
        white-space: normal;
    }

    /* Logo at bottom */
    .footer-logo {
        font-size: 2.5rem;
        white-space: normal;
        text-align: center;
        line-height: 1;
    }
}

/* ======================
   SMALL PHONES (up to 480px)
   ====================== */
@media (max-width: 480px) {
    /* TOP BAR */
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .top-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    .contact-item {
        font-size: 0.65rem;
    }

    /* NAVBAR */
    .navbar ul {
        gap: 0.7rem;
    }
    .navbar a {
        font-size: 0.7rem;
    }
    .logo img {
        width: 45px;
    }
    .join-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    /* HERO */
    .hero-left h1 {
        font-size: 1.8rem;
    }
    .event-card {
        max-width: 260px;
        padding: 12px;
    }
    .event-card img {
        height: 100px;
        margin-bottom: 12px;
    }
    .event-details p {
        font-size: 0.7rem;
        gap: 6px;
    }
    .coordinates,
    .countdown {
        font-size: 0.8rem;
    }

    /* MODAL */
    .modal-content {
        padding: 20px;
    }
    .modal-content h2 {
        font-size: 2rem;
    }
    .modal-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    .info-item {
        font-size: 0.8rem;
        gap: 8px;
    }
    .info-item svg {
        width: 14px;
        height: 14px;
    }

    /* STATS */
    .stats {
        gap: 1.5rem;
        padding: 2rem 4%;
    }
    .counter {
        font-size: 2.5rem;
    }
    .stat p {
        font-size: 0.85rem;
    }

    /* ABOUT */
    .about-left h2 {
        font-size: 1.8rem;
    }
    .image-top,
    .image-bottom {
        width: 160px;
        height: 200px;
    }
    .about-right p {
        font-size: 0.85rem;
    }

    /* WEEKLY RUN */
    .weekly-content h2 {
        font-size: 1.5rem;
    }
    .weekly-content p {
        font-size: 0.85rem;
    }
    .route-card {
        height: 240px;
    }
    .route-info h3 {
        font-size: 1rem;
    }
    .route-info p {
        font-size: 0.75rem;
    }
    .route-info span {
        font-size: 0.8rem;
    }

    /* GALLERY */
    .gallery-title h2 {
        font-size: 1.8rem;
    }
    .gallery-description p {
        font-size: 0.85rem;
    }
    .gallery-carousel {
        height: 360px;
    }
    .gallery-card {
        width: 220px;
        height: 310px;
    }
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    /* FAQ */
    .faq-left h2 {
        font-size: 1.6rem;
    }
    .faq-question {
        font-size: 0.85rem;
        padding: 0.75rem 0;
    }

    /* CONTACT */
    .contact-title {
        font-size: 2rem;
    }
    .contact-info h3 {
        font-size: 1.3rem;
    }
    .contact-info p {
        font-size: 0.85rem;
    }
    .contact-details a,
    .contact-details p {
        font-size: 0.85rem;
    }
    .send-btn {
        font-size: 0.85rem;
    }

    /* FILLER */
    .filler-content h2 {
        font-size: 1.5rem;
    }

    /* FOOTER */
    .footer {
        padding: 1.5rem 1rem 1.2rem;
    }

    .footer-top {
        gap: 1.5rem;
    }

    .footer-intro p {
        font-size: 1rem;
    }

    /* Keep 2 columns but reduce gap */
    .footer-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .footer-links a,
    .footer-social a,
    .footer-legal a,
    .footer-info p {
        font-size: 0.8rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        gap: 0.8rem;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .copyright {
        font-size: 0.7rem;
    }
}

/* Extra Small Phones (up to 360px) */
@media (max-width: 360px) {
    .hero-left h1 {
        font-size: 1.5rem;
    }
    .event-card {
        max-width: 240px;
    }
    .gallery-card {
        width: 200px;
        height: 280px;
    }
    .footer-logo {
        font-size: 1.8rem;
    }
    .navbar ul {
        gap: 0.5rem;
    }
    .navbar a {
        font-size: 0.65rem;
    }
}