Homepage -test
“`css
/* Import Fonts */
@import url(‘https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600&display=swap’);
/* CSS Variables */
:root {
/* Colors */
–mfc-background: hsl(30, 25%, 97%);
–mfc-foreground: hsl(25, 35%, 12%);
–mfc-primary: hsl(25, 40%, 18%);
–mfc-primary-foreground: hsl(35, 30%, 95%);
–mfc-secondary: hsl(35, 30%, 92%);
–mfc-accent: hsl(38, 70%, 50%);
–mfc-muted: hsl(25, 15%, 45%);
–mfc-border: hsl(30, 20%, 85%);
–mfc-coffee-50: hsl(35, 30%, 95%);
–mfc-coffee-900: hsl(25, 30%, 8%);
/* Fonts */
–mfc-font-heading: ‘Playfair Display’, serif;
–mfc-font-body: ‘Source Sans 3’, sans-serif;
/* Shadows */
–mfc-shadow-soft: 0 4px 20px hsla(25, 40%, 18%, 0.08);
–mfc-shadow-elevated: 0 8px 40px hsla(25, 40%, 18%, 0.12);
}
body {
font-family: var(–mfc-font-body);
background-color: var(–mfc-background);
color: var(–mfc-foreground);
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(–mfc-font-heading);
}
/* Container */
.mfc-container {
max-width: 1280px;
margin: 0 auto;
padding: 0 24px;
}
.mfc-section {
padding: 80px 24px;
}
@media (min-width: 768px) {
.mfc-section {
padding: 112px 48px;
}
}
@media (min-width: 1024px) {
.mfc-section {
padding: 112px 96px;
}
}
/* Buttons */
.mfc-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 24px;
font-family: var(–mfc-font-body);
font-size: 14px;
font-weight: 600;
text-decoration: none;
border-radius: 6px;
transition: all 0.3s ease;
cursor: pointer;
border: none;
}
.mfc-btn-primary {
background-color: var(–mfc-primary);
color: var(–mfc-primary-foreground);
}
.mfc-btn-primary:hover {
background-color: hsl(25, 40%, 25%);
}
.mfc-btn-gold {
background: linear-gradient(135deg, hsl(38, 70%, 50%) 0%, hsl(42, 80%, 55%) 100%);
color: var(–mfc-foreground);
box-shadow: 0 4px 20px hsla(38, 70%, 50%, 0.25);
}
.mfc-btn-gold:hover {
transform: translateY(-2px);
box-shadow: 0 6px 25px hsla(38, 70%, 50%, 0.35);
}
.mfc-btn-outline {
background: transparent;
color: var(–mfc-coffee-50);
border: 2px solid hsla(35, 30%, 95%, 0.5);
}
.mfc-btn-outline:hover {
background: hsla(35, 30%, 95%, 0.1);
border-color: var(–mfc-coffee-50);
}
.mfc-btn-xl {
padding: 16px 32px;
font-size: 16px;
}
/* Header */
.mfc-header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 50;
background: hsla(30, 25%, 97%, 0.8);
backdrop-filter: blur(12px);
border-bottom: 1px solid hsla(30, 20%, 85%, 0.5);
}
.mfc-header-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 24px;
max-width: 1280px;
margin: 0 auto;
}
.mfc-logo {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
}
.mfc-logo-circle {
width: 48px;
height: 48px;
background: var(–mfc-primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(–mfc-primary-foreground);
font-family: var(–mfc-font-heading);
font-size: 18px;
font-weight: 700;
}
.mfc-logo-text h1 {
font-size: 18px;
font-weight: 600;
margin: 0;
color: var(–mfc-foreground);
line-height: 1.2;
}
.mfc-logo-text p {
font-size: 12px;
color: var(–mfc-muted);
margin: 0;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.mfc-nav {
display: none;
gap: 32px;
}
@media (min-width: 1024px) {
.mfc-nav {
display: flex;
}
}
.mfc-nav a {
font-size: 14px;
font-weight: 500;
color: var(–mfc-muted);
text-decoration: none;
transition: color 0.3s ease;
position: relative;
}
.mfc-nav a:hover,
.mfc-nav a.active {
color: var(–mfc-foreground);
}
.mfc-nav a::after {
content: ”;
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 2px;
background: var(–mfc-accent);
transition: width 0.3s ease;
}
.mfc-nav a:hover::after,
.mfc-nav a.active::after {
width: 100%;
}
/* Hero Section */
.mfc-hero {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.mfc-hero-bg {
position: absolute;
inset: 0;
}
.mfc-hero-bg img {
width: 100%;
height: 100%;
object-fit: cover;
}
.mfc-hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, hsla(25, 30%, 8%, 0.8) 0%, hsla(25, 30%, 8%, 0.6) 50%, hsla(25, 30%, 8%, 0.9) 100%);
}
.mfc-hero-content {
position: relative;
z-index: 10;
text-align: center;
padding: 128px 24px 80px;
max-width: 896px;
margin: 0 auto;
}
.mfc-hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
border-radius: 9999px;
background: hsla(38, 70%, 50%, 0.2);
border: 1px solid hsla(38, 70%, 50%, 0.4);
color: var(–mfc-coffee-50);
font-size: 14px;
font-weight: 500;
margin-bottom: 32px;
}
.mfc-hero-badge-dot {
width: 8px;
height: 8px;
background: var(–mfc-accent);
border-radius: 50%;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.mfc-hero h1 {
font-size: 36px;
font-weight: 700;
color: var(–mfc-coffee-50);
margin: 0 0 24px;
line-height: 1.1;
text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
@media (min-width: 640px) {
.mfc-hero h1 { font-size: 48px; }
}
@media (min-width: 768px) {
.mfc-hero h1 { font-size: 60px; }
}
@media (min-width: 1024px) {
.mfc-hero h1 { font-size: 72px; }
}
.mfc-hero h1 span {
display: block;
color: var(–mfc-accent);
margin-top: 8px;
}
.mfc-hero-subtitle {
font-size: 18px;
color: hsla(35, 30%, 95%, 0.9);
max-width: 672px;
margin: 0 auto 40px;
line-height: 1.7;
text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
@media (min-width: 640px) {
.mfc-hero-subtitle { font-size: 20px; }
}
.mfc-hero-buttons {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
@media (min-width: 640px) {
.mfc-hero-buttons {
flex-direction: row;
justify-content: center;
}
}
.mfc-hero-stats {
margin-top: 64px;
padding-top: 32px;
border-top: 1px solid hsla(35, 30%, 95%, 0.2);
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 32px;
}
@media (min-width: 768px) {
.mfc-hero-stats { gap: 64px; }
}
.mfc-hero-stat {
text-align: center;
color: hsla(35, 30%, 95%, 0.8);
}
.mfc-hero-stat strong {
display: block;
font-family: var(–mfc-font-heading);
font-size: 30px;
font-weight: 700;
color: var(–mfc-coffee-50);
}
.mfc-hero-stat span {
font-size: 14px;
}
/* About Section */
.mfc-about {
background: linear-gradient(135deg, var(–mfc-background) 0%, var(–mfc-secondary) 100%);
}
.mfc-about-grid {
display: grid;
gap: 48px;
align-items: center;
}
@media (min-width: 1024px) {
.mfc-about-grid {
grid-template-columns: 1fr 1fr;
gap: 64px;
}
}
.mfc-about-image {
position: relative;
}
.mfc-about-image img {
width: 100%;
border-radius: 12px;
box-shadow: var(–mfc-shadow-elevated);
}
.mfc-about-badge {
position: absolute;
bottom: -20px;
right: -20px;
background: white;
padding: 24px;
border-radius: 12px;
box-shadow: var(–mfc-shadow-elevated);
text-align: center;
}
.mfc-about-badge strong {
display: block;
font-family: var(–mfc-font-heading);
font-size: 30px;
color: var(–mfc-accent);
}
.mfc-about-badge span {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(–mfc-muted);
}
.mfc-about-content h2 {
font-size: 36px;
font-weight: 600;
margin: 0 0 24px;
}
@media (min-width: 768px) {
.mfc-about-content h2 { font-size: 42px; }
}
.mfc-about-content p {
color: var(–mfc-muted);
line-height: 1.8;
margin-bottom: 16px;
}
.mfc-features-list {
list-style: none;
padding: 0;
margin: 32px 0;
}
.mfc-features-list li {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 0;
border-bottom: 1px solid var(–mfc-border);
}
.mfc-features-list li:last-child {
border-bottom: none;
}
.mfc-check-icon {
width: 24px;
height: 24px;
background: hsla(38, 70%, 50%, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(–mfc-accent);
flex-shrink: 0;
}
/* Products Section */
.mfc-products {
background: var(–mfc-secondary);
}
.mfc-section-header {
text-align: center;
max-width: 672px;
margin: 0 auto 48px;
}
.mfc-section-header h2 {
font-size: 36px;
font-weight: 600;
margin: 0 0 16px;
}
@media (min-width: 768px) {
.mfc-section-header h2 { font-size: 42px; }
}
.mfc-section-header p {
color: var(–mfc-muted);
font-size: 18px;
}
.mfc-products-grid {
display: grid;
gap: 32px;
}
@media (min-width: 768px) {
.mfc-products-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1024px) {
.mfc-products-grid {
grid-template-columns: repeat(3, 1fr);
}
}
.mfc-product-card {
background: white;
border-radius: 16px;
overflow: hidden;
box-shadow: var(–mfc-shadow-soft);
transition: all 0.3s ease;
}
.mfc-product-card:hover {
transform: translateY(-4px);
box-shadow: var(–mfc-shadow-elevated);
}
.mfc-product-image {
position: relative;
aspect-ratio: 4/3;
overflow: hidden;
}
.mfc-product-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.mfc-product-card:hover .mfc-product-image img {
transform: scale(1.05);
}
.mfc-product-badge {
position: absolute;
top: 16px;
left: 16px;
padding: 6px 12px;
background: var(–mfc-accent);
color: var(–mfc-foreground);
font-size: 12px;
font-weight: 600;
border-radius: 4px;
}
.mfc-product-content {
padding: 24px;
}
.mfc-product-rating {
display: flex;
align-items: center;
gap: 4px;
margin-bottom: 12px;
}
.mfc-star {
color: var(–mfc-accent);
font-size: 14px;
}
.mfc-product-content h3 {
font-size: 20px;
font-weight: 600;
margin: 0 0 8px;
}
.mfc-product-content p {
color: var(–mfc-muted);
font-size: 14px;
line-height: 1.6;
margin-bottom: 16px;
}
.mfc-product-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 16px;
border-top: 1px solid var(–mfc-border);
}
.mfc-product-price {
font-family: var(–mfc-font-heading);
font-size: 24px;
font-weight: 700;
color: var(–mfc-foreground);
}
/* B2B Section */
.mfc-b2b {
background: var(–mfc-primary);
color: var(–mfc-primary-foreground);
}
.mfc-b2b h2 {
font-size: 36px;
font-weight: 600;
margin: 0 0 24px;
}
@media (min-width: 768px) {
.mfc-b2b h2 { font-size: 42px; }
}
.mfc-b2b-grid {
display: grid;
gap: 32px;
margin-top: 48px;
}
@media (min-width: 768px) {
.mfc-b2b-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1024px) {
.mfc-b2b-grid {
grid-template-columns: repeat(4, 1fr);
}
}
.mfc-b2b-card {
background: hsla(35, 30%, 95%, 0.1);
border: 1px solid hsla(35, 30%, 95%, 0.2);
border-radius: 12px;
padding: 32px;
text-align: center;
transition: all 0.3s ease;
}
.mfc-b2b-card:hover {
background: hsla(35, 30%, 95%, 0.15);
transform: translateY(-4px);
}
.mfc-b2b-icon {
width: 64px;
height: 64px;
background: hsla(38, 70%, 50%, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 24px;
color: var(–mfc-accent);
font-size: 24px;
}
.mfc-b2b-card h3 {
font-size: 18px;
font-weight: 600;
margin: 0 0 12px;
}
.mfc-b2b-card p {
color: hsla(35, 30%, 95%, 0.7);
font-size: 14px;
line-height: 1.6;
}
/* Footer */
.mfc-footer {
background: var(–mfc-primary);
color: var(–mfc-primary-foreground);
}
.mfc-footer-grid {
display: grid;
gap: 48px;
}
@media (min-width: 768px) {
.mfc-footer-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1024px) {
.mfc-footer-grid {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
}
.mfc-footer h4 {
font-size: 18px;
font-weight: 600;
margin: 0 0 24px;
}
.mfc-footer p {
color: hsla(35, 30%, 95%, 0.7);
font-size: 14px;
line-height: 1.7;
}
.mfc-footer a {
color: hsla(35, 30%, 95%, 0.7);
text-decoration: none;
transition: color 0.3s ease;
}
.mfc-footer a:hover {
color: var(–mfc-accent);
}
.mfc-footer-nav {
display: flex;
flex-direction: column;
gap: 12px;
}
.mfc-footer-bottom {
border-top: 1px solid hsla(35, 30%, 95%, 0.1);
padding: 24px;
text-align: center;
}
.mfc-footer-bottom p {
margin: 0;
font-size: 14px;
color: hsla(35, 30%, 95%, 0.5);
}
.mfc-social-links {
display: flex;
gap: 16px;
margin-top: 24px;
}
.mfc-social-link {
width: 40px;
height: 40px;
background: hsla(35, 30%, 95%, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.mfc-social-link:hover {
background: var(–mfc-accent);
color: var(–mfc-foreground);
}
/* Newsletter Form */
.mfc-newsletter-form {
display: flex;
flex-direction: column;
gap: 12px;
}
.mfc-newsletter-form input {
padding: 12px 16px;
border-radius: 6px;
background: hsla(35, 30%, 95%, 0.1);
border: 1px solid hsla(35, 30%, 95%, 0.2);
color: var(–mfc-primary-foreground);
font-family: var(–mfc-font-body);
font-size: 14px;
}
.mfc-newsletter-form input::placeholder {
color: hsla(35, 30%, 95%, 0.5);
}
.mfc-newsletter-form input:focus {
outline: none;
border-color: var(–mfc-accent);
}
/* Utilities */
.text-center { text-align: center; }
.text-accent { color: var(–mfc-accent); }
“`