/* 
    marygrace.ng Stylesheet
    Colors: 
    - Light Green: #f1f8e9
    - Deep Green: #2e7d32
    - Orange: #f57c00
    - Gold: #d4af37
    - Text: #333333
*/

:root {
    --light-green: #f1f8e9;
    --mid-green: #81c784;
    --deep-green: #2e7d32;
    --orange: #f57c00;
    --gold: #d4af37;
    --white: #ffffff;
    --dark: #333333;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-green);
    color: var(--dark);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--deep-green);
    text-decoration: none;
}

.logo span {
    color: var(--gold);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--deep-green);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--orange);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--orange);
    color: white;
}

.btn-primary:hover {
    background-color: #e65100;
    transform: translateY(-3px);
}

/* Products Section */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--deep-green);
}

.section-title span {
    color: var(--gold);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--deep-green);
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Admin Dashboard */
.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    margin: 5rem auto;
    box-shadow: var(--shadow);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.admin-form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: var(--deep-green);
    color: white;
}

.btn-delete {
    background: #ff5252;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Footer */
footer {
    background-color: var(--deep-green);
    color: white;
    padding: 3rem 5%;
    text-align: center;
    margin-top: 5rem;
}

footer p {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--gold);
    margin: 0 10px;
    font-size: 1.5rem;
    text-decoration: none;
}
