/* styles.css - Bloom Valley Nursery - Complete External CSS for Touchstone Tasks */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Calibri, sans-serif;
    color: #00231C; /* Detritus Green - Font Color Option 1 */
    line-height: 1.6;
    background-color: #f9fff9; /* Very light green/cream neutral */
}

/* Typography from Option 2 */
h1 {
    font: bold 30px Arial, sans-serif;
    margin-bottom: 10px;
}

h2 {
    font: bold 25px Arial, sans-serif;
    margin: 30px 0 15px;
}

.subtitle {
    font: normal 15px 'Comfortaa', cursive;
    color: #4CAF50; /* Accent green for freshness */
}

.body-large {
    font: normal 20px Calibri, sans-serif;
}

.body-strong {
    font: bold 16px Calibri, sans-serif;
}

p {
    font: normal 16px Calibri, sans-serif;
    margin-bottom: 15px;
}

.caption {
    font: bold 11px Arial, sans-serif;
}

/* Header & Navigation */
header {
    background-color: #f1f8e9; /* Light green/cream */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px;
    background-color: #e8f5e9; /* Soft green */
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    color: #00231C;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #4CAF50;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 10px auto;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.center-text {
    text-align: center;
}

/* Buttons */
button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font: bold 16px Calibri, sans-serif;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #388E3C;
}

/* Cart Controls */
.cart-controls {
    text-align: center;
    margin: 20px 0;
}

.cart-controls button {
    margin: 10px;
}

/* Table for Gallery */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 30px;
}

td {
    text-align: center;
    vertical-align: top;
}

/* Form for Contact */
form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f1f8e9;
    border-radius: 8px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: normal 16px Calibri, sans-serif;
}

.center {
    text-align: center;
}

/* Blockquotes for Testimonials */
blockquote {
    border-left: 5px solid #4CAF50;
    padding: 20px;
    margin: 30px 0;
    background-color: #f1f8e9;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: #e8f5e9;
    margin-top: 50px;
}

.subscribe-section {
    margin-top: 20px;
}

.subscribe-section button {
    margin: 10px;
    padding: 12px 24px;
    font-size: 16px;
}

/* Modal for View Cart */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* Responsive Web Design (Mobile Adjustments) */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .featured-plants {
        flex-direction: column;
    }

    td {
        display: block;
        margin-bottom: 40px;
    }

    main {
        padding: 20px 10px;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}