Files
doormile-site/includes/sections/about/vision.php
2026-05-15 15:51:56 +05:30

227 lines
5.6 KiB
PHP

<style>
/* Vision & Mission Component Styles */
.vm-section-wrapper {
margin-top: 30px;
width: calc(100% - 40px);
max-width: none;
height: auto;
display: flex;
justify-content: center;
background: #1F1F1F;
position: relative;
font-family: 'DM Sans', sans-serif;
color: #ffffff;
margin-left: auto;
margin-right: auto;
border-radius: 25px;
overflow: hidden;
}
.vm-section {
position: relative;
z-index: 1;
width: 100%;
max-width: 1520px;
padding-top: 90px;
padding-left: clamp(24px, 4vw, 64px);
padding-right: clamp(24px, 4vw, 64px);
margin: 0 auto !important;
}
.vm-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 80px;
align-items: stretch;
height: 20vh;
}
.vm-card {
position: relative;
background: rgba(255, 255, 255, 0.03);
/* image layer rendered in ::after */
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 28px;
padding: 52px 48px 44px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
transition: transform 0.44s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.44s ease;
}
.vm-card:hover {
transform: translateY(-10px);
box-shadow: 0 30px 64px rgba(192, 32, 42, 0.18);
}
.vm-icon-wrap {
width: 100%;
margin: 0 0 20px 0;
background: transparent;
border-radius: 14px;
overflow: hidden;
}
.vm-icon-img {
opacity: 0.2;
display: block;
width: 100%;
height: 160px;
object-fit: cover;
}
/* dark overlay for readability */
.vm-card::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
z-index: 1;
border-radius: 30px;
}
/* background-image layer with blur and opacity (beneath overlay) */
.vm-card::after {
content: "";
position: absolute;
inset: 0;
z-index: 0;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
filter: blur(1px) saturate(0.95);
transform: scale(1.03);
opacity: 0.80;
transition: filter 200ms ease, opacity 200ms ease;
border-radius: inherit;
}
.vm-card>* {
position: relative;
z-index: 2;
}
/* Per-card background images (replace with real paths as needed) */
.vm-card--vision::after {
background-image: url('assets/images/vision.png');
}
.vm-card--mission::after {
background-image: url('assets/images/mission.png');
}
.vm-tag {
font-size: 0.67rem;
font-weight: 500;
letter-spacing: 0.2em;
text-transform: uppercase;
color: #C0202A;
margin-bottom: 12px;
}
.vm-title {
font-family: 'Playfair Display', serif;
font-size: 2rem;
font-weight: 700;
margin-bottom: 20px;
color: #ffffff;
}
.vm-title em {
font-style: italic;
color: #C0202A;
}
.vm-body {
font-size: 1.125rem;
font-weight: 300;
color: #cfcfd6;
line-height: 1.8;
}
@media (min-width: 1025px) {
.vm-section {
min-height: 78vh;
padding-bottom: 90px;
display: flex;
align-items: center;
}
.vm-grid {
height: auto;
min-height: 520px;
}
.vm-card {
min-height: 520px;
display: flex;
flex-direction: column;
justify-content: center;
}
}
@media (max-width: 1024px) {
.vm-section-wrapper {
margin-top: 20px;
width: calc(100% - 24px);
}
.vm-section {
padding: 70px 24px;
}
.vm-grid {
grid-template-columns: 1fr;
height: auto;
gap: 24px;
}
.vm-card {
min-height: 360px;
padding: 40px 34px;
display: flex;
flex-direction: column;
justify-content: center;
}
}
@media (max-width: 600px) {
.vm-section {
padding: 56px 16px;
}
.vm-card {
min-height: 320px;
padding: 30px 24px;
border-radius: 20px;
}
.vm-title {
font-size: 1.75rem;
margin-bottom: 14px;
}
.vm-body {
font-size: 1rem;
line-height: 1.65;
}
}
</style>
<div class="vm-section-wrapper">
<section class="vm-section">
<div class="vm-grid">
<article class="vm-card vm-card--vision">
<p class="vm-tag">Vision</p>
<h3 class="vm-title" style="color: white;">Our <em>Vision</em></h3>
<p class="vm-body">To become India's most trusted connected logistics platform, where every package travels on a single, transparent timeline.</p>
</article>
<article class="vm-card vm-card--mission">
<p class="vm-tag">Mission</p>
<h3 class="vm-title" style="color: white;">Our <em>Mission</em></h3>
<p class="vm-body">To eliminate the chaos of fragmented logistics by unifying first, mid, and last miles with MileTruth&trade; AI.</p>
</article>
</div>
</section>
</div>