/* Pragmo - centralized stylesheet
   - Colors and icon colors are controlled via CSS variables at the top
   - Card-based layout replaces tables
   - Social icon color is controlled by --social-icon-color
*/
:root {
    /* Palette suggestions (pragmatic, modern IoT + AI):
     - Deep navy/charcoal background for seriousness and trust
     - Electric azure for tech / AI accents
     - Warm pragmatic accent for CTAs
     - Teal/green can be introduced for IoT signals if needed
  */
    --bg-color: #0f1724;
    /* deep navy */
    --surface-color: #1f2630;
    /* panel backgrounds */
    --muted-surface: #363434;
    /* legacy surface */
    --text-color: #E6EEF6;
    /* light neutral text */
    --primary-color: #08A0FF;
    /* electric azure - main brand accent */
    --accent-color: #FF6A3D;
    /* pragmatic warm CTA / highlights */
    --secondary-color: #00C2A8;
    /* optional IoT/telemetry accent (teal) */
    --risk-color: #ff4d4f;
    /* distinct red for negative/risks */
    --benefit-color: #367448;
    /* distinct green shade for postive/benefits */
    /* Icon & social variables requested */
    --card-icon-color: var(--primary-color);
    --social-icon-color: #DB4437;
    /* separate control for social icons */

    --card-border: rgba(255, 255, 255, 0.04);
    --focus-ring: rgba(8, 160, 255, 0.12);
}

/* Screen reader only helper */
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap
}

/* Base reset */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus {
    text-decoration: underline
}

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

/* Header */
header {
    padding: 1rem 1rem 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15)
}

header h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
    animation: fadeInDown 1s ease forwards
}

header img.logo {
    width: 20rem;
    height: auto;
    display: block;
    margin: 0 auto .5rem;
    animation: fadeInDown 1s ease forwards
}

/* Nav */
nav {
    position: relative
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap
}

nav ul li {
    position: relative
}

nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    padding: .5rem 1rem;
    display: block
}

nav ul li a:hover,
nav ul li a:focus {
    outline-offset: 2px
}

nav ul li.active a {
    color: var(--accent-color);
    font-weight: 700
}

nav ul li.active a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color)
}

/* Hamburger */
#menu-toggle {
    display: none
}

label[for="menu-toggle"] {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1100
}

label[for="menu-toggle"] span {
    display: block;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s
}

/* Hero - centered, clean headline */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 340px
}

.hero .hero-content {
    width: auto;
    max-width: 760px;
    height: 98%;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem
}

.hero .hero-title {
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    font-weight: 800;
    margin: 0;
    color: var(--text-color);
    line-height: 1.06
}

.hero .hero-quote {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 400;
    margin: 0;
    color: rgba(230, 238, 246, 0.95);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4
}

.hero p.hero-sub {
    font-size: 1.05rem;
    color: rgba(230, 238, 246, 0.9);
    margin: 0.75rem auto 1rem;
    max-width: 760px
}

.hero .hero-ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem
}

.hero .hero-ctas .email-link {
    min-width: 140px;
    text-align: center
}


/* make the hero svg act as background */
.hero .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none
}

.hero .hero-bg {
    width: auto;
    max-width: 760px;
    height: 98%;
    animation: slide-right 1s ease-out forwards;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    filter: brightness(0.96);
}

/* Sections */
section {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(25px);
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    scroll-margin-top: 6rem
}

section.visible {
    opacity: 1;
    transform: translateY(0)
}

section h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: .5rem
}

section h3 {
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 0.5rem
}

section p,
section ul {
    font-size: 1rem;
    color: var(--text-color)
}

ul {
    padding-left: 1.25rem;
    margin-top: .5rem
}

ul li {
    margin-bottom: .3rem
}

/* Small helper classes */
.narrow {
    max-width: 1200px;
    margin: 1rem auto
}

.custom-quote {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    margin: 1.5rem 0;
    color: var(--text-color);
    font-style: normal
}

/* Images in sections */
.img-inline {
    float: right;
    width: 220px;
    max-height: 150px;
    height: auto;
    margin-left: 1rem;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 3px 5px rgba(8, 160, 255, 0.06));
    animation: fadeIn 1.2s ease forwards
}

