﻿/*====================================
  VARIABLES & RESET
====================================*/
:root {
    --color-primary: #085c91;
    --color-secondary: #ee9b00;
    --color-accent: white;
    --color-bg: #f5f5f5;
    --header-bg: var(--color-primary);
    --hero-bg: url('/images/hero-bg-light.png');
    --text-color: #333333;
    --font-sans: 'Montserrat', sans-serif;
    --transition: 0.3s ease;
}

[data-theme="dark"] {
    --color-primary: #66b3ff;
    --color-secondary: #ffb703;
    --color-accent: black;
    --color-bg: #171717;
    --header-bg: #022f4c;
    --hero-bg: url('/images/hero-bg-dark.png');
    --text-color: #e0e0e0;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background: var(--color-bg);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

/*====================================
  CONTAINERS & GRID
====================================*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*====================================
  SITE HEADER
====================================*/
.site-header {
    background: var(--header-bg);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --header-expanded-height: 92px;
    --header-collapsed-height: 70px;
    height: var(--header-expanded-height);
    transition: height var(--transition), background var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
}

.logo img{
    height: 60px;
    width: auto;
    display: block;
    margin: 0;
    transition: height var(--transition);
}

.site-header.scrolled {
    height: var(--header-collapsed-height);
}

.site-header.scrolled .logo img {
    height: 40px;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

    .nav-list li a {
        position: relative;
        padding-bottom: 0.25rem;
    }

        .nav-list li a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            height: 2px;
            width: 0;
            background: var(--color-secondary);
            transition: width var(--transition);
        }

        .nav-list li a:hover::after,
        .nav-list li a.active::after {
            width: 100%;
        }

/* Mobile nav */
@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--header-bg);
        overflow: hidden;
        max-height: 0;
        transition: max-height var(--transition);
    }

        .nav-list.open {
            max-height: 400px;
        }

        .nav-list li {
            text-align: center;
            margin: 0.75rem 0;
        }
}

/*====================================
  HERO
====================================*/
.hero {
    position: relative;
    padding: 6rem 1rem;
    overflow: hidden;
    text-align: center;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--hero-bg) center/cover no-repeat;
        pointer-events: none;
        filter: blur(2px);
        /*transform: scale(1.05);*/
        z-index: 0;
    }

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100% );
        z-index: 1;
    }

    .hero .container {
        position: relative;
        z-index: 2;
    }

/*====================================
  SECTIONS & CARDS
====================================*/
section {
    padding: 4rem 0;
}

    section h2 {
        text-align: center;
        color: var(--color-primary);
    }

.card {
    background: #fff url('/images/noise-light.png') repeat;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .card {
    background: #2a2a2a url("/images/noise-dark.png") repeat;
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

/* Hero, cards, sections all fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/*====================================
  FOOTER
====================================*/
.site-footer {
    background: #222;
    color: #bbb;
    padding: 2rem 0;
    text-align: center;
    margin-top: 24px;
}

/*====================================
  DIVIDERS
====================================*/
.divider {
    line-height: 0;
    overflow: hidden;
}

.divider__img {
    display: block;
    width: 100%;
    height: 80px;
    filter: none;
}

.divider--flip .divider__img {
    transform: rotate(180deg);
}

[data-theme="dark"] .divider__img {
    filter: brightness(0.883) invert(1);
}

/*====================================
  BUTTONS
====================================*/
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-secondary);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    transition: transform var(--transition), background-color var(--transition);
}

    .btn:hover {
        transform: scale(0.97);
        filter: brightness(0.9);
        cursor: pointer;
    }

.filter-bar .btn {
    padding: 0.5rem 1rem;
    background: var(--color-bg-2);
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    color: var(--text-color);
}

    .filter-bar .btn.active {
        background: var(--color-primary);
        color: #fff;
    }

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #fff;
    transition: color var(--transition), transform var(--transition);
}

    .theme-toggle-btn:hover {
        transform: scale(1.1);
        color: var(--color-secondary);
    }

    .theme-toggle-btn i {
        display: none; /* hide both by default */
        font-size: 1.25rem;
        transition: opacity var(--transition);
    }

/* In light mode show the sun */
[data-theme="light"] .theme-toggle-btn .fa-sun {
    display: inline-block;
}
[data-theme="light"] .theme-toggle-btn .fa-moon {
    display: none;
}

