/*
 * Stylesheet for HNR Solutions website
 *
 * Updated April 2026 to reflect the new brand guidelines.
 * Brand colours:
 * - Primary navy: #1A2F4E
 * - Teal accent: #17A2A6
 * - Lime accent: #C3D82E (use sparingly)
 * - Charcoal text: #1F1F1F
 * - Light grey background: #F5F5F5
 *
 * Fonts:
 * - Headings: Montserrat (imported via Google Fonts)
 * - Body: Open Sans (imported via Google Fonts)
 */

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #1F1F1F;
}

body {
    line-height: 1.6;
    background-color: #F5F5F5;
}

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

/* Navigation bar */
header {
    background-color: #1A2F4E;
    color: #ffffff;
    padding: 20px 0;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Logo image in header */
.logo {
    height: 40px;
    margin-right: 20px;
    vertical-align: middle;
}
nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
}
nav a:hover {
    color: #C3D82E;
}

/* Hero section */
.hero {
    background-image: url('07732df8-627f-42b4-a0a7-3a7f124a78a3.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 47, 78, 0.6);
    /* overlay to improve contrast */
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.btn {
    display: inline-block;
    background-color: #17A2A6;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #0f7f81;
}
.btn-secondary {
    background-color: #C3D82E;
    color: #1A2F4E;
}
.btn-secondary:hover {
    background-color: #A2B123;
}

/* Section headings */
section {
    padding: 60px 0;
}
section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #1A2F4E;
    font-family: 'Montserrat', sans-serif;
}
section p {
    margin-bottom: 20px;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.service-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.service-item:hover {
    transform: translateY(-5px);
}
.service-item h3 {
    margin-bottom: 10px;
    color: #17A2A6;
    font-size: 1.2rem;
}

/* Two-column layout for information pages */
.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.two-columns div {
    flex: 1 1 45%;
}

/* Compliance list */
.compliance-list {
    list-style: disc;
    margin-left: 20px;
}

/* Footer */
footer {
    background-color: #2B2F33;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}
footer p {
    margin-bottom: 10px;
}
footer a {
    color: #C3D82E;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Forms */
form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
form button {
    background-color: #17A2A6;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
form button:hover {
    background-color: #0f7f81;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .two-columns div {
        flex: 1 1 100%;
    }
}