/* 
   Island Drains & Excavation - Main Stylesheet
   BRANDBOT: Updated from Loyalty 6 Energy Services branding
   Author: Cascade AI
   Date: March 14, 2025
*/

/* ---------- Base Styles ---------- */
:root {
    /* BRANDBOT: Updated color scheme for Island Drains marine/professional theme */
    --primary-color: #0C4A6E; /* Deep marine blue */
    --secondary-color: #FCD34D; /* Hazard yellow accent */
    --accent-color: #0369A1; /* Bright blue */
    --dark-color: #1E1E1E; /* Dark gray */
    --light-color: #F9FAFB; /* Light gray */
    --text-color: #333333;
    --text-light: #ffffff;
    --text-muted: #7f8c8d;
    --border-color: #ddd;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #fbbf24; /* Hazard yellow */
    color: var(--text-light);
}

.btn-secondary {
    background-color: #ffffff; /* White background */
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ---------- Header ---------- */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 69px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.logo p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--dark-color);
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 4rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ---------- Services Section ---------- */
.services {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.services-subsection {
    margin-bottom: 3rem;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.mt-4 {
    margin-top: 2.5rem;
}

.services-image {
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.services-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ---------- Contact Section ---------- */
.contact {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-main-logo {
    max-height: 207px;
    width: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-ccib-logo {
    width: 150px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

.footer-main-logo:hover,
.footer-ccib-logo:hover {
    transform: scale(1.05);
}

.footer-logo h2 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-logo p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--muted-text);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--muted-text);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-services li,
.footer-contact p {
    color: var(--muted-text);
    margin-bottom: 0.8rem;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ---------- Media Queries ---------- */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 2rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .company-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-logos {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-main-logo {
        max-height: 174px;
    }
    
    .footer-ccib-logo {
        width: 130px;
        padding: 6px;
    }
    
    .logo-image {
        max-height: 58px;
    }
}

@media screen and (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