/* Buttons / links - consistent CTA colors */
.email-link {
    display: inline-block;
    margin-top: .5rem;
    padding: .75rem 1rem;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    transition: background .2s, transform .12s;
    text-decoration: none;
    border: 1px solid transparent
}

.email-link.secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(8, 160, 255, 0.14)
}

.email-link:hover,
.email-link:focus {
    background: #d5502b;
    transform: translateY(-2px)
}

.email-link.secondary:hover,
.email-link.secondary:focus {
    background: rgba(255, 255, 255, 0.02)
}

.email-link.secondary.disabled {
    opacity: 0.6;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.06)
}

/* Director - match cards */
.director {
    background: var(--surface-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--text-color);
    overflow: hidden;
    border: 1px solid var(--card-border)
}

.director h3 {
    margin-top: 0;
    color: var(--primary-color)
}

.director p {
    margin-top: .5rem;
    font-size: .95rem
}

.director a {
    font-weight: 700;
    color: var(--accent-color)
}

.director a:hover,
.director a:focus {
    text-decoration: underline
}

.director img {
    width: 80px;
    height: auto;
    border-radius: 50%;
    float: right
}

/* Mission tiles - legacy (prefer card-grid) */
.mission-tiles {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap
}

.mission-tiles .tile {
    background-color: #313437;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    flex: 1 1 calc(33.333% - 1rem);
    color: var(--text-color)
}

.mission-tiles .tile h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: .5rem
}

/* Forms */
form {
    margin-top: .5rem;
    max-width: 480px
}

form label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600;
    color: var(--primary-color)
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .3s
}

form input:focus,
form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring)
}

form textarea {
    resize: vertical;
    min-height: 90px
}

form button {
    margin-top: .85rem;
    padding: .75rem 1.3rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .3s, transform .18s
}

form button:hover,
form button:focus {
    background: #bf5136;
    transform: translateY(-2px)
}

/* Floating CTA - responsive */
.book-demo {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--accent-color);
    color: #fff;
    padding: .6rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background .3s, transform .12s;
    z-index: 9999
}

.book-demo:hover,
.book-demo:focus {
    background: #bf5136;
    transform: translateY(-3px)
}

/* small circular connect FAB (used on mobile or small screens) */
.connect-fab {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    text-decoration: none
}

.connect-fab svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none
}

@media (max-width:600px) {

    /* show small FAB on mobile, hide the wide CTA */
    .book-demo {
        display: none
    }

    .connect-fab {
        display: flex
    }

    .book-demo {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        border-radius: 10px;
        padding: .8rem 1rem;
        font-size: 1rem
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.96)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes slide-right {
    from {
        transform: translateX(-100%); /* Start off-screen to the left */
        opacity: 0; /* Optionally, start invisible */
    }

    to {
        transform: translateX(0); /* End at its original position */
        opacity: 1; /* Optionally, become fully visible */
    }
}

/* Responsive */
@media (max-width:768px) {
    header h1 {
        font-size: 2rem
    }

    header img.logo {
        width: 80px;
        margin-bottom: .75rem
    }

    nav ul {
        flex-direction: column;
        gap: 1rem
    }

    nav ul li a {
        padding: .5rem;
        font-size: 1.1rem
    }

    .img-inline {
        float: none;
        margin: 1rem 0;
        width: 100%;
        max-height: none;
        box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
        filter: none;
        border-radius: 8px;
        display: block
    }

    form {
        max-width: 100%
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 1.25rem
    }
}

@media (max-width:480px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        border-top: 3px solid var(--primary-color)
    }

    nav ul.show {
        display: flex
    }

    label[for="menu-toggle"] {
        display: flex
    }

    #menu-toggle:checked+label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px)
    }

    #menu-toggle:checked+label span:nth-child(2) {
        opacity: 0
    }

    #menu-toggle:checked+label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px)
    }

    #menu-toggle:checked~nav ul {
        display: flex
    }
}

/* Section block to visually separate major page sections */
.section-block {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    margin: 1rem 0
}

