/* Reset and Base Styles */
:root {
    --primary-color: #144443;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #002B2B;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4.375rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Responsive Typography */
@media (max-width: 1512px) {
    h1 {
        font-size: 4.0625rem;
    }
}

@media (max-width: 1200px) {
    h1 {
        font-size: 3.75rem;
    }
}

@media (max-width: 880px) {
    h1 {
        font-size: 3.4375rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: #144443;
    color: #ffffff;
    border-color: #144443;
}

.btn-primary:hover {
    background-color: #0f3433;
    border-color: #0f3433;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ffffff;
    color: #144443;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background-color: #f8f8f8;
    border-color: #f8f8f8;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Images */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(225, 227, 225, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .header-inner {
        height: 70px;
    }
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    height: 64px;
    position: relative;
}

.logo {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-dark,
.logo-light {
    display: none;
}

/* Navigation */
.header-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

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

.nav-link {
    color: #002B2B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #144443;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #144443;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Header CTA */
.header-cta {
    flex-shrink: 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #002B2B;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(225, 227, 225, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px;
}

.mobile-nav-item {
    margin-bottom: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 10px 0;
    color: #002B2B;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(225, 227, 225, 0.3);
}

/* Mobile Responsive Header */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Main Content */
.main {
    margin-top: 100px;
}

@media (max-width: 1200px) {
    .main {
        margin-top: 70px;
    }
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    color: #002B2B;
    margin-bottom: 2rem;
}

.hero-subtitle h2 {
    color: #144443;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-description {
    color: #5a6c6b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 650px;
}

.hero-image img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-image {
        display: none;
    }
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    min-height: 564px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 9%;
    position: relative;
    overflow: hidden;
}

.stat-card-dark {
    background-color: #144443;
    color: #ffffff;
}

.stat-card-light {
    background-color: #DDE9E8;
    color: #002B2B;
}

.stat-card-image {
    background-image: url('../images/office-meeting.png');
    background-size: 120%;
    background-position: center 30%;
    background-repeat: no-repeat;
    color: #ffffff;
    position: relative;
    min-height: 564px;
    overflow: hidden;
}

.stat-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.stat-card-image .stat-content {
    position: relative;
    z-index: 2;
}

.stat-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.stat-decoration {
    align-self: flex-end;
    margin: 0;
    position: absolute;
    bottom: 0;
    right: 0;
}

.stat-decoration img {
    width: 120px;
    height: auto;
    display: block;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .stats-section {
        padding: 60px 0;
    }
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.services-header {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
}

.section-title {
    color: #002B2B;
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.services-section img,
.service-icon img,
.services-grid img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}

.service-title {
    color: #002B2B;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.service-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #002B2B;
}

.service-check {
    width: 16px;
    height: 16px;
    background-color: #DDE9E8;
    color: #144443;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .section-header {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    /* Mobile: Stack title and button above service boxes */
    .services-container {
        display: block !important;
    }

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

    .services-header .section-title {
        text-align: center;
        margin-bottom: 2rem;
    }

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

    .service-item {
        padding: 1.5rem;
    }
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, rgb(1, 21, 34) 20%, rgb(24, 78, 74) 80%);
    color: #ffffff;
}

.cta-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.cta-icon img {
    width: 223px;
    height: auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
}

.highlight {
    color: #E5FF5E;
}

.cta-list {
    list-style: none;
    margin-bottom: 2rem;
}

.cta-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-check {
    width: 26px;
    height: 26px;
    background-color: #204447;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .cta-icon {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-icon img {
        width: 160px;
    }
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: linear-gradient(45deg, rgb(1, 21, 34) 20%, rgb(24, 78, 74) 80%);
    color: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(221, 233, 232, 0.2);
    padding-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-img {
    width: 160px;
    height: auto;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-copyright a {
    color: #ffffff;
    text-decoration: none;
}

.footer-social {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(245, 0, 0, 0);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #ffffff;
}

.contact-icon {
    color: #E5FF5E;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.contact-item a:hover {
    color: #E5FF5E;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #144443;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0f3433;
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #144443;
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Our Team Page Styles */
.team-intro {
    padding: 120px 0 80px;
    background-color: #ffffff;
}

.team-intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.team-intro h1 {
    font-size: 4rem;
    color: #002B2B;
    margin-bottom: 4rem;
    text-align: left;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.team-intro-text {
    max-width: 800px;
}

.team-intro-text h2 {
    font-size: 2.5rem;
    color: #002B2B;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 600;
    line-height: 1.2;
}

.team-intro-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #5a6c6b;
    margin-bottom: 1.5rem;
    text-align: left;
}

@media (max-width: 1200px) {
    .team-intro {
        padding: 100px 0 60px;
    }

    .team-intro h1 {
        font-size: 3.5rem;
    }

    .team-intro-text h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .team-intro {
        padding: 80px 0 40px;
    }

    .team-intro h1 {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .team-intro-text h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .team-intro-text p {
        font-size: 1rem;
    }
}

.team-members {
    padding: 80px 0;
}

.team-member {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 2rem 0;
}

.team-member:nth-child(even) {
    grid-template-columns: 1fr auto;
}

.team-member:nth-child(even) .team-member-image {
    order: 2;
}

.team-member:nth-child(even) .team-member-content {
    order: 1;
}

.team-member-image {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.team-member-content h3 {
    font-size: 1.75rem;
    color: #002B2B;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.team-member-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6c6b;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .team-member {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .team-member:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .team-member:nth-child(even) .team-member-image,
    .team-member:nth-child(even) .team-member-content {
        order: unset;
    }

    .team-member-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .team-intro {
        padding: 60px 0;
    }

    .team-intro h1 {
        font-size: 2.5rem;
    }

    .team-members {
        padding: 60px 0;
    }

    .team-member {
        margin-bottom: 4rem;
    }

    .team-member-image {
        width: 200px;
        height: 200px;
    }

    .team-member-content h3 {
        font-size: 1.5rem;
    }
}

/* We Make AI Work Page Styles */
.hero-simple {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #144443 0%, #0f3433 100%);
    color: #ffffff;
}

.hero-simple .hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-simple .hero-title {
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-simple .section-title {
    color: #ffffff;
}

/* Questions Section */
.questions-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.question-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.question-box h3 {
    font-size: 1.125rem;
    color: #002B2B;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .questions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .questions-section {
        padding: 60px 0;
    }

    /* Mobile: Stack title above question boxes */
    .questions-section .container>div {
        display: block !important;
    }

    .questions-section .container>div>div:first-child {
        margin-bottom: 2rem;
        text-align: center;
    }

    .questions-section .container>div>div:first-child h2 {
        text-align: center !important;
    }

    .question-box {
        padding: 1.5rem;
    }

    .question-box h3 {
        font-size: 1rem;
    }
}

/* AI Systems Section */
.ai-systems-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-header.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header .section-title {
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.125rem;
    color: #5a6c6b;
    line-height: 1.7;
    margin: 0;
}

.transformation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.transformation-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transformation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.transformation-card h4 {
    font-size: 1.25rem;
    color: #002B2B;
    font-weight: 600;
    margin-bottom: 1rem;
}

.transformation-card p {
    color: #5a6c6b;
    line-height: 1.6;
    margin: 0;
}

.transformation-card em {
    color: #144443;
    font-weight: 600;
    font-style: normal;
}

@media (max-width: 1024px) {
    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .ai-systems-section {
        padding: 60px 0;
    }

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

    .transformation-card {
        padding: 1.5rem;
    }
}

/* Start Where Section */
.start-where-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.start-where-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.start-where-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.start-where-text h3 {
    font-size: 1.75rem;
    color: #002B2B;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.start-where-text p {
    font-size: 1rem;
    color: #5a6c6b;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 1024px) {
    .start-where-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .start-where-section {
        padding: 60px 0;
    }

    .start-where-content {
        gap: 2rem;
    }

    .start-where-text h3 {
        font-size: 1.5rem;
    }
}

/* TRIA Features Section */
.tria-features-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.tria-features-section .section-header {
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    /* Increased from 1000px for more horizontal space */
    margin: 0 auto;
}

.feature-card {
    min-height: 280px;
    max-height: 320px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 2rem !important;
    /* Increased from 1.5rem for more text space */
    border-radius: 10px;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.3s ease;
}

.feature-content {
    width: 100%;
    max-width: 90%;
    /* Increased from 70% to allow more horizontal text space */
}

.feature-content h4 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: white !important;
    font-weight: 600;
    line-height: 1.2;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.4;
    color: white !important;
    margin: 0;
}

.feature-card:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        max-width: 1000px;
        gap: 1.8rem;
    }

    .feature-card {
        min-height: 240px;
        max-height: 280px;
        padding: 1.75rem !important;
    }

    .feature-content {
        max-width: 85%;
    }

    .feature-content h4 {
        font-size: 1.4rem;
    }

    .feature-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .tria-features-section {
        padding: 60px 0;
    }

    .tria-features-section .section-header {
        margin-bottom: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
    }

    .feature-card {
        min-height: 200px;
        max-height: 240px;
        padding: 1.2rem !important;
    }

    .feature-content {
        max-width: 80%;
    }

    .feature-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .feature-content p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .tria-features-section {
        padding: 50px 0;
    }

    .features-grid {
        max-width: 100%;
        padding: 0 1rem;
    }

    .feature-card {
        min-height: 180px;
        max-height: 220px;
        padding: 1rem !important;
    }

    .feature-content {
        max-width: 85%;
    }

    .feature-content h4 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.8rem;
    }
}

/* Case Studies Section */
.case-studies-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.case-study-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.case-study-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.case-study-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-content {
    padding: 2rem;
}

.case-study-title {
    font-size: 1.5rem;
    color: #002B2B;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.case-study-meta {
    color: #5a6c6b;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .case-studies-section {
        padding: 60px 0;
    }

    .case-studies-grid {
        gap: 2rem;
    }

    .case-study-image {
        height: 250px;
    }

    .case-study-content {
        padding: 1.5rem;
    }

    .case-study-title {
        font-size: 1.25rem;
    }
}

/* Updated Navigation Styles */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #002B2B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #144443;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #144443;
    transition: width 0.3s ease;
}

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

