/* ============================================================
   ENB Engineering — Shared Stylesheet
   ============================================================ */

/* Font face — replace placeholder path with actual Montserrat TTF */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #7ba778;
    text-decoration: none;
}

a:hover {
    cursor: pointer;
    /* No colour or font-size changes on hover */
}

ul {
    list-style: none;
}

/* ---------- Header ---------- */
header {
    background-color: #0e6f90;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background-color: #FFFFFF;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: left;
    font-weight: bold;
    color: #0e6f90;
    font-size: 1.2rem;
}

.brand-name {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: bold;
    position: relative;
    left: 10px;
}

/* ---------- Navigation ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 5px 0;
    transition: 0.3s;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1rem;
}

nav a:hover {
    cursor: pointer;
}

/* ---------- Main Content ---------- */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.page-title {
    background-color: #0e6f90;
    color: #FFFFFF;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.page-title h1 {
    font-size: 1.75rem;
}

section {
    margin-bottom: 2.5rem;
}

section h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0e6f90;
    padding-bottom: 0.5rem;
}

section p {
    margin-bottom: 1rem;
}

/* ---------- Cards (Services etc.) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.card-image {
    width: 100%;
    height: 160px;
    background-color: #0e6f90;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.9rem;
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0e6f90;
}

/* ---------- Hero ---------- */
.hero {
    background-color: #0e6f90;
    background-image:
    	linear-gradient( rgba( 0, 0, 0, 0.5 ), rgba( 0, 0, 0, 0.5 ) ),
	url( 'resources/PCBRender.png' );
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    position: relative;
    color: #FFFFFF;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 2.5rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border: none;
    color: #FFFFFF;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.hero .btn {
    display: inline-block;
    background-color: #FFFFFF;
    color: #0e6f90;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
footer {
    background-color: #0e6f90;
    color: #FFFFFF;
    padding: 2rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #FFFFFF;
}

.footer-section a:hover {
    cursor: pointer;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ---------- Utility ---------- */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.contact-icon {
    width: 32px;
    height: 32px;
    background-color: #0e6f90;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: bold;
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding-top: 1rem;
    }

    nav ul.active {
        display: flex;
    }

    .header-inner {
        position: relative;
    }

    nav {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 0.5rem 0;
    }

    .hero {
        padding: 2.5rem 1.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

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

/* ---------- Client Grid --------- */
.client-logos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.client-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.client-card:hover {
  transform: translateY(-4px);
}

.client-card img {
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
}

.client-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #333;
}

.client-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