/* Carousel adjustments: replaced with flex layout and CSS marquee for smooth animation on larger screens. */
.industry-carousel {
    max-width: 960px;
    margin: 1.25rem auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* carousel wrapper: on desktop hide overflow (CSS marquee), on small screens allow native horizontal scroll for touch */
.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

@media (max-width:600px) {
    .carousel-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none
    }

    .carousel-wrapper::-webkit-scrollbar {
        display: none
    }
}

/* Track: flex row, duplicated content. Use CSS marquee on wider screens for smooth GPU-accelerated animation. */
.carousel-track {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    padding: 0.75rem 0;
    width: max-content
}

@media (min-width:300px) {
    .carousel-track.marquee {
        will-change: transform;
        animation: marquee var(--marquee-duration, 25s) linear infinite
    }

    .carousel-track.paused {
        animation-play-state: paused
    }

    @keyframes marquee {
        0% {
            transform: translateX(0)
        }

        100% {
            transform: translateX(-50%)
        }
    }
}

/* Nav buttons: use inline placement (flex) so they remain left & right of the carousel across screen sizes */
.carousel-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    color: var(--text-color);
    flex: 0 0 40px
}

.carousel-nav:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring)
}

/* Industry card sizing */
.industry-card {
    min-width: 260px;
    max-width: 260px;
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: center;
    text-align: center;
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: transform .18s, box-shadow .18s
}

/* Industry card icon cosmetic improvements */
.industry-card .card-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-color);
    transition: transform .18s, box-shadow .18s
}

.industry-card .card-icon svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    fill: none
}

.industry-card h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 700
}

.industry-card p {
    margin: 0;
    color: rgba(230, 238, 246, 0.85);
    font-size: .9rem
}

.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45)
}

/* per-industry accent colors */
.industry-card[data-id="energy"] .card-icon {
    background: linear-gradient(135deg, rgba(8, 160, 255, 0.08), rgba(8, 160, 255, 0.02));
    color: var(--primary-color)
}

.industry-card[data-id="media"] .card-icon {
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.06), rgba(255, 106, 61, 0.02));
    color: var(--accent-color)
}

.industry-card[data-id="industrial"] .card-icon {
    background: linear-gradient(135deg, rgba(0, 194, 168, 0.06), rgba(0, 194, 168, 0.02));
    color: var(--secondary-color)
}

.industry-card[data-id="consulting"] .card-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    color: var(--primary-color)
}

/* Offering intro area */
.offering-intro {
    max-width: 960px;
    margin: 0 auto;
    color: var(--text-color);
    padding: 0.25rem 0
}

/* offering intro title highlight */
.offering-intro h3 {
    color: var(--accent-color);
    font-weight: 800;
    margin: 0 0 .5rem 0;
    font-size: 1.15rem
}

.offering-intro p {
    color: rgba(230, 238, 246, 0.9);
    margin: 0
}

/* Card grid: slightly smaller min to improve wrapping and responsiveness */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 1.25rem auto
}

/* Card styles (restored) */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), var(--surface-color));
    padding: 1.15rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--card-border);
    transition: transform .18s, box-shadow .18s
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45)
}

.card .card-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-icon-color)
}

.card .card-icon img,
.card .card-icon svg {
    width: 48px;
    height: 48px
}

/* Allow per-card color overrides using data attributes */
.card[data-color="primary"] .card-icon {
    background: linear-gradient(135deg, rgba(8, 160, 255, 0.06), rgba(8, 160, 255, 0.02));
    color: var(--primary-color)
}

.card[data-color="accent"] .card-icon {
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.06), rgba(255, 106, 61, 0.02));
    color: var(--accent-color)
}

.card[data-color="secondary"] .card-icon {
    background: linear-gradient(135deg, rgba(0, 194, 168, 0.06), rgba(0, 194, 168, 0.02));
    color: var(--secondary-color)
}

.card[data-color="neutral"] .card-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    color: var(--text-color)
}

/* Risk / Benefit card styling for comparison pairs */
.comparison-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch
}

.card.risk {
    background: linear-gradient(180deg, rgba(255, 77, 79, 0.03), var(--surface-color));
    border-left: 4px solid var(--risk-color)
}

.card.risk .card-icon {
    color: var(--risk-color)
}