.nav-cta {
    flex-shrink: 0;
}

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

.bar {
    width: 24px;
    height: 2px;
    background-color: #002B2B;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 1200px) {
    .nav {
        height: 70px;
    }
}

/* Updated CTA Section for consistency */
.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
}

.cta-decoration {
    position: absolute;
    bottom: -40px;
    right: -40px;
    z-index: 1;
}

.cta-decoration .decoration {
    position: absolute;
}

.cta-decoration .decoration-1 {
    bottom: 0;
    right: 0;
    width: 60px;
    height: auto;
}

.cta-decoration .decoration-2 {
    bottom: 20px;
    right: 80px;
    width: 40px;
    height: auto;
}

@media (max-width: 1024px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-decoration {
        position: static;
        margin-top: 2rem;
    }
}

/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    z-index: 9999;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-banner-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cookie-banner-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-content a {
    color: white;
    text-decoration: underline;
}

.cookie-banner-content a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    font-size: 0.9rem;
}

.cookie-btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cookie-btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cookie-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

#cookie-banner:focus {
    outline: none;
}

/* Cookie Configuration Modal */
#cookie-config-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cookie-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

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

.cookie-modal-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-category h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.cookie-required {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.cookie-category p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Cookie Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.cookie-slider {
    background-color: var(--primary-color);
}

input:checked+.cookie-slider:before {
    transform: translateX(26px);
}

.cookie-slider.disabled {
    background-color: var(--primary-color);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .cookie-banner-content {
        padding: 1rem;
    }

    .cookie-banner-buttons {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        min-width: auto;
    }

    .cookie-modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .cookie-modal-buttons {
        flex-direction: column;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-required {
        margin-top: 0.25rem;
    }
}

@media screen and (max-width: 480px) {
    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

@media print {

    .header,
    .back-to-top,
    .mobile-menu-toggle,
    #cookie-banner,
    #cookie-config-modal {
        display: none !important;
    }

    .main {
        margin-top: 0 !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    a {
        text-decoration: underline;
    }

    .btn {
        border: 1px solid #000;
        padding: 4px 8px;
    }
}

/* Hero Section Style for Green Background */
.hero-section {
    background: linear-gradient(135deg, #012122 0%, #184e4a 100%);
    padding: 6rem 0;
    text-align: center;
    color: white;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Strong Bootstrap overrides for header */
body .header .nav-menu,
body .header ul.nav-menu {
    list-style: none !important;
    display: flex !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

body .header .nav-menu li,
body .header ul.nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

body .header .nav-link,
body .header a.nav-link {
    color: #002B2B !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
    position: relative !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 16px !important;
}

body .header .nav-link:hover,
body .header a.nav-link:hover,
body .header .nav-link:focus,
body .header a.nav-link:focus {
    color: #144443 !important;
    background: none !important;
    border: none !important;
    text-decoration: none !important;
}

body .header .btn,
body .header a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    background: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

body .header .btn-primary,
body .header a.btn-primary {
    background-color: #144443 !important;
    color: #ffffff !important;
    border-color: #144443 !important;
}

body .header .btn-primary:hover,
body .header a.btn-primary:hover,
body .header .btn-primary:focus,
body .header a.btn-primary:focus {
    background-color: #0f3433 !important;
    border-color: #0f3433 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* Team Page Custom Grid System */
.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.team-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 15px;
}

.team-col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding: 15px;
}

.team-col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
    padding: 15px;
}

@media (max-width: 992px) {

    .team-col-6,
    .team-col-5,
    .team-col-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

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

.p-0 {
    padding: 0;
}

.p-4 {
    padding: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.g-4 {
    gap: 1.5rem;
}

.align-items-center {
    align-items: center;
}

.h-100 {
    height: 100%;
}

.fw-bold {
    font-weight: 700;
}

.text-primary {
    color: #144443 !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.border-0 {
    border: 0;
}

.rounded-circle {
    border-radius: 50%;
}

/* Team Card Styles */
.team-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    flex: 1;
}

.team-card .text-center:last-child {
    margin-top: auto;
}

.team-card img {
    border: 3px solid #e9ecef;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
    border-color: #144443;
}

.team-card .text-primary {
    color: #144443 !important;
}

/* Justified text for team bios */
.team-bio p {
    text-align: justify;
}

/* Button Styles */
.btn-link {
    font-weight: 400;
    color: #144443;
    text-decoration: underline;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.btn-link:hover {
    color: #0f3433;
}

.btn-outline-primary {
    color: #144443;
    border-color: #144443;
    background-color: transparent;
    border: 1px solid #144443;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-primary:hover {
    background-color: #144443;
    border-color: #144443;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline-primary i {
    margin-right: 8px;
}

/* Background for team section */
.bg-light-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Improved Hero Section */
.hero-section {
    background: linear-gradient(135deg, #012122 0%, #184e4a 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-image.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 0 !important;
    align-self: start;
}

.hero-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.hero-stat h3 {
    color: #E5FF5E;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-stat p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 1024px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0;
    }

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

    .hero-section p,
    .hero-description p {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
}

/* Team Page Hero Styles */
.hero-title-center {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
    grid-column: 1 / -1;
}

.hero-title-center h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
}

/* Override the grid layout for team page hero */
.hero-section .container {
    display: block !important;
}

.hero-section .hero-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: start !important;
    margin-top: 0 !important;
}

/* Team bio justified text */
.team-bio p {
    text-align: justify;
}

/* Index page hero text (dark) */
.hero .hero-title {
    color: #002B2B;
}

.hero .hero-subtitle h2 {
    color: #144443;
}

.hero .hero-description p {
    color: #5a6c6b;
}

/* Our Team page hero text (white) */
.hero-section .hero-text h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-section .hero-description p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Perfect circular images for team members */
.team-card .rounded-circle,
.team-card img.rounded-circle,
.service-item .rounded-circle,
.service-item img.rounded-circle {
    border-radius: 50% !important;
    width: 140px !important;
    height: 140px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto 1.5rem auto !important;
    min-width: 140px !important;
    max-width: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
    flex-shrink: 0 !important;
}

/* Reduce spacing between title and description */
.team-card h5[style*="margin-bottom: 2.5rem"] {
    margin-bottom: 1.5rem !important;
}

/* Fix card height issues and ensure proper grid behavior */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start !important;
}

.service-item.team-card {
    height: auto !important;
    min-height: auto !important;
    align-self: start !important;
}

/* Fix LinkedIn button alignment */
.team-card .text-right,
.service-item .text-right {
    text-align: right !important;
}

.team-card .text-left {
    text-align: right !important;
}

/* Force circular shape with stronger selectors */
body .service-item img[style*="width: 180px"] {
    border-radius: 50% !important;
    width: 140px !important;
    height: 140px !important;
    object-fit: cover !important;
    margin: 0 auto 1.5rem auto !important;
}