/* In dark mode show the moon */
[data-theme="dark"] .theme-toggle-btn .fa-moon {
    display: inline-block;
}
[data-theme="dark"] .theme-toggle-btn .fa-sun {
    display: none;
}

/*====================================
  HEADINGS
====================================*/
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    line-height: 1.2;
    margin: 0.75rem 0 0.5rem 0;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h3 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h4 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h5 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}


p, .card p {
    line-height: 1.5;
}

/*====================================
  THEMES
====================================*/
.theme-switcher {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

    .theme-switcher input {
        height: 0;
        width: 0;
        opacity: 0;
    }

    .theme-switcher label {
        display: block;
        width: 40px;
        height: 20px;
        background: var(--color-bg-2);
        border-radius: 10px;
        position: relative;
        cursor: pointer;
        transition: background var(--transition);
    }

        .theme-switcher label::after {
            content: "";
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            background: var(--color-primary);
            border-radius: 50%;
            transition: transform var(--transition);
        }

    .theme-switcher input:checked + label {
        background: var(--color-primary);
    }

        .theme-switcher input:checked + label::after {
            transform: translateX(20px);
        }


.subtitle {
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
}

.outcome {
    margin-top: 1rem;
    font-weight: 500;
}

.lead {
    margin-bottom: 2rem;
    text-align: center;
}

/* ------------------------------------------------------------------------
   Technology‑stack grid
------------------------------------------------------------------------ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
    margin-top: 2rem;
}

    .tech-grid img {
        max-height: 48px;
        max-width: 81px;
        width: auto;
        display: block;
        transition: filter var(--transition), opacity var(--transition);
    }

/* Optionally tone logos in dark mode */
[data-theme="dark"] .tech-grid img {
    filter: brightness(0.8) contrast(1.2);
}


/* filter bar */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

    .filter-bar-btn {
        padding: 0.5rem 1rem;
        background: var(--color-bg-2);
        border: 1px solid var(--color-primary);
        cursor: pointer;
        transition: background var(--transition), color var(--transition);
        color: var(--text-color);
    }

        .filter-bar-btn.active {
            background: var(--color-primary);
            color: #fff;
        }

/* project card tweaks */
.card img {
    width: 100%;
    border-radius: 4px 4px 0 0;
    object-fit: cover;
    height: 180px;
}

.card-body {
    padding: 1rem;
}

.industry-tag {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.result {
    font-weight: 500;
    margin: 0.5rem 0 1rem;
}

/* details modal */
.details-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

    .details-modal.visible {
        opacity: 1;
        pointer-events: auto;
    }

.modal-content {
    background: var(--color-bg);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 6px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.client-quote {
    font-style: italic;
    margin: 1rem 0;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .tech-grid i {
        font-size: 1.5rem;
    }

.modal-cta {
    text-align: center;
    margin-top: 1.5rem;
}


/* ------------------------------------------------------------------------
   CONTACT US FORM
------------------------------------------------------------------------ */
/* Container & Title */
.contact-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.contact-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Grid: 1 col on mobile, 2 on ≥768px */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

/* Inputs & textarea */
.contact-input,
.contact-textarea {
    font: inherit;
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .contact-input::placeholder,
    .contact-textarea::placeholder {
        font: inherit;
        color: var(--text-color);
        opacity: 0.6;
    }

    .contact-input:focus,
    .contact-textarea:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 0.2rem rgba(8,92,145,0.25);
    }

/* Validation messages */
.validation-message {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #dc3545;
}

/* Submit button */
.contact-button {
    align-self: start;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .contact-button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

    .contact-button:not(:disabled):hover {
        background-color: #0b5ed7;
    }

/* Status messages */
.status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

    .status.success {
        background-color: #d1e7dd;
        color: #0f5132;
    }

    .status.error {
        background-color: #f8d7da;
        color: #842029;
    }

/* Contact info & map */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-wrapper {
    width: 100%;
    /* optional: enforce 16:9 ratio */
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .map-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

.office-info p {
    margin: 0 0 1rem;
    line-height: 1.5;
}

/* ------------------------------------------------------------------------
   CAREERS
------------------------------------------------------------------------ */
.lead {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
}

.list-disc {
    list-style: disc;
}

.link-primary {
    color: var(--color-primary);
    text-decoration: underline;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-6 {
    margin-top: 2.5rem;
}

.section--bg-light {
    background-color: var(--color-bg-2);
    padding: 4rem 0;
}