.card.benefit {
    background: linear-gradient(180deg, rgba(8, 160, 255, 0.02), var(--surface-color));
    border-left: 4px solid var(--benefit-color)
}

.card.benefit .card-icon {
    color: var(--benefit-color)
}

/* Feature card variant */
.feature-card {
    background: var(--surface-color);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--card-border)
}

.feature-card .card-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    color: var(--primary-color)
}

.feature-card .card-icon svg {
    width: 44px;
    height: 44px
}

.feature-card h3 {
    margin: 0 0 .35rem 0;
    color: var(--accent-color)
}

.feature-card p {
    margin: 0;
    color: var(--text-color)
}

.social-icon {
    width: 24px;
    height: 24px
}
.director .social-icon {
    width: 24px;
    height: 24px;
    border-radius: 1px;
}

/* Offering features grid (override) - slightly smaller min column to improve wrapping on narrow screens */
.offering-features .card-grid {
    /*grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));*/
    gap: 1rem
}

/* Offering features grid */
.offering-features {
    max-width: 960px;
    margin: 1rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem
}

/* Know more button (style variant) */
.know-more {
    display: inline-block;
    margin-top: .75rem;
    padding: .65rem 1rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none
}

.know-more.disabled {
    opacity: .5;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.06)
}

/* Social icons - separate variable */
.social-link {
    margin: 0 10px;
    color: var(--social-icon-color);
    display: inline-flex;
    align-items: center
}

.social-link svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none
}

/* Footer helpers */
.site-footer {
    text-align: center;
    padding: 1rem 0;
    color: var(--text-color)
}

.contact-link {
    color: var(--primary-color);
    margin-right: 1rem
}

/* Tiny utility */
.hidden {
    display: none
}

/* Responsive adjustments for cards and comparison pairs */
@media (max-width:768px) {

    /* Stack the risk/benefit pairs vertically on narrow screens */
    .comparison-pair {
        grid-template-columns: 1fr
    }

    /* Make card internals stack to avoid overflow */
    .card {
        flex-direction: column;
        align-items: flex-start
    }

    .card .card-icon {
        width: 56px;
        height: 56px;
        margin-bottom: .6rem
    }

    .card .card-icon svg {
        width: 40px;
        height: 40px
    }

    /* Reduce min width for grids on small screens */
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr))
    }

    .offering-features .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr))
    }

    /* Force single-column stacking for card grids and offering features to avoid 2-3 column layouts on narrow devices */
    .card-grid,
    .offering-features,
    .offering-features .card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* industry card icon sizing */
.industry-card .card-icon img,
.card .card-icon img {
    width: 44px;
    height: 44px
}

/* color mapping helper for industry cards */
.industry-card[data-color="primary"] .card-icon {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(8, 160, 255, 0.06), rgba(8, 160, 255, 0.02))
}

.industry-card[data-color="accent"] .card-icon {
    color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.06), rgba(255, 106, 61, 0.02))
}

.industry-card[data-color="secondary"] .card-icon {
    color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(0, 194, 168, 0.06), rgba(0, 194, 168, 0.02))
}

.industry-card[data-color="neutral"] .card-icon {
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01))
}

/* Desktop layout: hero split into text (left) and image (right) */
@media (min-width:801px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .hero .hero-content {
        grid-column: 1 / 2;
        text-align: left;
        padding-left: 2rem;
        margin: 0;
        max-width: none;
    }

    .hero .hero-visual {
        grid-column: 2 / 3;
        position: relative;
    }
}

/* Medium screens also use split but with adjusted spacing */
@media (min-width:601px) and (max-width:800px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .hero .hero-content {
        grid-column: 1 / 2;
        text-align: left;
        padding-left: 1.25rem;
        margin: 0;
    }

    .hero .hero-visual {
        grid-column: 2 / 3;
    }
}

/* Make images responsive */
img,
.hero-bg,
.director img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container adjustments */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Flexible header layout */
header.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.logo {
    max-width: 260px;
    height: auto;
}

/* Navigation styling for mobile */
nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-right: 1rem;
}

nav ul li a {
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    font-weight: 600;
    color: #fff !important;
    /* Use your original menu text color */
    background: transparent;
}

