/* Evomin Website Styles */
:root {
    --primary: #0088CC;
    --secondary: #737880;
    --bg-light: #F4F6F8;
    --border: #D1D5DA;
    --text-dark: #333840;
    --card-bg: #fff;
    --accent-bg: #E6F4FB;
    /* Approximate sticky header height */
    --nav-height: 60px;
}

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

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

section[id] {
    /* Remove duplicate top gap when navigating via anchor */
    scroll-margin-top: var(--nav-height);
}

a {
    text-decoration: none;
}

header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999; /* Below mobile nav overlay */
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

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

.logo img {
    height: 40px;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    font-weight: 600;
    transition: color .3s;
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 40px;
}

nav a:hover {
    color: var(--primary);
}

#hero {
    background: #fff;
    text-align: center;
    padding: 80px 20px;
    background-image: url('assets/truck_and_shovel.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(230, 244, 251, 0.9);
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: clamp(28px, 6vw, 48px);
    color: var(--primary);
    margin-bottom: 16px;
}

#hero p {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto 24px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: #006fa3; /* Slightly darker than primary */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section {
    padding: 60px 20px;
}

h2 {
    font-size: 32px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 24px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.about-list {
    max-width: 800px;
    margin: 16px auto;
    padding-left: 20px;
    list-style: disc;
}

/* Offerings Styles */
#offerings .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.offering-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
}

.offering-card:hover {
    background: var(--accent-bg);
}

.offering-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.offering-card h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 12px;
}

.offering-card h4 {
    color: var(--secondary);
    font-size: 18px;
    margin: 16px 0 8px;
}

.offering-card ul {
    list-style: none;
    padding-left: 0;
}

.offering-card ul li {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.offering-card ul li::before {
    content: '\2022';
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* Team & others unchanged */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: background 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    background: var(--accent-bg);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card p,
.card ul {
    margin-bottom: 12px;
}

.card ul {
    list-style: disc inside;
    margin-left: 20px;
}

footer {
    background: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        min-height: auto;
    }

    nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 14px;
        height: auto;
        padding: 8px 12px;
    }

    #hero {
        padding: 60px 20px;
    }

    #hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    #hero p {
        font-size: 16px;
        line-height: 1.5;
    }

    section {
        padding: 40px 20px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .container {
        padding: 0 15px;
    }

    #offerings .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offering-card {
        padding: 20px;
    }

    .offering-card h3 {
        font-size: 20px;
    }

    .offering-card h4 {
        font-size: 16px;
    }

    .card {
        padding: 20px;
        flex-direction: column;
    }

    .card h3 {
        font-size: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
        z-index: 1100;
        align-self: center;
        /* Remove any default vertical offset */
        top: 0;
        bottom: 0;
        height: 40px;
        width: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 65%;
        max-width: 260px;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
    }

    header nav.open {
        transform: translateX(0);
    }

    header nav ul {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    header nav li {
        width: 100%;
    }

    header nav a {
        width: 100%;
        padding: 8px 0;
        font-size: 16px;
    }

    nav a,
    .btn,
    .offering-card,
    .card {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Restore left-alignment for leadership cards */
    .team-grid .card {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .team-grid .card h3 {
        justify-content: flex-start;
    }

    .nav-icon {
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    header nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
        padding-left: 0;
        padding-top: 8px;
        padding-bottom: 8px;
        box-sizing: border-box;
    }
    header nav ul {
        width: 100%;
    }
    header nav li {
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }

    nav ul {
        gap: 12px;
    }

    nav a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .logo img {
        height: 32px;
    }

    #hero {
        padding: 40px 15px;
    }

    #hero h1 {
        font-size: 24px;
    }

    #hero p {
        font-size: 15px;
    }

    section {
        padding: 30px 15px;
    }

    h2 {
        font-size: 22px;
    }

    .offering-card,
    .card {
        padding: 16px;
    }

    .offering-card h3,
    .card h3 {
        font-size: 18px;
    }

    .offering-card h4 {
        font-size: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .mobile-break {
        display: block;
    }
}

@media (max-width: 375px) {
    .mobile-break {
        display: block;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    nav a,
    .btn,
    .offering-card,
    .card {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.linkedin-icon-link {
    display: inline-flex;
    align-items: center;
    margin-right: 0;
    transition: opacity 0.2s;
}

.linkedin-icon-link:hover .linkedin-icon {
    opacity: 0.7;
}

.linkedin-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
}

.about-venn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 0 0;
}

.about-venn-img {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .about-venn-img {
        max-width: 98vw;
    }
    .about-venn-wrapper {
        margin: 24px 0 0 0;
    }
}

.mobile-break {
    display: none;
}

@media (max-width: 480px) {
    .mobile-break {
        display: block;
    }
}

@media (max-width: 375px) {
    .mobile-break {
        display: block;
    }
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
    outline: none;
    transition: background 0.2s;
    color: var(--secondary);
}
.accordion-header:hover {
    background: var(--bg-light);
}
.accordion-icon {
    font-size: 1.2em;
    transition: transform 0.2s;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 8px;
}
.accordion-item.active .accordion-content {
    max-height: 500px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile navigation toggle button (hidden by default on large screens) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary);
}

/* Ensure the hamburger is visible on mobile after the base rule above */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        margin-left: auto;
        z-index: 1100; /* Above nav overlay */
    }
}

/* Navigation icons (hidden by default on desktop) */
.nav-icon {
    display: none;
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Show icons in mobile menu */
@media (max-width: 768px) {
    .nav-icon {
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    header nav a {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

/* Hide icons on desktop */
@media (min-width: 769px) {
    .nav-icon {
        display: none;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.18);
        z-index: 999;
        display: none;
        transition: opacity 0.2s;
    }
    .nav-overlay.open {
        display: block;
    }
}