/* --- Variables & Base --- */
:root {
    --primary: #0a192f; /* Deep Navy */
    --accent: #c5a059;  /* Gold/Brass */
    --text: #333;
    --light: #f4f4f4;
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
}

/* --- Header & Nav --- */
header {
    display: flex;
    flex-direction: column; /* Stacked on mobile */
    align-items: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.logo img {
    max-height: 200px; /* Limits the size on large screens */
    width: auto;       /* Keeps the aspect ratio perfect */
    max-width: 100%;   /* Prevents the logo from ever being wider than the screen */
    display: block;
}

/* Optional: If you want it slightly smaller on mobile to save space */
@media (max-width: 768px) {
    .logo img {
        max-height: 100px; 
    }
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 15px;
    margin-bottom: 20px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* --- Hero Section --- */
.hero {
    background: var(--primary);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1rem;
    opacity: 0.9;
}

/* --- Services Grid --- */
.services {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 40px 20px;
}

.service-item {
    padding: 30px;
    background: var(--light);
    text-align: center;
    border-radius: 4px;
}

/* --- Data Sovereignty --- */
.data-sovereignty {
    display: flex;
    flex-direction: column-reverse; /* Image below text on mobile */
    padding: 40px 20px;
    gap: 30px;
    background: #fff;
    align-items: center;
    text-align: center;
}

.data-text h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 15px 0;
}

/* --- Buttons --- */
.btn-solid {
    background: var(--accent);
    color: white;
    padding: 15px 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid var(--primary);
    background: transparent;
    padding: 8px 15px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 20px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

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

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

.footer-links a { color: #fff; text-decoration: none; font-size: 0.9rem; }

/* --- DESKTOP REFINEMENTS (768px and up) --- */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 5%;
    }

    .logo img { height: 120px !important; margin-bottom: 0; }

    nav ul { margin-bottom: 0; gap: 30px; }

    .hero { padding: 100px 5%; }

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

    .services {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on tablet */
        padding: 60px 5%;
    }

    .data-sovereignty {
        flex-direction: row;
        text-align: left;
        padding: 80px 5%;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .services {
        grid-template-columns: repeat(4, 1fr); /* 4 across on desktop */
    }
}
