:root {
    --navy: #0F1F3D;
    --blue: #007BFF;
    --lightgrey: #F4F6F9;
    --darktext: #1c1c1c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--darktext);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Utility Bar */
.utility-bar {
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    padding: 6px 40px;
    text-align: right;
}

.utility-bar a {
  color: inherit;
  text-decoration: none; 
}

/* Header */
header {
    /*background: var(--navy);*/
    background: #fff;
    color: #000;
    padding: 25px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.shrink {
    padding: 12px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    /*height: 48px;
    width: auto;*/
}

nav a {
    color: #000;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
}

nav a:hover {
    color: #0067D6;
}

.btn-primary {
    background: var(--blue);
    padding: 10px 18px;
    border-radius: 4px;
}

.btn-moreinfo {
    background: var(--blue);
    padding: 10px 18px;
    border-radius: 4px;
    color: white;
    text-decoration: none; 

}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 8px 0;
    display: none;
    border-top: 3px solid #007BFF;
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: #1c1c1c;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #F4F6F9;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(44, 71, 122, 0.9), rgba(15,31,61,0.7)),
                url('img/substationwireframe.jpg') center/cover no-repeat;
    color: #fff;
    padding: 120px 40px;
    text-align: center;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 50px;
}

.hero-buttons a {
    margin: 0 10px;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.hero-buttons .primary {
    background: var(--blue);
    color: #fff;
}

.hero-buttons .secondary {
    background: #fff;
    color: var(--navy);
}

.heroContact {
    background: linear-gradient(rgba(44, 71, 122, 0.9), rgba(15,31,61,0.6)),
                url('img/redsubstation.png') center/cover no-repeat;
    color: #fff;
    padding: 120px 40px;
    text-align: center;
}

.heroContact h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
}

.heroContact p {
    font-size: 18px;
    margin-bottom: 50px;
}

.hero-buttons a {
    margin: 0 10px;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.hero-buttons .primary {
    background: var(--blue);
    color: #fff;
}

.hero-buttons .secondary {
    background: #fff;
    color: var(--navy);
}

/* Sections */
section {
    padding: 80px 40px;
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 50px;
}

/* 3 Column Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.flexgrid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.flexcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: space-between;
    flex-wrap: wrap;
    text-align: center;
    padding: 20px;

}

.flexcarddiv{
    padding: 20px;


}

.card {
    text-align: center;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
}

/* clients Section */
.clients {
    background: var(--lightgrey);
}

/* Light Section */
.light {
    background: var(--lightgrey);
}

/* Industries */
.industries ul {
    list-style: none;
    text-align: center;
}

.industries li {
    margin: 10px 0;
}

.industries p {
    text-align: center;
}

/* Situation */
.situation ul {
    list-style:circle;
    text-align: left;
}

.situation li {
    margin: 10px 0;
}

/* Choices */

.choices {
    background: var(--lightgrey);
}
.choices ul {
    list-style:circle;
    text-align: left;
}

.choices li {
    margin: 10px 0;
}

.image-wrapper {
  /* This flex property allows the wrapper to grow and shrink, 
     acting as a flexible container for the image */
  flex: 1 1 1; /* Distributes space and sets a base width */
  max-width: 500px; /* Optional: Sets a maximum width for individual images if needed */
}

.image-wrapper img {
  width: 100%; /* Ensures the image takes the full width of its wrapper */
  height: 200px; /* Sets a fixed height for uniform look in a gallery */
  object-fit: contain; 
  display: block; /* Removes default bottom margin/whitespace that can appear under images */
}

.image-wrapper-flowchart {

  /* height: 500px; /* Sets a fixed height for uniform look in a gallery*/ */
  flex: 1 1 1; /* Distributes space and sets a base width */
  /* max-width: 500px; /* Optional: Sets a maximum width for individual images if needed */ */
}

.image-wrapper-flowchart img {
  width: 100%; /* Ensures the image takes the full width of its wrapper */
  object-fit: contain; 
  display: block; /* Removes default bottom margin/whitespace that can appear under images */
}

/* Testimonial */
.testimonial {
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-size: 20px;
    padding: 100px 40px;
}

/* CTA */
.cta {
    background: var(--blue);
    color: #fff;
    text-align: center;
    padding: 60px 40px;
}

.cta a {
    display: inline-block;
    margin-top: 20px;
    background: #fff;
    color: var(--blue);
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--navy);
    color: #ccc;
    padding: 40px;
    text-align: left;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap:100px;
}

footer a {
  color: inherit;
  text-decoration: none; 
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 30px;
    }

    nav {
        display: none;
    }
}
.contact-section {
    background: #F4F6F9;
    padding: 100px 40px;
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: span 2;
}

label {
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: border 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.form-button {
    grid-column: span 2;
    background: #007BFF;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-button:hover {
    background: #005fd1;
}

.form-message {
    grid-column: span 2;
    margin-top: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form form {
        grid-template-columns: 1fr;
    }

    .full-width, .form-button, .form-message {
        grid-column: span 1;
    }
}
/* =========================================
   RESPONSIVE NAVIGATION IMPROVEMENTS
========================================= */

/* Hide hamburger on desktop */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* =========================================
   TABLET (≤ 1024px)
========================================= */

@media (max-width: 1024px) {

    .flexgrid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-container {
        justify-content: space-between;
    }

    .card {
        width: 80%;
    }

    footer {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

}

/* =========================================
   MOBILE (≤ 768px)
========================================= */

@media (max-width: 768px) {

    /* Utility bar */
    .utility-bar {
        text-align: center;
        padding: 8px 20px;
        font-size: 12px;
    }

    /* Header layout */
    header {
        padding: 18px 20px;
    }

    header.shrink {
        padding: 10px 20px;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Show hamburger */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    /* Hide nav by default */
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }

    /* Show nav when active */
    nav.active {
        display: flex;
    }

    nav a {
        margin: 10px 0;
        font-size: 18px;
    }

    /* Dropdown mobile fix */
    .dropdown-menu {
        position: relative;
        box-shadow: none;
        border-top: none;
    }

    /* Hero */
    .hero,
    .heroContact {
        padding: 80px 20px;
    }

    .hero h1,
    .heroContact h1 {
        font-size: 28px;
    }

    .hero p,
    .heroContact p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-buttons a {
        display: block;
        margin: 10px auto;
        width: 80%;
        text-align: center;
    }

    /* Sections */
    section {
        padding: 60px 20px;
    }

    .flexgrid {
        flex-direction: column;
        gap: 30px;
    }

    .card {
        width: 100%;
    }

    .image-wrapper img {
        height: auto;
    }

    /* Clients */
    .clients img {
        max-height: 60px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

}