/* Bahrain Coverage Hub - Map-Centric Design */
/* Colors: Light sand background, blue accents, dark text */

:root {
    --sand-light: #f5f0e6;
    --sand: #ebe4d4;
    --sand-dark: #d4cbb8;
    --blue-primary: #1e5f8a;
    --blue-light: #3a8bc2;
    --blue-dark: #0d3a5c;
    --text-dark: #1a1a1a;
    --text-medium: #444444;
    --text-light: #666666;
    --white: #ffffff;
    --coverage-excellent: #2ecc71;
    --coverage-good: #f1c40f;
    --coverage-fair: #e67e22;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--sand-light);
    color: var(--text-dark);
    line-height: 1.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-text span {
    font-weight: 400;
    opacity: 0.9;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-map {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Map Container */
.map-container {
    background: linear-gradient(145deg, var(--sand) 0%, var(--sand-light) 100%);
    border-radius: 12px;
    height: 350px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--sand-dark);
}

.bahrain-map {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bahrain-shape {
    position: relative;
    width: 280px;
}

/* Bahrain SVG Shape */
.bahrain-outline {
    fill: var(--sand-light);
    stroke: var(--blue-primary);
    stroke-width: 2;
}

.coverage-zone {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.zone-1 {
    width: 60px;
    height: 60px;
    background: var(--coverage-excellent);
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.zone-2 {
    width: 80px;
    height: 80px;
    background: var(--coverage-excellent);
    top: 40%;
    left: 50%;
    animation-delay: 0.5s;
}

.zone-3 {
    width: 50px;
    height: 50px;
    background: var(--coverage-good);
    top: 60%;
    left: 20%;
    animation-delay: 1s;
}

.zone-4 {
    width: 70px;
    height: 70px;
    background: var(--coverage-good);
    top: 30%;
    left: 60%;
    animation-delay: 1.5s;
}

.zone-5 {
    width: 40px;
    height: 40px;
    background: var(--coverage-fair);
    top: 75%;
    left: 70%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Map Legend */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-excellent { background: var(--coverage-excellent); }
.legend-good { background: var(--coverage-good); }
.legend-fair { background: var(--coverage-fair); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--blue-primary);
}

.btn-primary:hover {
    background: var(--sand-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--blue-primary);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    color: var(--blue-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--blue-light);
    display: inline-block;
}

.content-section h3 {
    color: var(--blue-primary);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.content-section p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.content-section ul {
    margin: 20px 0 20px 30px;
    color: var(--text-medium);
}

.content-section ul li {
    margin-bottom: 12px;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--blue-primary);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow);
}

.info-card h3 {
    color: var(--blue-dark);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.info-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.info-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Stats Section */
.stats-section {
    background: var(--white);
    border-radius: 16px;
    padding: 50px;
    margin: 50px 0;
    box-shadow: 0 4px 20px var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue-primary);
    display: block;
}

.stat-label {
    color: var(--text-medium);
    font-size: 1rem;
    margin-top: 10px;
}

/* Coverage Map Section */
.coverage-map-section {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 20px var(--shadow);
}

.coverage-map-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.large-map-container {
    height: 500px;
    background: linear-gradient(145deg, var(--sand) 0%, var(--sand-light) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--sand-dark);
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--blue-dark);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--sand-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--blue-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-medium);
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow);
}

.contact-info h3 {
    color: var(--blue-dark);
    margin-bottom: 30px;
    font-size: 1.4rem;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--blue-primary);
    width: 40px;
}

.contact-item .details h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-item .details p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow);
}

.contact-form h3 {
    color: var(--blue-dark);
    margin-bottom: 30px;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--sand-dark);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Disclaimer Box */
.disclaimer-box {
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
    border-left: 4px solid var(--blue-primary);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.disclaimer-box h4 {
    color: var(--blue-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.disclaimer-box p {
    color: var(--text-medium);
    margin: 0;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-about p {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--sand);
}

.comparison-table th {
    background: var(--blue-primary);
    color: var(--white);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--sand-light);
}

/* Infrastructure Diagram */
.infrastructure-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.diagram-item {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
}

.diagram-item::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--blue-primary);
}

.diagram-item:last-child::after {
    display: none;
}

.diagram-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.diagram-item h4 {
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.diagram-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blue-dark);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 16px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .diagram-item::after {
        display: none;
    }
    
    .map-legend {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}