/*
 * Stylesheet for Nashville Golf Cart Rentals demo website
 *
 * This file defines the color scheme, typography and layout used
 * across all pages of the static NGCR website. It was designed to
 * loosely mirror the look and feel of the original Nashville Golf Cart
 * Rentals site while remaining lightweight and easy to maintain.
 */

/* CSS Variables for easy theming */
:root {
  --primary-color: #066956;       /* NGCR green */
  --secondary-color: #f7f9f9;     /* light grey for backgrounds */
  --accent-color: #0a8371;        /* slightly lighter green */
  --text-color: #333333;          /* dark grey for body text */
  --heading-color: #044a3d;       /* dark green for headings */
  --nav-height: 60px;
  --border-radius: 4px;
  --max-width: 1100px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
}

/* Header and navigation */
header {
  background-color: var(--primary-color);
  color: white;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  transition: background-color 0.2s ease;
}

nav ul li a:hover {
  background-color: var(--accent-color);
  border-radius: var(--border-radius);
}

/* Hero section */
.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #044a3d;
}

/* Content wrapper */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

section h2 {
  text-align: center;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Rental cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
  flex-grow: 1;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--heading-color);
}

.card p {
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.card .price {
  font-weight: bold;
  margin-bottom: 1rem;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

label {
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="file"],
select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

input[type="checkbox"] {
  transform: scale(1.2);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-row > div {
  flex: 1;
  min-width: 200px;
}

.total {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1rem;
  text-align: right;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

footer p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}