473 lines
8.5 KiB
CSS
473 lines
8.5 KiB
CSS
/*
|
|
MajuroEats Theme
|
|
*/
|
|
|
|
:root {
|
|
--coral: #FF6F61;
|
|
--orange: #FF9A8B;
|
|
--ocean-blue: #00A7E1;
|
|
--palm-green: #3D9970;
|
|
--coconut-white: #FFFFFF;
|
|
--sand: #F4F1EA;
|
|
--text-dark: #333333;
|
|
--text-light: #666666;
|
|
--border-color: #EAEAEA;
|
|
|
|
--font-family: 'Nunito', sans-serif;
|
|
--border-radius: 12px;
|
|
--shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.07);
|
|
--shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
|
|
--transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
/* --- Global Styles --- */
|
|
body {
|
|
font-family: var(--font-family);
|
|
background-color: var(--sand);
|
|
color: var(--text-dark);
|
|
margin: 0;
|
|
padding-top: 80px; /* Space for fixed header */
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--coral);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
a:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
main {
|
|
display: block; /* For older browsers */
|
|
}
|
|
|
|
.page-content {
|
|
padding-top: 40px;
|
|
padding-bottom: 40px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2.5rem;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
/* --- Navigation Bar --- */
|
|
.main-header {
|
|
background-color: rgba(255, 255, 255, 0.85);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--border-color);
|
|
box-shadow: var(--shadow-soft);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 1000;
|
|
height: 80px;
|
|
}
|
|
|
|
.main-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 1.8rem;
|
|
font-weight: 800;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.logo-icon {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
gap: 30px;
|
|
}
|
|
|
|
.nav-links a {
|
|
color: var(--text-light);
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
padding: 10px 0;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.nav-links a:hover, .nav-links a.active {
|
|
color: var(--coral);
|
|
border-bottom-color: var(--coral);
|
|
}
|
|
|
|
.nav-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.nav-link-button {
|
|
color: var(--text-light);
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.nav-button {
|
|
padding: 10px 20px;
|
|
border-radius: 50px;
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
border: 2px solid var(--coral);
|
|
}
|
|
|
|
.nav-button.primary {
|
|
background-color: var(--coral);
|
|
color: var(--coconut-white);
|
|
}
|
|
|
|
.nav-button.primary:hover {
|
|
background-color: transparent;
|
|
color: var(--coral);
|
|
}
|
|
|
|
.hamburger {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
.hamburger span {
|
|
display: block;
|
|
width: 25px;
|
|
height: 3px;
|
|
background-color: var(--text-dark);
|
|
margin: 5px 0;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
/* --- Hero Section --- */
|
|
.hero-section {
|
|
position: relative;
|
|
background-image: url('../assets/pasted-20251016-062926-8620c9e4.jpg');
|
|
background-size: cover;
|
|
background-position: center;
|
|
color: var(--coconut-white);
|
|
padding: 120px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(45deg, var(--orange), var(--coral));
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.hero-content-container {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.hero-content h1 {
|
|
font-size: 3.5rem;
|
|
font-weight: 800;
|
|
margin: 0 0 15px;
|
|
text-shadow: 0 3px 10px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.hero-content p {
|
|
font-size: 1.25rem;
|
|
margin: 0 0 30px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.location-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.location-button {
|
|
padding: 15px 30px;
|
|
border-radius: 50px;
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
border: 2px solid var(--coconut-white);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.location-button.primary {
|
|
background-color: var(--coconut-white);
|
|
color: var(--coral);
|
|
}
|
|
|
|
.location-button.primary:hover {
|
|
background-color: transparent;
|
|
color: var(--coconut-white);
|
|
}
|
|
|
|
.location-button.secondary {
|
|
background-color: transparent;
|
|
color: var(--coconut-white);
|
|
}
|
|
|
|
.location-button.secondary:hover {
|
|
background-color: var(--coconut-white);
|
|
color: var(--coral);
|
|
}
|
|
|
|
.find-restaurants-btn {
|
|
display: inline-block;
|
|
background-color: var(--palm-green);
|
|
color: var(--coconut-white);
|
|
padding: 18px 40px;
|
|
border-radius: 50px;
|
|
font-size: 1.2rem;
|
|
font-weight: 800;
|
|
margin-bottom: 20px;
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.delivery-note {
|
|
font-size: 0.9rem;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* --- Promo Section --- */
|
|
.promo-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 30px;
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.promo-card {
|
|
background: var(--coconut-white);
|
|
padding: 30px;
|
|
border-radius: var(--border-radius);
|
|
text-align: center;
|
|
box-shadow: var(--shadow-soft);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.promo-card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.promo-card h3 {
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
color: var(--ocean-blue);
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.promo-card p {
|
|
font-size: 1rem;
|
|
color: var(--text-light);
|
|
margin: 0;
|
|
}
|
|
|
|
/* --- Featured Restaurants --- */
|
|
.featured-restaurants {
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.restaurant-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 30px;
|
|
}
|
|
|
|
.restaurant-card {
|
|
background: var(--coconut-white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
overflow: hidden;
|
|
transition: var(--transition);
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.restaurant-card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.card-image {
|
|
height: 200px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
.card-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.card-content h3 {
|
|
font-size: 1.4rem;
|
|
font-weight: 800;
|
|
margin: 0 0 5px;
|
|
}
|
|
|
|
.cuisine-tags {
|
|
font-size: 0.9rem;
|
|
color: var(--text-light);
|
|
margin: 0 0 15px;
|
|
}
|
|
|
|
.restaurant-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.rating-display {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.rating-display .star {
|
|
color: #FFC700;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.delivery-info {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.see-all-container {
|
|
text-align: center;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.see-all-btn {
|
|
background-color: var(--coral);
|
|
color: var(--coconut-white);
|
|
padding: 15px 35px;
|
|
border-radius: 50px;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
border: 2px solid var(--coral);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.see-all-btn:hover {
|
|
background-color: transparent;
|
|
color: var(--coral);
|
|
}
|
|
|
|
/* --- Footer --- */
|
|
.main-footer {
|
|
background-color: var(--text-dark);
|
|
color: var(--sand);
|
|
padding: 40px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
/* --- Responsive Design --- */
|
|
@media (max-width: 992px) {
|
|
.nav-links {
|
|
display: none;
|
|
position: absolute;
|
|
top: 80px;
|
|
left: 0;
|
|
width: 100%;
|
|
background-color: var(--coconut-white);
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 20px 0;
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.nav-links.active {
|
|
display: flex;
|
|
}
|
|
|
|
.nav-links li {
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-links a {
|
|
padding: 15px;
|
|
display: block;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.nav-actions {
|
|
display: none; /* Simple toggle, for complex logic more JS is needed */
|
|
}
|
|
|
|
.nav-actions.active {
|
|
display: flex;
|
|
position: absolute;
|
|
top: calc(80px + 250px); /* Adjust based on nav-links height */
|
|
left: 0;
|
|
width: 100%;
|
|
background-color: var(--coconut-white);
|
|
justify-content: center;
|
|
padding: 20px 0;
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.hamburger {
|
|
display: block;
|
|
}
|
|
|
|
.hero-content h1 {
|
|
font-size: 2.8rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body {
|
|
padding-top: 70px;
|
|
}
|
|
.main-header, .main-nav {
|
|
height: 70px;
|
|
}
|
|
.nav-links {
|
|
top: 70px;
|
|
}
|
|
.hero-content h1 {
|
|
font-size: 2.2rem;
|
|
}
|
|
.hero-content p {
|
|
font-size: 1.1rem;
|
|
}
|
|
.location-actions {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
} |