/* =====================================
   GLOBAL THEME VARIABLES
   ===================================== */
:root {
    --ips-navy: #1E3A5F;
    --ips-light-blue: #87CEFA;
    --ips-text: #333333;
    --ips-text-muted: #555555;
    --ips-bg: #ffffff;
}

/* =====================================
   GLOBAL RESET & BASE
   ===================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background-color: var(--ips-bg);
    color: var(--ips-text);
    line-height: 1.7;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
}

/* =====================================
   HEADER / NAVIGATION
   ===================================== */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--ips-navy);
    color: #ffffff;
    padding: 15px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    max-height: 60px;
}

.logo-container h1 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: bold;
    white-space: nowrap;
}

/* Main Nav */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: clamp(0.9rem, 0.9vw, 1.05rem);
    transition: color 0.3s, border-bottom-color 0.3s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--ips-light-blue);
}

.main-nav a.active {
    border-bottom-color: var(--ips-light-blue);
}

/* Dropdown (future use) */
.main-nav li {
    position: relative;
}

.main-nav .dropdown {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.main-nav li:hover .dropdown {
    display: block;
}

/* =====================================
   HERO SECTIONS
   ===================================== */

/* Home Hero */
#hero {
    position: relative;
    height: 80vh;
    background-image: url('images/hero-bg.jpg'); /* set your home hero image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

.hero-overlay h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-overlay p {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: #f5f5f5;
    margin-bottom: 25px;
    max-width: 900px;
}

/* Products & Solutions Hero */
#solutions-hero {
    position: relative;
    height: 55vh;
    background-image: url('images/products/amine-module.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

.solutions-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

#solutions-hero h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 15px;
    line-height: 1.2;
}

#solutions-hero p {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    max-width: 900px;
    color: #f5f5f5;
}

/* Services Hero */
#services-hero {
    position: relative;
    height: 55vh;
    background-image: url('images/services/refinery-flare.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

#services-hero .hero-overlay {
    background-color: rgba(0, 0, 0, 0.45);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

#services-hero h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 15px;
}

#services-hero p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    max-width: 900px;
    color: #f5f5f5;
}

/* Contact Hero */
#contact-hero {
    position: relative;
    height: 45vh;
    background-image: url('images/contact/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Dark overlay so text is readable */
#contact-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
}

#contact-hero h1,
#contact-hero p {
    position: relative;
    color: #ffffff;
}

#contact-hero h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 15px;
}

#contact-hero p {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto;
    color: #f3f3f3;
}

/* =====================================
   BUTTONS / CTAs
   ===================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    font-size: clamp(0.9rem, 0.9vw, 1rem);
    border: 2px solid transparent;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
}

/* Solid navy button */
.btn-primary {
    background-color: var(--ips-navy);
    color: #ffffff;
    border-color: var(--ips-navy);
}

/* Outline button */
.btn-secondary {
    background-color: transparent;
    color: var(--ips-navy);
    border-color: var(--ips-navy);
}

/* Hero-specific secondary (white text on dark) */
.hero-overlay .btn-secondary {
    color: #ffffff;
    border-color: var(--ips-light-blue);
}

.btn-primary:hover {
    background-color: var(--ips-light-blue);
    border-color: var(--ips-light-blue);
    color: var(--ips-navy);
}

.btn-secondary:hover {
    background-color: var(--ips-light-blue);
    color: var(--ips-navy);
}

.hero-actions,
.commitment-cta {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* =====================================
   SECTIONS / TYPOGRAPHY
   ===================================== */
section {
    padding: clamp(2.2rem, 5vw, 3.5rem) 10%;
    background-color: #ffffff;
    margin: 0;
    box-shadow: none;
    border-radius: 8px;
}

h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    margin-bottom: 20px;
    color: var(--ips-navy);
    font-weight: 700;
}

p {
    margin-bottom: 20px;
    color: var(--ips-text-muted);
    text-align: justify;
}

section p {
    font-size: clamp(0.95rem, 1vw, 1.05rem);
}

/* Lists */
ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 10px;
    padding-left: 0;
}

ul ul {
    list-style-type: circle;
    margin-left: 20px;
}

li {
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
}

/* Dedicated ids (inherit section) */
#products,
#services,
#expertise,
#contact {
    /* no extra styling currently */
}

/* =====================================
   CONTACT FORM
   ===================================== */
#contact {
    text-align: center;
}

#contact h2 {
    margin-bottom: 10px;
}

#contact p {
    margin-bottom: 20px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: clamp(0.9rem, 0.95vw, 1rem);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--ips-navy);
    outline: none;
}

/* Generic button (for forms) */
button {
    background-color: var(--ips-navy);
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--ips-light-blue);
}

/* =====================================
   FOOTER
   ===================================== */
.ips-footer {
    background-color: var(--ips-navy);
    color: #ffffff;
    width: 100%;
    padding: 40px 10%;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--ips-light-blue);
}

.footer-column p,
.footer-column ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e4e4e4;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--ips-light-blue);
}

/* Bottom Bar */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #dddddd;
}

/* =====================================
   SHARED IMAGES & GRIDS
   ===================================== */
.product-image,
.service-image {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product-gallery,
.service-gallery {
    margin-top: 20px;
}

.image-grid,
.product-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-grid img,
.product-grid img,
.service-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* =====================================
   RESPONSIVE BREAKPOINTS
   ===================================== */
@media (max-width: 992px) {
    #hero {
        height: 65vh;
    }
}

@media (max-width: 768px) {
    .sticky-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 10px 5%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    #hero {
        height: 55vh;
    }

    #solutions-hero {
        height: 40vh;
    }

    #services-hero {
        height: 40vh;
    }

    #contact-hero {
        height: 35vh;
        padding: 2rem 5%;
    }

    section {
        padding: 2.2rem 6%;
    }

    .hero-overlay,
    .solutions-hero-overlay {
        padding: 1.5rem;
    }

    .hero-actions,
    .commitment-cta {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
/* Ensure form fields use the same font as the website */
input,
textarea,
select,
button {
    font-family: inherit !important;
}
input::placeholder,
textarea::placeholder {
    font-family: inherit;
    color: #777;
}


