/* info.na - Namibian flag palette stylesheet */

:root {
    --blue: #003580;
    --red: #D21034;
    --green: #009543;
    --gold: #FFD100;
    --white: #FFFFFF;
    --dark: #1A1A2E;
    --light-bg: #F8F9FA;
    --text: #1A1A2E;
    --text-muted: #4A4A6A;
    --border: #E2E8F0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --max-width: 1140px;
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* === NAV === */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-info {
    color: var(--blue);
}

.logo-dot {
    color: var(--red);
}

.logo-na {
    color: var(--green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-links a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
    background: var(--light-bg);
    color: var(--blue);
    text-decoration: none;
}

.nav-cta {
    flex-shrink: 0;
    margin-left: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, #005bb5 60%, #0069cc 100%);
    color: var(--white);
    padding: 80px 24px 64px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero h1 .accent-red {
    color: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === SEARCH BOX === */
.search-box {
    background: var(--white);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-lg);
}

.search-box input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 16px;
    color: var(--text);
    background: transparent;
    font-family: inherit;
}

.search-box input[type="text"]::placeholder {
    color: var(--text-muted);
}

.search-box button {
    white-space: nowrap;
    flex-shrink: 0;
}

.search-tld-hint {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: -24px;
    margin-bottom: 24px;
}

/* === SECTION === */
.section {
    padding: 64px 24px;
}

.section-alt {
    background: var(--light-bg);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    margin-bottom: 8px;
}

/* === CARD GRID === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* === CARD === */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    margin-top: 16px;
}

.card-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* === CARD FEATURED === */
.card-featured {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    position: relative;
}

.card-featured:hover {
    background: #004a9f;
}

.card-featured h3,
.card-featured p {
    color: var(--white);
}

.card-featured .card-price {
    color: var(--gold);
}

.card-featured .card-price span {
    color: rgba(255,255,255,0.7);
}

.card-featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
    text-decoration: none;
    line-height: 1;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background: #004a9f;
    border-color: #004a9f;
}

.btn-green {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn-green:hover {
    background: #007a38;
    border-color: #007a38;
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

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

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 8px 16px;
}

.btn-lg {
    font-size: 1.05rem;
    padding: 16px 32px;
}

/* === TRUST BAR === */
.trust-bar {
    background: var(--dark);
    color: var(--white);
    padding: 16px 24px;
    text-align: center;
}

.trust-bar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.trust-item .trust-icon {
    color: var(--gold);
    font-size: 1rem;
}

/* === DOMAIN RESULTS === */
.domain-results {
    margin-top: 16px;
    display: none;
}

.domain-results.visible {
    display: block;
}

.domain-result {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.domain-result.available {
    border-color: var(--green);
    background: #f0fdf4;
}

.domain-result.taken {
    border-color: var(--border);
    background: var(--light-bg);
    opacity: 0.7;
}

.domain-result-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.domain-result.available .domain-result-name {
    color: var(--green);
}

.domain-result-status {
    font-size: 0.8rem;
    font-weight: 600;
}

.domain-result.available .domain-result-status {
    color: var(--green);
}

.domain-result.taken .domain-result-status {
    color: var(--text-muted);
}

.domain-result-price {
    font-weight: 700;
    color: var(--blue);
    font-size: 0.95rem;
}

.domain-result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === BADGES === */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-gold {
    background: #fef9c3;
    color: #854d0e;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

/* === STEPS === */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    counter-reset: steps;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === TLD TABLE === */
.tld-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tld-table th,
.tld-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tld-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--light-bg);
}

.tld-table tr:hover td {
    background: var(--light-bg);
}

.tld-featured td {
    font-weight: 600;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 56px 24px 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0.75;
}

.footer-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--gold);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a,
.footer-col ul li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-legal a {
    color: inherit;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--white);
    text-decoration: none;
}

/* === SPINNER ANIMATION === */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

.spinner-white {
    border-color: rgba(255,255,255,0.3);
    border-top-color: var(--white);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === MISC UTILITIES === */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* === ALERT / NOTICE === */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-info {
    background: #eff6ff;
    border-color: var(--blue);
    color: #1e3a5f;
}

.alert-success {
    background: #f0fdf4;
    border-color: var(--green);
    color: #14532d;
}

.alert-error {
    background: #fef2f2;
    border-color: var(--red);
    color: #7f1d1d;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px 16px;
        gap: 2px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        display: none;
    }

    .nav-container {
        position: relative;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .trust-bar-container {
        gap: 20px;
    }

    .section {
        padding: 48px 16px;
    }

    .domain-result {
        flex-wrap: wrap;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .tld-table {
        font-size: 0.85rem;
    }

    .tld-table th,
    .tld-table td {
        padding: 10px 12px;
    }
}
