html Copy code
<style>
/* ==== Root Variables ==== */
:root {
--c-bg-primary: #2b2b2b; /* Changed to solid color */
--c-text-primary: white;
--c-gold: #D1C287;
--c-border: var(--c-gold);
--f-primary: 'Lato', sans-serif;
--s-border-radius: 8px;
--transition-speed: 0.3s;
--fade-in-duration: 0.6s;
--section-padding: 20px 0; /* Corrected padding */
--button-background: #ffffff;
--button-text: var(--c-accent);
--button-hover-bg: var(--c-accent);
--button-hover-text: #ffffff;
--container-max-width: 1100px;
--gap-size: 30px;
--shadow-light: 0 6px 20px rgba(0, 0, 0, 0.1);
--shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.25);
}
/* ==== Global Styles ==== */
body {
font-family: var(--f-primary);
background-color: #f9f9f9;
margin: 0;
padding: 0;
color: var(--c-text-primary);
}
/* ==== Container Styling ==== */
.services-wrapper {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: var(--gap-size);
max-width: var(--container-max-width);
margin: 0 auto;
padding: var(--section-padding);
box-sizing: border-box;
}
/* ==== Service Card Styling ==== */
.service-card {
background: var(--c-bg-primary);
border: 2px solid var(--c-border); /* Added golden border */
border-radius: var(--s-border-radius);
box-shadow: var(--shadow-light);
padding: 30px 25px;
color: var(--c-text-primary);
display: flex;
flex-direction: column;
transition:
transform var(--transition-speed),
box-shadow var(--transition-speed),
border-color var(--transition-speed);
opacity: 0;
animation: fadeInUp var(--fade-in-duration) forwards;
}
.service-card:nth-child(1) {
animation-delay: 0.1s;
}
.service-card:nth-child(2) {
animation-delay: 0.2s;
}
/* ==== Hover Effects ==== */
.service-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-hover);
border-color: var(--c-gold); /* Maintain golden border on hover */
}
/* ==== Header Section ==== */
.service-header {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.service-header svg {
width: 32px;
height: 32px;
margin-right: 12px;
fill: var(--c-gold);
transition: fill var(--transition-speed);
}
.service-header:hover svg {
fill: var(--button-hover-text);
}
.service-title {
font-size: 24px;
margin: 0;
color: var(--c-text-primary);
font-weight: 700;
}
/* ==== Description Section ==== */
.service-description {
flex-grow: 1;
font-size: 16px;
line-height: 1.6;
color: rgba(255, 255, 255, 0.95);
margin-bottom: 25px;
}
/* ==== Button Styling ==== */
.service-button {
background-color: var(--button-background);
color: var(--c-accent);
border: 1px solid var(--c-accent);
padding: 12px 20px;
border-radius: 6px;
cursor: pointer;
display: inline-flex;
align-items: center;
font-size: 16px;
text-decoration: none;
transition:
background-color var(--transition-speed),
color var(--transition-speed),
border-color var(--transition-speed);
width: fit-content;
}
.service-button:hover {
background-color: var(--button-hover-bg);
color: var(--button-hover-text);
border-color: var(--c-accent);
}
.service-button svg {
margin-left: 8px;
fill: currentColor;
width: 14px;
height: 14px;
transition: transform var(--transition-speed);
}
.service-button:hover svg {
transform: translateX(4px);
}
/* ==== Keyframes for Animation ==== */
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
/* ==== Responsive Design ==== */
@media (max-width: 1024px) {
.services-wrapper {
padding: var(--section-padding);
gap: 25px;
}
.service-card {
max-width: 45%;
}
}
@media (max-width: 768px) {
.service-card {
max-width: 100%;
}
.service-header svg {
width: 28px;
height: 28px;
margin-right: 10px;
}
.service-title {
font-size: 22px;
}
.service-description {
font-size: 15px;
}
.service-button {
padding: 11px 18px;
font-size: 15px;
}
.service-button svg {
width: 12px;
height: 12px;
}
}
@media (max-width: 480px) {
.services-wrapper {
padding: 20px 10px;
gap: 20px;
}
.service-card {
padding: 25px 20px;
}
.service-header svg {
width: 24px;
height: 24px;
margin-right: 8px;
}
.service-title {
font-size: 20px;
}
.service-description {
font-size: 14px;
}
.service-button {
padding: 10px 16px;
font-size: 14px;
}
.service-button svg {
width: 10px;
height: 10px;
}
}
</style>
<body>
<div class="services-wrapper">
<!-- Diagnostics Service Card -->
<div class="service-card" role="article">
<div class="service-header">
<!-- Diagnostics Icon (Laboratory Flask) -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-label="Diagnostics Icon" role="img">
<path d="M15 3h-6l-1 2H5v2h2l1 2H5v2h2l1 2H5v2h2l1 2h6l1-2h6v-2h-2l-1-2h2V7h-2l-1-2zM8 19h8v2H8v-2z"/>
</svg>
<h2 class="service-title">Diagnostics</h2>
</div>
<p class="service-description">
At Longeva Care, our comprehensive Diagnostics program employs advanced testing methods to assess and enhance your health:
</p>
<ul class="service-description" style="list-style-type: disc; padding-left: 20px; margin-bottom: 25px;">
<li>Cellular Deficiency Assessments: Identify and address cellular nutrient gaps.</li>
<li>Hair and Skin Analysis: Conduct clinical evaluations to monitor health indicators.</li>
<li>Genetic Testing: Utilize DNA insights to create personalized health strategies.</li>
</ul>
<p class="service-description">
By combining these diagnostic tools, we ensure precise interventions and proactive management, promoting optimal wellness and longevity.
</p>
<a href="https://longevacare.com/what-we-do/programs/the-longeva-diagnostics/" class="service-button" aria-label="View Details for Diagnostics">
View Details
<!-- Arrow Icon (Play Triangle) -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<path d="M8 5v14l11-7z"/>
</svg>
</a>
</div>
<!-- Protocols Service Card -->
<div class="service-card" role="article">
<div class="service-header">
<!-- Protocols Icon (Gear) -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-label="Protocols Icon" role="img">
<path d="M19.14,12.936c0.036-0.303,0.056-0.614,0.056-0.936c0-0.322-0.02-0.633-0.056-0.936l2.037-1.58c0.18-0.14,0.23-0.41,0.12-0.62
l-1.928-3.341c-0.11-0.21-0.36-0.28-0.57-0.2l-2.4,0.96c-0.5-0.38-1.04-0.7-1.62-0.94l-0.36-2.54A0.498,0.498,0,0,0,14.5,3H9.5
a0.498,0.498,0,0,0-0.49,0.42l-0.36,2.54c-0.58,0.24-1.12,0.56-1.62,0.94l-2.4-0.96c-0.21-0.08-0.46,0-0.57,0.2L2.35,8.88
c-0.11,0.21-0.06,0.48,0.12,0.62l2.037,1.58c-0.036,0.303-0.056,0.614-0.056,0.936c0,0.322,0.02,0.633,0.056,0.936L2.59,14.516
c-0.18,0.14-0.23,0.41-0.12,0.62l1.928,3.341c0.11,0.21,0.36,0.28,0.57,0.2l2.4-0.96c0.5,0.38,1.04,0.7,1.62,0.94l0.36,2.54
a0.498,0.498,0,0,0,0.49,0.42h5a0.498,0.498,0,0,0,0.49-0.42l0.36-2.54c0.58-0.24,1.12-0.56,1.62-0.94l2.4,0.96
c0.21,0.08,0.46,0,0.57-0.2l1.928-3.341c0.11-0.21,0.06-0.48-0.12-0.62Zm-7.14,4.564a4,4,0,1,1,4-4A4,4,0,0,1,12,17.5Z"/>
</svg>
<h2 class="service-title">Protocols</h2>
</div>
<p class="service-description">
Our Protocols are tailored treatments designed to address various aspects of your health and well-being:
</p>
<ul class="service-description" style="list-style-type: disc; padding-left: 20px; margin-bottom: 25px;">
<li>Cellular Micronutrients: Optimize cellular function with essential nutrients.</li>
<li>Toxin Elimination: Remove harmful substances from the body.</li>
<li>DNA Protection: Safeguard your genetic material against damage.</li>
<li>Insulin Resistance Reversal: Improve insulin sensitivity for better metabolic health.</li>
<li>Immune Regulation: Strengthen and balance the immune system.</li>
<li>Anti-Aging Treatments: Slow down the aging process with targeted therapies.</li>
<li>Disease Deconditioning: Manage and reverse disease-related conditions.</li>
<li>Neuropsychiatry: Enhance mental health and neurological function.</li>
<li>Skin Enhancements: Improve skin health and appearance.</li>
<li>Lifestyle Management: Develop sustainable healthy habits.</li>
<li>Relaxation Techniques: Incorporate stress-reducing practices for overall well-being.</li>
</ul>
<p class="service-description">
Our protocols are designed to provide holistic and effective treatments, ensuring you achieve sustained health and longevity.
</p>
<a href="https://longevacare.com/what-we-do/programs/protocols/" class="service-button" aria-label="View Details for Protocols">
View Details
<!-- Arrow Icon (Play Triangle) -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<path d="M8 5v14l11-7z"/>
</svg>
</a>
</div>
</div>
</body>
By implementing these changes, the design becomes cleaner, more visually appealing, and better optimized for both users and search engines.