/* =========================================
   1. DESKTOP STYLES
   ========================================= */
.tight-footer {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    /* Desktop Padding: Top | Sides | Bottom */
    padding: 2rem 3% 1.5rem; 
    box-sizing: border-box;
    border-top: 1px solid #f0f0f0;
}

.footer-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- TOP ROW --- */
.footer-primary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Left Group: Logo - Text - Button */
.footer-left-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1.5;
}

.footer-mini-logo {
    height: 24px;
    width: auto;
    display: block;
}

.footer-compact-headline {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #111;
    white-space: nowrap; /* Keeps it on one line on desktop */
}

/* Button */
.footer-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s;
}

.footer-pill-btn:hover {
    background-color: #333;
    transform: translateY(-1px);
}

/* Right Group: Nav */
.footer-nav-group {
    display: flex;
    gap: 4rem; /* Spacing between columns */
    flex: 1;
    /* Keeps the whole group on the right side (matching your screenshot) */
    justify-content: flex-end; 
}

/* Individual Columns */
.nav-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    
    /* --- THE FIX --- */
    /* This forces the text inside to line up to the Left */
    align-items: flex-start !important; 
    text-align: left !important;
}

.nav-head {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    
    /* Force Left Align */
    text-align: left;
    align-self: flex-start;
}

/* Ensure links align left */
.nav-column a {
    text-decoration: none;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: opacity 0.2s;
    
    /* Force Left Align */
    text-align: left;
    align-self: flex-start;
}

/* --- BOTTOM ROW (Address) --- */
.footer-meta-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-divider {
    height: 1px;
    background-color: #e5e5e5;
    width: 100%;
}

.meta-content {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    font-size: 10px;
    color: #333;
    width: 100%;
}

.meta-year {
    font-weight: 700;
    white-space: nowrap;
}

.meta-legal-text {
    margin: 0;
    line-height: 1;
    color: #444;
    white-space: nowrap; /* One line on desktop */
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================
   2. MOBILE STYLES
   ========================================= */

@media (max-width: 900px) {

    
    .tight-footer {
        padding: 3rem 20px 2rem; 
        text-align: left !important; 
    }

    .footer-wrapper {
        gap: 2rem;
    }

   
    .footer-primary-row {
        flex-direction: column;
        align-items: flex-start; 
        gap: 1.5rem;
        width: 100%;
    }

    .footer-left-group {
        flex-direction: column;
        align-items: flex-start; 
        text-align: left;    
        gap: 1rem;
        width: 100%;
    }

    .footer-mini-logo {
        height: 28px; 
        margin-bottom: 5px;
        margin-left: 0; 
        margin-right: auto;
    }

    .footer-compact-headline {
        white-space: normal;
        font-size: 1.6rem;
        line-height: 1.1;
        max-width: 90%; 
        text-align: left;
    }

    .footer-pill-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: auto; 
        align-self: flex-start;
    }

    .footer-nav-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 2rem 1rem; 
        text-align: left;
        margin-top: 1rem;
    }

    .nav-column {
        align-items: flex-start; 
    }

    .nav-head {
        font-size: 11px;
        margin-bottom: 8px;
        opacity: 0.5;
    }

    .nav-column a {
        font-size: 13px;
        margin-bottom: 6px;
        display: block;
    }

    .meta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding-top: 1rem;
        text-align: left;
    }

    .meta-year {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .meta-legal-text {
        white-space: normal;
        line-height: 1.4;
        font-size: 11px;
        text-align: left;
        color: #666;
    }
}

/* =========================================
   3. POPUP / MODAL STYLES
   ========================================= */

/* The Overlay (Background dimming) */
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 300ms;
  visibility: hidden;
  opacity: 0;
  z-index: 9999; 
}

/* Shows the modal when the link is clicked */
.overlay:target {
  visibility: visible;
  opacity: 1;
}

/* The Box Itself */
.popup {
  margin: 70px auto; 
  padding: 30px;
  background: #fff;
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
  position: relative;
  font-family: 'Jost', sans-serif;
  text-align: justify;
  color: black;
  transition: all 0.3s ease-in-out; 
}

/* Modal Headline */
.popup h2 {
  margin-top: 0;
  color: #000;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* The Close 'X' Button */
.popup .close {
  position: absolute;
  top: 15px;
  right: 20px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #000000;
  line-height: 1;
}

.popup .close:hover {
  color: #000; 
}

/* The Scrolling Content Area */
.popup .content {
  max-height: 60vh; 
  overflow-y: auto; 
  line-height: 1.6;
  font-size: 14px;
  color: #444;
}

/* Mobile Adjustment for Modals */
@media screen and (max-width: 700px){
  .popup{
    width: 85%;
    margin: 50px auto; 
    padding: 20px;
  }
}