/* Variables & Global Styles */
:root {
    --primary-navy: #1A1A32;
    --primary-orange: #FF6B00;
    --bg-offwhite: #F9FAFB;
    --text-dark: #2D3748;
    --text-muted: #718096;
    --white: #FFFFFF;
    --red-accent: #A52A2A;
    /* from Garden tile in design */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Typography Utility */
.text-orange {
    color: var(--primary-orange) !important;
}

.text-blue {
    color: var(--primary-navy) !important;
}

.text-dark-gray {
    color: var(--text-dark) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    /* Kept original font-size */
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    /* Kept original border: none */
}

.btn-primary:hover {
    background-color: #e66000;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: var(--white);
}

.btn-outline.text-white {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline.text-white:hover {
    background-color: var(--white);
    color: var(--primary-navy);
    border-color: var(--white);
}

.btn-dark {
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
}

/* Navbar */
.navbar {
    background: var(--bg-offwhite);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #d91c5c, #2a2d7c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo img {
    height: 48px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
    font-size: 16px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-orange);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-orange);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #E2E8F0;
    border-radius: 20px;
    padding: 8px 16px;
    gap: 8px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    width: 150px;
}

.search-box svg {
    color: var(--text-muted);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Intro & General Page Header Support */
.hero-bg-texture {
    position: relative;
    background-color: var(--primary-navy);
    background-image: url('assets/kutch_heritage_bg_1772385931626.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-bg-texture::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(26, 26, 50, 0.85);
    /* Dark overlay */
    z-index: -1;
}

.page-header {
    padding: 80px 0;
}

.hero-intro {
    padding: 60px 0 40px;
    background-color: var(--bg-offwhite);
}

.headline {
    font-size: 3.5rem;
    color: var(--primary-navy);
    margin-bottom: 24px;
}

.sub-headline {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Hero Cards Grid */
.hero-cards-section {
    padding-bottom: 80px;
    background-color: var(--bg-offwhite);
}

.hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    height: 600px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
}

.hero-card .card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover .card-bg {
    transform: scale(1.05);
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 50, 0.8) 0%, rgba(26, 26, 50, 0) 50%);
}

.card-content {
    position: absolute;
    z-index: 2;
    padding: 32px;
}

.card-content.bottom-right {
    bottom: 0;
    right: 0;
    text-align: right;
}

.card-content.centered {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-card:not(.centered):not(.bottom-right) .card-content {
    bottom: 0;
    left: 0;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.service-header .service-icon {
    margin-bottom: 0;
    margin-top: -10px;
    /* To visually center it cleanly with the title text if needed */
}

.service-header .section-title {
    margin-bottom: 0 !important;
}

.card-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
}

.arrow-link {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* Our Core Expertise */
.split-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-orange);
    display: inline-flex;
    width: 100%;
    position: relative;
}

.split-header .section-title {
    font-size: 2.5rem;
    color: var(--primary-navy);
}

.split-header .section-subtitle {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
    text-align: right;
}

.split-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 150px;
    height: 2px;
    background: var(--primary-orange);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* 1:2 layout */
    gap: 24px;
    height: 600px;
}

.expertise-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.7s ease !important;
}

.expertise-card:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.expertise-card.theme-dark {
    background-color: var(--white);
    color: var(--white);
}

.expertise-card.theme-gradient {
    color: var(--white);
}

.expertise-card.theme-solid-blue {
    background-color: var(--white);
    color: var(--white);
}

.expertise-card.theme-solid-red {
    background-color: var(--white);
}

.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay-navy {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 26, 50, 0.7);
    mix-blend-mode: multiply;
    z-index: 1;
}

.overlay-orange {
    position: absolute;
    inset: 0;
    background-color: rgba(220, 100, 0, 0.65);
    mix-blend-mode: multiply;
    z-index: 1;
}

.overlay-red {
    position: absolute;
    inset: 0;
    background-color: rgba(165, 42, 42, 0.7);
    mix-blend-mode: multiply;
    z-index: 1;
}

/* Base text protection gradient just in case multiply is too harsh */
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 2;
}

.expertise-card .content-wrapper {
    position: relative;
    z-index: 3;
    padding: 30px;
}

.expertise-card .content-wrapper.bottom {
    margin-top: auto;
}

.expertise-card h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--white);
}

.expertise-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

.expertise-card.large-card .content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.expertise-right-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

.sub-col {
    display: grid;
    grid-template-rows: 2fr 1fr;
    gap: 24px;
    height: 100%;
}



.expertise-bottom-row {
    display: none;
    /* Safely hide older legacy layouts if any */
}



/* Client Voices & Trusted Partners */
.default-bg {
    background-color: var(--bg-offwhite);
}

