/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #111;
  color: white;
  text-align: center;
}

.container {
  display: grid;
  grid-template-areas:
    "header"
    "nav"
    "main"
    "social"
    "footer";
  grid-template-rows: auto auto 1fr auto auto;
}

/* ===== Header ===== */
header {
  grid-area: header;
  background: linear-gradient(90deg, #ff2222, #990000);
  padding: 1rem;
  border-bottom: 3px solid black;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 2px;
}

header p {
  margin-top: 0.3rem;
  font-style: italic;
  color: #f0dcdc;
}

/* ===== Navigation ===== */
nav {
  grid-area: nav;
  background-color: black;
  padding: 0.7rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff4444;
}

/* ===== Main Section ===== */
main {
  grid-area: main;
  padding: 1rem;
  background: #181818;
}

.intro h2 {
  color: #ff4444;
  margin-bottom: 0.5rem;
}

.cars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.car-card {
  background-color: #222;
  border: 2px solid #ff0000;
  border-radius: 10px;
  padding: 1rem;
}

.car-card img {
  width: 100%;
  border-radius: 10px;
}

.car-card h3 {
  color: #ff3333;
  margin-top: 0.5rem;
}

.car-card p {
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.large-card{
  grid-column: span 2;
  margin: 0.5rem 0 1rem;
}

.location{
  margin-top:25px;
}

.car-card button {
  background-color: #ff3333;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.car-card button:hover {
  background-color: #cc0000;
}

.required {
  color: red;
}

form input:required, form textarea:required {
  border: 2px solid #ff4444;
}


/* ===== Social Section ===== */
.social {
  grid-area: social;
  background: #111;
  padding: 1rem;
  border-top: 2px solid #ff0000;
  font-size: 1rem;
}

.social a {
  color: #ff3333;
  text-decoration: none;
  margin: 0 0.5rem;
}

.social a:hover {
  color: white;
}

/* ===== Footer ===== */
footer {
  grid-area: footer;
  background-color: black;
  color: #ccc;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 2px solid #222;
}

/* ===== Responsive Design ===== */
@media (max-width: 700px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .car-card {
    padding: 0.5rem;
  }

  header h1 {
    font-size: 1.6rem;
  }
}