/* Basic Reset & Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header & Navigation */
header {
    background: #333;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

header h1 {
    float: left;
    margin: 0;
    padding: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover {
    color: #77aaff;
    font-weight: bold;
}

/* Hero Section */
#hero {
    min-height: 400px;
    background: #555 url('https://via.placeholder.com/1500x400/888888/FFFFFF?text=Granite+HQ') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.2em;
}

.hero-button {
    display: inline-block;
    background: #77aaff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1.1em;
    transition: background 0.3s ease;
}

.hero-button:hover {
    background: #5588dd;
}

/* About Section */
#about {
    padding: 40px 0;
    background: #fff;
    border-bottom: #ddd 1px solid;
}

#about h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Highlights Section */
#highlights {
    padding: 40px 0;
    background: #f9f9f9;
    border-bottom: #ddd 1px solid;
}

#highlights h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.highlight-item {
    background: #fff;
    padding: 25px;
    border: #eee 1px solid;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.highlight-item h4 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.highlight-item p {
    font-size: 0.95em;
    color: #666;
}

/* Products Section */
#products {
    padding: 40px 0;
    background: #f4f4f4;
}

#products h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.product-panel {
    background: #fff;
    padding: 20px;
    border: #ddd 1px solid;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}

.product-panel h3 {
    color: #333;
    margin-top: 0;
    min-height: 50px; /* Ensure consistent height for titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-panel h3 a {
    text-decoration: none;
    color: #333;
}

.product-panel p {
    font-size: 0.9em;
    color: #666;
    flex-grow: 1; /* Allows description to take available space */
}

.product-panel .button {
    display: inline-block;
    background: #77aaff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.product-panel .button:hover {
    background: #5588dd;
}

/* Prominent Product (RV Checklist) */
.product-panel.prominent {
    grid-column: span 2; /* Make it span two columns on larger screens */
    background: #e9f0ff; /* Slightly different background to stand out */
    border-color: #77aaff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.product-panel.prominent h3 {
    font-size: 1.8em; /* Larger title */
    color: #333;
}

.product-panel.prominent p {
    font-size: 1.1em; /* Larger description */
}


/* Contact Form Styles */
#contact-us {
    padding: 40px 0;
    background: #fff;
}

#contact-us h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border: #ddd 1px solid;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: #ccc 1px solid;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't increase width */
    font-size: 1em;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

#contactForm .button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #77aaff;
    color: #fff;
    border: 0;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

#contactForm .button:hover {
    background: #5588dd;
}

/* Footer */
footer {
    padding: 20px;
    margin-top: 20px;
    color: #fff;
    background-color: #333;
    text-align: center;
    border-top: #77aaff 3px solid;
}

footer ul {
    padding: 0;
    list-style: none;
    margin-top: 10px;
}

footer li {
    display: inline;
    padding: 0 10px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #77aaff;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1,
    header nav {
        float: none;
        text-align: center;
    }

    header ul li {
        display: block;
        padding: 5px 0;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .product-panel.prominent {
        grid-column: span 1; /* Reset span for mobile */
    }

    .container {
        width: 95%;
    }
}