.gap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.client-voices {
    background-color: var(--primary-navy);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-tag {
    font-size: 0.875rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.section-tag::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Belief Cards styling */
.belief-card {
    background-color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.quote-mark {
    font-size: 120px;
    font-family: serif;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 40px;
    right: 40px;
}

.testimonial {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    text-align: justify !important;
    padding: 0 24px;
}

/* Founder Profile Image */
.founder-image-wrapper {
    flex: 1;
    max-width: 380px;
    /* Restricts maximum width */
    margin: 0 auto;
}

.founder-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    /* Forces a perfect professional portrait frame */
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    max-height: 65vh;
    /* STRICT RULE: Never taller than 65% of the user's screen */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
}

.author-info strong {
    display: block;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    clear: both;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-orange);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
    background: #e66000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 100, 0, 0.4);
}

.trusted-partners {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.partners-title {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.partners-subtitle {
    color: var(--text-muted);
    margin-bottom: 48px;
}

.partners-grid-auto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 140px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transform: scale(1.1);
    opacity: 0.85;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.partner-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    opacity: 0.8;
    text-align: center;
}

/* Footer CTA */
.footer-cta {
    background: var(--primary-orange);
    color: var(--white);
    padding: 80px 0;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Main Footer */
.main-footer {
    background-color: var(--primary-navy);
    background-image: url('assets/kutch_heritage_bg_1772385931626.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    color: var(--white);
    padding: 100px 0 32px;
    position: relative;
}

.main-footer.hero-bg-texture {
    background-color: var(--primary-navy);
    /* Ensure base color */
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), transparent);
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr;
    gap: 64px;
    margin-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 56px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.footer-logo {
    background: var(--white);
    padding: 16px 28px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 32px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    mix-blend-mode: multiply;
}

.footer-grid .btn {
    display: inline-block;
    min-width: 240px;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 24px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 420px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-links,
.footer-contact {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 28px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-orange);
}

.footer-links ul li {
    margin-bottom: 16px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.contact-item {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.contact-item a {
    color: var(--white);
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-orange);
}

.contact-item a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 24px;
}

.footer-legal a:hover {
    color: var(--white);
}

/* About Us Page */
.page-header {
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header.center-align {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-white {
    color: var(--white) !important;
}

.about-main p {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.mission-box {
    padding: 32px;
    border-radius: var(--radius-md);
    margin-top: 32px;
}

.mission-box h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.image-collage {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-wrapper {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.img-wrapper.main-img {
    top: 0;
    left: 0;
    width: 80%;
    z-index: 1;
}

.img-wrapper.secondary-img {
    bottom: 0;
    right: 0;
    width: 60%;
    z-index: 2;
    border: 8px solid var(--white);
}

.rounded-shadow {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.approach-content .large-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.mt-32 {
    margin-top: 32px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-16 {
    margin-bottom: 16px;
}

.founder-card {
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-orange);
    margin-bottom: 24px;
}

.founder-info blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
}

.quote-mark.small {
    font-size: 60px;
    top: -20px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.founder-info h4 {
    color: var(--primary-orange);
    font-size: 1.25rem;
}

.founder-info span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Services Page */
.service-row {
    border-bottom: 1px solid #E2E8F0;
}

.service-row:last-child {
    border-bottom: none;
}

.align-center {
    align-items: center;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: '•';
    color: var(--primary-orange);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: 2px;
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-pic {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Clients Page */
.trusted-partners-full {
    background: var(--bg-offwhite);
}

.partners-grid-auto.large {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.testimonials-slider-section {
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 3);
    gap: 30px;
    align-items: stretch;
    transition: transform 0.3s ease;
}

.client-voices {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.client-voices.theme-gradient {
    background: linear-gradient(135deg, #1A1A32, #4A2855);
}

.client-voices.theme-solid-red {
    background: #A02020;
}

.mt-auto {
    margin-top: auto;
}

.mb-48 {
    margin-bottom: 48px;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.case-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.case-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover img {
    transform: scale(1.05);
}

.case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 50, 0.9) 0%, rgba(26, 26, 50, 0) 60%);
    pointer-events: none;
}

.case-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    color: var(--white);
    z-index: 2;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.case-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.mt-64 {
    margin-top: 64px;
}

.mb-32 {
    margin-bottom: 32px;
}

.subsection-title {
    font-size: 2rem;
    color: var(--primary-navy);
}

.action-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: box-shadow 0.3s ease;
}

.gallery-img:hover {
    box-shadow: var(--shadow-md);
}

/* Contact Page */
.align-start {
    align-items: flex-start;
}

.info-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--primary-navy);
    color: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.p-48 {
    padding: 48px;
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid #E2E8F0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
    background: #F8FAFC;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: var(--white);
}

.checkbox-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.mt-16 {
    margin-top: 16px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {

    .gap-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .hero-cards-grid {
        height: auto;
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .testimonials-grid,
    .partners-grid-auto,
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Force gap-grids to stack */
    .gap-grid {
        grid-template-columns: 1fr !important;
    }

    .headline {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-card {
        height: 300px;
    }

    .expertise-bottom-row {
        grid-template-columns: 1fr;
        height: auto;
    }

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Change flex from row to column for Headers/Footers context */
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .brand-logo {
        width: 100%;
        justify-content: center;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Founder Profile stacking fix */
    .founder-image-wrapper {
        margin-bottom: 32px;
    }
}

.footer-match-btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 250px !important;
    height: 55px !important;
    padding: 0 !important;
    margin-top: auto !important;
    box-sizing: border-box !important;
}

.service-grid-card,
.service-card {
    transition: all 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: transform, box-shadow;
}

.service-grid-card:hover,
.service-card:hover {
    transform: translateY(-5px) scale(1.015) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    z-index: 10;
}

#get-in-touch {
    scroll-margin-top: 80px !important;
}