/* Hamburger menu */
#menu-toggle {
    display: none;
}

label[for="menu-toggle"] {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
}

label[for="menu-toggle"] span {
    display: block;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

/* Mobile menu behavior */
@media (max-width: 768px) {

    /* Show hamburger */
    label[for="menu-toggle"] {
        display: flex;
    }

    nav {
        width: 100%;
        order: 99;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }

    #menu-toggle:checked+label+nav {
        max-height: 300px;
        /* Adjust height to content */
        transition: max-height 0.5s ease-in;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-top: 1px solid #eee;
    }

    nav ul li a {
        padding: 1rem;
    }

    /* Hero section stacking */
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content,
    .hero-visual {
        width: 100%;
        text-align: center;
    }

    /* Carousel scrolling on mobile */
    .carousel-wrapper {
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-track {
        display: flex;
        gap: 1rem;
    }

    .industry-card {
        min-width: 200px;
        flex-shrink: 0;
    }

    /* Card-grid in offerings and value prop sections */
    .card-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Director section stacking */
    .director {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .director img {
        max-width: 100px;
        border-radius: 40px;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

    /* Footer links stacked */
    .site-footer p {
        font-size: 0.9rem;
    }

    .site-footer p:first-child {
        margin-bottom: 0.5rem;
    }

    .contact-link {
        display: inline-block;
        margin: 0 0.5rem;
    }
}

/* Typography and spacing */
body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    font-size: 16px;
    margin: 0;
    color: #333;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-weight: 700;
}

.hero-quote {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 1rem auto;
}

/* Button link styling */
.email-link,
.email-link.secondary {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0.8rem 0.4rem 0 0;
    background-color: #08a0ff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.email-link.secondary {
    background-color: #005ea2;
}

.email-link:hover,
.email-link.secondary:hover {
    background-color: #006fcf;
    color: white;
}

.email-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

/* Hero background image responsiveness */
.hero-bg {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* Prevent horizontal overflow globally */
html,
body {
    overflow-x: hidden;
}

/* --- Additional CSS for requested changes --- */

/* Remove hero.png image on mobile screens */
@media (max-width: 768px) {
    .hero-visual {
        display: none !important;
    }
}

/* Display hamburger ONLY on mobile, hide on desktop */
label[for="menu-toggle"] {
    display: none;
}

@media (max-width: 768px) {
    label[for="menu-toggle"] {
        display: flex;
    }
}

/* Remove background or overlay on menu when opened */
nav {
    background: transparent !important;
}

/* =========================
   FINAL RESPONSIVE FIXES
   ========================= */

/* Hero Section */
@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    padding: 0.5rem;
  }
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  .hero-quote {
    font-size: 1rem;
    max-width: 100%;
    margin: 0.5rem auto;
  }
  .hero p.hero-sub {
    font-size: 0.95rem;
    margin: 0.5rem auto;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .hero-ctas .email-link {
    width: 100%;
    max-width: 280px;
    font-size: 1rem;
    padding: 0.75rem;
  }
  .hero-visual {
    display: none !important;
  }
}

/* Navigation Responsiveness */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  nav ul li {
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  nav ul li a {
    padding: 1rem;
    font-size: 1.1rem;
  }
  label[for="menu-toggle"] {
    display: flex;
  }
}

/* Cards and Grids */
@media (max-width: 768px) {
  .card-grid,
  .offering-features .card-grid {
    grid-template-columns: 1fr !important;
  }
  .card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Offerings Carousel Scroll Fix */
@media (max-width: 768px) {
  .industry-carousel {
    overflow: visible !important;
  }
  .carousel-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: block !important;
  }
  .carousel-wrapper::-webkit-scrollbar {
    display: none;
  }
  .carousel-track {
    display: flex !important;
    gap: 1rem;
    width: max-content !important;
    flex-wrap: nowrap !important;
  }
  .industry-card {
    flex-shrink: 0 !important;
    min-width: 220px !important;
  }
}

/* Footer adjustments */
@media (max-width: 600px) {
  .site-footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .contact-link {
    display: inline-block;
    margin: 0 0.5rem;
  }
}
