{% extends 'layouts/layout.html.twig' %}
{% block body %}
<div id="main-content" class="content">
<div class="section bottom-padding top-padding-4em">
<div class="inner position-relative">
<div class="case-study-details">
<div class="logo-container">
<img style="max-width: 225px; max-height: 100px" src="{{ caseStudy.getClientLogo() }}" />
</div>
<div>
<h3>Project Details:</h3>
<ul>
<li><strong>Client:</strong> {{ caseStudy.getClientName()|raw }}</li>
<li><strong>Industry:</strong> {{ caseStudy.getIndustry()|join(', ') }} </li>
<li><strong>Solutions:</strong> {{ caseStudy.getSolutions()|join(', ') }} </li>
</ul>
</div>
</div>
<div class="row middle-lg middle-md">
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-12 intro-title-description">
{# <h2 data-aos="fade-up">{{ caseStudy.getDescriptionTitle() }}</h2> #}
<p data-aos="fade-up"> {{ caseStudy.getDescription() }} </p>
</div>
</div>
</div>
</div>
{% set keyFactItems = caseStudy.getKeyFacts() %}
{% if keyFactItems %}
{% set keyFactsMaxWidth = caseStudy.getkeyFactsMaxWidth() ? ' style=max-width:' ~ caseStudy.getkeyFactsMaxWidth() ~ 'px' : '' %}
<div class="section bottom-padding">
<div class="inner text-align-center{% if not caseStudy.getMaxWidth() %} maxwidth--1080{% endif %}"{{ keyFactsMaxWidth }}>
<h2 data-aos="fade-up" class="h2--lg">Client Key Facts</h2>
{% if keyFactItems %}
<div data-aos="fade-up" class="top-margin-2em red-backdrop">
<div class="results-box row gutter-space--lg center-lg center-md center-sm center-xs bg-color--lightgray border-right-bottom{% if keyFactItems|length == 2 %} two-facts{% elseif keyFactItems|length == 3 %} three-facts{% endif %}" style="margin-left:auto;margin-right:auto;">
{% for keyFactItem in keyFactItems %}
<div data-aos="fade-up" class="col{% if keyFactItems|length == 2 %} col-lg-6 col-md-6{% elseif keyFactItems|length == 3 %} col-lg-4 col-md-4{% endif %} col-sm-6 col-xs-12">
{% if keyFactItem["Icon"].getData() %}
<img src="{{ keyFactItem["Icon"].getData() }}" style="max-height: 50px;margin:0 auto 10px;">
{% endif %}
{% if keyFactItem["Digit"].getData() %}
<p class="large-number">{{ keyFactItem["Digit"].getData()|raw }}</p>
{% endif %}
<p class="text--lg auto-margins" style="max-width: 300px">
<strong>{{ keyFactItem["Title"].getData()|raw }}</strong>
</p>
</div>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
{% set vertAlignChallenge = caseStudy.getVerticalAlignment1() == 'top' ? '' : caseStudy.getVerticalAlignment1() == 'middle' ? ' middle-lg middle-md' : caseStudy.getVerticalAlignment1() == 'bottom' ? ' bottom-lg bottom-md' : '' %}
<div class="section bg-color--dark top-bottom-padding">
<div class="inner light">
<div class="row gutter-space--lg{{ vertAlignChallenge }} gutter-space--md">
<div class="col col-lg-{% if caseStudy.getChallengeImage() %}6{% else %}7{% endif %} col-md-{% if caseStudy.getChallengeImage() %}6{% else %}7{% endif %} col-sm-12 col-xs-12 bottom-margin-2em-mobile">
<h2 data-aos="fade-up" class="h2--lg">The Challenge</h2>
<div data-aos="fade-up">
{{ caseStudy.getChallenge() | raw }}
</div>
</div>
{% if caseStudy.getChallengeImage() is not empty %}
{% set imgClass = caseStudy.getPolaroid() ? 'full-width polaroid' : 'full-width' %}
<div class="col col-lg-6 col-md-6 col-sm-12 col-xs-12">
{{ caseStudy.getChallengeImage().thumbnail('width_500').html({
'imgAttributes': {
'class': imgClass,
'data-aos': 'fade-up',
}
})|raw }}
</div>
{% endif %}
</div>
</div>
</div>
{% if caseStudy.getTestimonial() %}
<div class="section top-bottom-padding">
<div class="inner text-align-center">
{% if caseStudy.getAuthorPortrait() %}
<div data-aos="fade-up" class="author-portrait-container">
<img
src="{{ caseStudy.getAuthorPortrait() }}"
class="author-portrait"
/>
</div>
{% endif %}
<div
data-aos="fade-up"
class="text--lg auto-margins bottom-margin-1em"
style="max-width: 850px; font-style: italic"
>
{{ caseStudy.getTestimonial() | raw }}
</div>
<p data-aos="fade-up">
{{ caseStudy.getAuthorName() }}<br />{{ caseStudy.getAuthorPosition() }}
</p>
</div>
</div>
{% endif %}
{% set vertAlign = caseStudy.getVerticalAlignment() == 'top' ? '' : caseStudy.getVerticalAlignment() == 'middle' ? ' middle-lg middle-md' : caseStudy.getVerticalAlignment() == 'bottom' ? ' bottom-lg bottom-md' : '' %}
<div class="section bg-color--lightgray top-bottom-padding">
<div class="inner">
<div class="row gutter-space--lg{{ vertAlign }} gutter-space--md reverse">
<div class="col col-lg-6 col-md-6 col-sm-12 col-xs-12 bottom-margin-2em-mobile">
<h2 data-aos="fade-up" class="h2--lg">Our Solution</h2>
<div data-aos="fade-up">
{{ caseStudy.getSolution() | raw }}
</div>
</div>
{% if caseStudy.getSolutionImage() is not empty %}
{% set imgClass = caseStudy.getPolaroid1() ? 'full-width polaroid' : 'full-width' %}
<div class="col col-lg-6 col-md-6 col-sm-12 col-xs-12">
{% if caseStudy.getLightbox() %}
<a href="{{ caseStudy.getSolutionImage() }}" data-fslightbox="lightbox" data-type="image">
{% endif %}
{{ caseStudy.getSolutionImage().thumbnail('width_500').html({
'imgAttributes': {
'class': imgClass,
'data-aos': 'fade-up',
}
})|raw }}
{% if caseStudy.getLightbox() %}
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
{% if caseStudy.getSecondaryTestimonial() %}
{% set bgColor = caseStudy.getSelect() == 'dark' ? ' bg-color--dark' : '' %}
<div class="section top-bottom-padding{{ bgColor }}">
<div class="inner text-align-center">
{% if caseStudy.getSecondaryAuthorPortrait() %}
<div data-aos="fade-up" class="author-portrait-container">
<img
src="{{ caseStudy.getSecondaryAuthorPortrait() }}"
class="author-portrait"
/>
</div>
{% endif %}
<p
data-aos="fade-up"
class="text--lg auto-margins"
style="max-width: 850px; font-style: italic"
>
{{ caseStudy.getSecondaryTestimonial() }}
</p>
<p data-aos="fade-up">
{{ caseStudy.getSecondaryAuthorName() }}<br />{{
caseStudy.getSecondaryAuthorPosition()
}}
</p>
</div>
</div>
{% endif %}
{% set maxWidth = caseStudy.getMaxWidth() ? ' style=max-width:' ~ caseStudy.getMaxWidth() ~ 'px' : '' %}
<div class="section top-bottom-padding the-results">
<div class="inner text-align-center{% if not caseStudy.getMaxWidth() %} maxwidth--1080{% endif %}"{{ maxWidth }}>
<h2 data-aos="fade-up" class="h2--lg">The Results</h2>
<div data-aos="fade-up" class="auto-margins">
{{ caseStudy.getResults() | raw }}
</div>
{% set featureBlockItems = caseStudy.getFeatures() %}
{% if featureBlockItems %}
<div data-aos="fade-up" class="top-margin-2em red-backdrop{% if caseStudy.getClientLink() %} bottom-margin-1em{% endif %}">
<div class="results-box row gutter-space--lg center-lg center-md center-sm center-xs bg-color--lightgray border-right-bottom" style="margin-left:auto;margin-right:auto;">
{% for featureBlockItem in featureBlockItems %}
<div data-aos="fade-up" class="col{% if featureBlockItems|length == 2 %} col-lg-6 col-md-6{% elseif featureBlockItems|length == 3 %} col-lg-4 col-md-4{% endif %} col-sm-6 col-xs-12">
{% if featureBlockItem["Icon"].getData() %}
<img src="{{ featureBlockItem["Icon"].getData() }}" style="max-height: 50px;margin:0 auto 10px;">
{% endif %}
{% if featureBlockItem["Digit"].getData() %}
<p class="large-number">{{ featureBlockItem["Digit"].getData()|raw }}</p>
{% endif %}
<p class="text--lg auto-margins" style="max-width: 300px">
<strong>{{ featureBlockItem["Title"].getData()|raw }}</strong>
</p>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% if caseStudy.getClientLink() %}
{% set buttonLabel = caseStudy.getButtonLabel() ? caseStudy.getButtonLabel() : 'Visit Website' %}
<a data-aos="fade-up" class="btn dark" href="{{ caseStudy.getClientLink() }}" target="_blank">{{ buttonLabel }}</a>
{% endif %}
</div>
</div>
{% include 'content/includes/case-study-carousel.html.twig' %}
<section class="section top-bottom-padding bg-color--red light">
<div class="inner text-align-center">
<div class="row gutter-space--md center-lg center-md center-sm center-xs">
<div class="cta-display-flex no-bottom-margin col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div data-aos="fade-up">
<h1 data-aos="fade-up" class="h2--lg aos-init aos-animate">Ready to get started?</h1>
</div>
<div data-aos="fade-up">
<a href="/contact" class="btn dark">Talk to an expert</a>
</div>
</div>
</div>
</div>
</section>
</div>
{% endblock %}