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

:root {
    --primary: #2C4A63;
    --primary-light: #5B87A6;
    --secondary: #B8703E;
    --accent: #C17F2A;
    --dark: #16232F;
    --light: #F7F3EC;
    --text: #2A3138;
    --border: #E3DCCF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #FFFFFF;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero.hero-compact {
    padding: 4rem 2rem;
}

.hero.hero-image {
    background: linear-gradient(135deg, rgba(15, 42, 67, 0.3) 0%, rgba(30, 64, 99, 0.6) 100%),
        url("photos/website_images/fluxtower_landscape.png") center 25% / cover no-repeat;
    padding: 8rem 2rem;
}

.hero.hero-image.hero-image-team {
    background: linear-gradient(135deg, rgba(15, 42, 67, 0.7) 0%, rgba(30, 64, 99, 0.65) 100%),
        url("photos/website_images/team.png") center 20% / cover no-repeat;
}

.hero.hero-image.hero-image-cornfield {
    background: linear-gradient(135deg, rgba(15, 42, 67, 0.7) 0%, rgba(30, 64, 99, 0.65) 100%),
        url("photos/website_images/cornfield.jpeg") center 10% / cover no-repeat;
}

.hero.hero-image.hero-image-oak-savannah {
    background: linear-gradient(135deg, rgba(15, 42, 67, 0.7) 0%, rgba(30, 64, 99, 0.65) 100%),
        url("photos/website_images/oak_savannah.jpeg") center / cover no-repeat;
}

.hero.hero-image h1,
.hero.hero-image p,
.hero.hero-image h2 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
}

.hero h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
}

.hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero.hero-compact h1 {
    font-size: 2.6rem;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 1;
    color: white;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--accent);
}

.cta-button:hover {
    background: white;
    color: var(--primary);
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

.cta-button-secondary:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 5rem 2rem;
}

section.alt {
    background: var(--light);
}

section.peach {
    background: var(--light);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

section > .container > p:first-of-type {
    font-size: 1.1rem;
    color: #64748B;
    margin-bottom: 3rem;
    max-width: 700px;
}

.hero > .container > p:first-of-type {
    color: white;
    margin-left: auto;
    margin-right: auto;
}

/* Overview Section */
.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.overview-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.overview-text p {
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.8;
    max-width: 700px;
}

.overview-visual {
    border-radius: 1rem;
    height: 400px;
    overflow: hidden;
}

.overview-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.service-card p {
    color: #64748B;
    line-height: 1.7;
}

.service-card a.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.service-card a.card-link:hover {
    text-decoration: underline;
}

/* Industries Grid (services page) */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.industry-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s;
}

.industry-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.industry-card h4 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.industry-card p {
    color: #64748B;
    font-size: 0.95rem;
}

/* Capability sections (services page) */
.capability {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 90px;
}

.capability:last-child {
    border-bottom: none;
}

.capability-heading h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.capability-heading p {
    color: #64748B;
    margin-bottom: 1rem;
}

.capability-list {
    list-style: none;
}

.capability-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.9rem;
    color: #334155;
}

.capability-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
}

.capability-list li strong {
    color: var(--text);
}

/* Services sub-nav (jump links on services page) */
.services-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0;
}

.services-subnav a {
    text-decoration: none;
    color: var(--primary);
    background: var(--light);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.services-subnav a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Team Section */
.team-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.team-content p {
    font-size: 1.1rem;
    color: #64748B;
    margin-bottom: 2rem;
}

.team-highlight {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary-light);
}

/* About page - founder bios */
.team-heading {
    margin-top: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.profile-link .team-photo {
    transition: box-shadow 0.3s;
}

.profile-link:hover .team-photo {
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.25);
}

.profile-link:hover h3 {
    color: var(--primary-light);
    text-decoration: underline;
}

.team-member h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.team-member .role {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.team-member p.bio {
    color: #64748B;
    text-align: left;
}

/* Contact Section */
.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-container p {
    font-size: 1.1rem;
    color: #64748B;
    margin-bottom: 2rem;
}

.contact-email-link {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    background: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--secondary);
    transition: all 0.3s;
}

.contact-email-link:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

footer p {
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 992px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .nav-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    nav .container {
        flex-wrap: wrap;
    }

    .overview-content {
        grid-template-columns: 1fr;
    }

    .overview-visual {
        height: 300px;
    }

    .cta-button-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }

    section h2 {
        font-size: 2rem;
    }

    .capability {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }
}
