body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00274d;
    padding: 1em;
    color: white;
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1em;
}
nav a {
    color: white;
    text-decoration: none;
}
.cta-button {
    background: #ffcc00;
    padding: 0.5em 1em;
    border-radius: 5px;
    color: black;
    text-decoration: none;
    font-weight: bold;
}
.hero {
    padding: 4em;
    background: url('hero.jpg') no-repeat center center / cover;
    color: white;
    text-align: center;
}
section {
    padding: 2em;
}
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.service-card {
    flex: 1 1 calc(33% - 2em);
    background: #f0f0f0;
    padding: 1em;
    border-radius: 5px;
    text-align: center;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 500px;
}
form input, form textarea {
    padding: 0.5em;
    font-size: 1em;
}
form button {
    padding: 0.75em;
    background: #00274d;
    color: white;
    border: none;
    font-size: 1em;
}
footer {
    text-align: center;
    padding: 1em;
    background: #00274d;
    color: white;
}

.gallery {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}
.gallery img {
    width: 30%;
    border-radius: 8px;
}


/* Responsive Fixes */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul li {
        margin-bottom: 10px;
    }
    .service-grid {
        flex-direction: column;
    }
}

body {
    max-width: 100%;
    overflow-x: hidden;
}

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


/* SAFE Homepage Mobile Tweaks */
@media (max-width: 768px) {
  .hero {
    padding: 3em 1em;
    text-align: center;
  }
  .cta-button {
    margin-top: 1em;
    font-size: 1em;
  }
  section {
    padding: 2em 1em;
  }
  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.4em;
  }
  p {
    font-size: 1em;
  }
  nav ul {
    line-height: 1.6;
    flex-wrap: wrap;
  }
}


/* Consistent Header Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00274d;
    padding: 1em;
    color: white;
    flex-wrap: nowrap;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 1em;
    padding-left: 0;
    margin: 0;
    flex-wrap: nowrap;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
}
.logo:hover {
    color: #ffcc00;
}
