/* 
 * Main Stylesheet
 * Uses modern CSS features: custom properties, flexbox, backdrop-filter 
 */

:root {
    /* Color Palette */
    --bg-color: #1e293b;
    --text-color: #ffffff;
    --text-muted: #ffffff;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-color-secondary: #8A9A5B; /* Olive/Sage Green */
    
    /* Glassmorphism settings */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Animations */
    --transition-speed: 0.3s;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Utility class for visually hiding content */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header & Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1;
    color: #fff;
}

.logo-subtitle {
    font-size: 0.85rem;
    font-weight: normal;
    margin: 0.2rem 0 0 0;
    color: var(--text-muted);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
}

/* 3-Column Grid Layout */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
}
.grid-col {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    color: var(--text-color);
}

.grid-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.agent-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: transform var(--transition-speed);
}

.agent-photo:hover {
    transform: scale(1.02);
}

.agent-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.agent-text p {
    margin-bottom: 1rem;
}

.agent-text p:last-child {
    margin-bottom: 0;
}

.agent-features {
    list-style: none;
    margin-bottom: 1rem;
    padding-left: 0;
}

.agent-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.agent-features li::before {
    content: "✔";
    color: var(--accent-color);
    font-weight: bold;
}

.logos-col {
    gap: 1.5rem;
    background: #ffffff;
    backdrop-filter: none;
    border-color: rgba(30, 41, 59, 0.1);
    color: var(--bg-color);
}

.logos-col-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--bg-color);
    text-align: center;
}

.partner-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.central-map-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: transform var(--transition-speed);
}

.central-map-image:hover {
    transform: scale(1.02);
}

.regions-block {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.regions-title {
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
}

.regions-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.regions-list li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.regions-list li::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-color-secondary);
    flex-shrink: 0;
}

.contact-block {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
}

.contact-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-phone::before {
    content: '📞';
}

.contact-email::before {
    content: '✉️';
}

.contact-list a {
        color: #ffffff;
        text-decoration: underline;
        transition: color var(--transition-speed);
        word-break: break-word;
    }

.contact-list a:hover {
    color: #fff;
}

.partner-description {
    font-size: 0.85rem;
    color: var(--bg-color);
    text-align: center;
    line-height: 1.4;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.logo-link:hover {
    transform: translateY(-3px);
}

.partner-logo {
    width: 100%;
    max-width: 170px;
    height: 70px;
    object-fit: contain;
    transition: transform var(--transition-speed);
}

.logo-link:hover .partner-logo {
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem 1rem;
    }

    .logo-title {
        font-size: 1.25rem;
    }

    /* Tablet and Mobile adjustments for Grid */
    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-col {
        padding: 1rem;
        min-width: 0;
    }
    
    .logos-col {
        display: grid;
        grid-template-columns: 1fr; /* Changed to single column */
        align-items: start;
        gap: 1rem;
    }

    .logos-col-title {
        grid-column: 1 / -1; /* Span across all columns */
    }

    .contact-list li.contact-email,
    .contact-list li.contact-phone  {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.25rem;
    }

    .contact-list li.contact-email a,
    .contact-list li.contact-phone a {
        flex-basis: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    /* Tablet Portrait specific */
    .three-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Make the third column span full width on tablet */
    .grid-col:nth-child(3) {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .logos-col .logo-link {
        flex: 1 1 calc(33.333% - 1rem);
    }
}
