/* Custom CSS Properties matching your logo colors */
:root {
    --primary-color: #0d47a1; /* Royal Blue */
    --secondary-color: #d32f2f; /* Ambulance Red */
    --dark-neutral: #1a1a1a;
    --light-neutral: #f4f6f9;
    --white: #ffffff;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--dark-neutral);
    background-color: var(--white);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-neutral);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

/* Hero Sections */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #051c3f 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Main Content & Containers */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #b71c1c;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: var(--light-neutral);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

/* Forms */
form {
    background: var(--light-neutral);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; }
    nav ul { margin-top: 15px; }
    .hero h2 { font-size: 32px; }
}

/* Logo Tuning Styles */
.logo img {
    height: 60px; /* Restricts the logo to a professional height */
    width: auto;  /* Maintains correct proportions without stretching */
    display: block;
    transition: transform 0.2s ease-in-out;
}

.logo img:hover {
    transform: scale(1.02); /* Slight responsive growth animation on cursor hover */
}

/* Adjust mobile layout spacing for the image height */
@media (max-width: 768px) {
    .logo img {
        height: 50px; /* Scales down slightly on mobile views */
    }
}
