:root {
  --bg: #f7f3ec;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --text: #111111;
  --muted: #6f6a61;
  --brand: #d99a00;
  --brand-dark: #9a6500;
  --border: rgba(17, 17, 17, 0.10);
  --shadow: 0 22px 55px rgba(17, 17, 17, 0.14);
  --radius: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(circle at top left, #fff7df 0, transparent 32rem), var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  display: inline-flex;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #25221d;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #111111;
  color: #ffffff;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.75rem;
  border: 0;
  border-radius: 14px;
  background: #111111;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #ffd45a);
  color: #121212;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(217, 154, 0, 0.30);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 38px rgba(217, 154, 0, 0.38);
}

.btn.secondary {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 8rem clamp(1rem, 5vw, 5rem) 4rem;
  background: linear-gradient(90deg, rgba(247, 243, 236, 0.94), rgba(247, 243, 236, 0.62), rgba(247, 243, 236, 0.15)), url("../../images/background2.png") no-repeat center / cover;
}

.hero-text {
  max-width: 620px;
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-text h1,
.page-hero h1 {
  max-width: 600px;
  margin-bottom: 1.3rem;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-text p,
.page-hero p {
  max-width: 500px;
  margin-bottom: 1.8rem;
  color: #3b362f;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

main,
.page {
  padding-top: 76px;
}

.page-hero {
  padding: 6rem clamp(1rem, 5vw, 5rem) 2.5rem;
  background: radial-gradient(circle at top right, #ffe6a2, transparent 28rem);
}

.section {
  padding: 3rem clamp(1rem, 5vw, 5rem);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about .container,
.about-image {
  animation: fadeUp 0.7s ease both;
}

.about-copy {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-image img {
  width: 100%;
  height: min(480px, 55vw);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-6px);
}

.our-cars {
  padding: 6rem clamp(1rem, 5vw, 5rem) 3rem;
  animation: fadeUp 0.7s ease both;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.car-item {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.10);
  animation: fadeUp 0.6s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.car-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.car-item::after {
  content: "Available";
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
}

.car-item img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #f6f6f6, #fff5d7);
}

.car-item h2 {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  line-height: 1.1;
}

.car-info {
  display: grid;
  gap: 0.45rem;
  color: #4e4a43;
}

.car-info p {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.45rem;
  border-top: 1px solid #f0ece5;
}

.car-info strong {
  color: #171717;
}

.car-item:nth-child(2) {
  animation-delay: 0.04s;
}

.car-item:nth-child(3) {
  animation-delay: 0.08s;
}

.car-item:nth-child(4) {
  animation-delay: 0.12s;
}

.car-item:nth-child(5) {
  animation-delay: 0.16s;
}

.car-item:nth-child(6) {
  animation-delay: 0.20s;
}

.car-item:nth-child(7) {
  animation-delay: 0.24s;
}

.car-item:nth-child(8) {
  animation-delay: 0.28s;
}

.car-item:nth-child(9) {
  animation-delay: 0.32s;
}

.car-item:nth-child(10) {
  animation-delay: 0.36s;
}

.rent-form {
  width: min(94vw, 900px);
  margin: 6.5rem auto 3rem;
  padding: clamp(1.25rem, 4vw, 2.2rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease both;
}

.rent-form::before {
  content: "Book Your Rental Car";
  display: block;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.05em;
}

#rentalForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: #27231d;
  font-weight: 850;
}

.form-group select,
.form-group input {
  width: 100%;
  min-height: 58px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  background-color: #fffaf1;
  color: #171717;
  font: inherit;
  font-weight: 650;
  outline: none;
  transition: border 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 3rem;
  background-image: linear-gradient(45deg, transparent 50%, #111111 50%), linear-gradient(135deg, #111111 50%, transparent 50%), linear-gradient(135deg, rgba(217, 154, 0, 0.18), rgba(255, 212, 90, 0.18));
  background-position: calc(100% - 24px) 50%, calc(100% - 16px) 50%, 100% 0;
  background-size: 8px 8px, 8px 8px, 3.2rem 100%;
  background-repeat: no-repeat;
}

.form-group select:hover,
.form-group input:hover {
  border-color: rgba(217, 154, 0, 0.55);
  background-color: #ffffff;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--brand);
  background-color: #ffffff;
  box-shadow: 0 0 0 5px rgba(217, 154, 0, 0.18);
}

.form-group option {
  color: #111111;
  background: #ffffff;
}

.form-group:has(button),
.price-display,
.confirmation-message {
  grid-column: 1 / -1;
  text-align: center;
}

.price-display {
  min-height: 32px;
  color: #12823c;
  font-size: 1.35rem;
  font-weight: 950;
}

.confirmation-message {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: #eaf8ef;
  color: #116231;
  font-weight: 850;
}

.login-signup-form {
  width: min(92vw, 760px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 6.5rem auto 3rem;
  padding: clamp(1.25rem, 4vw, 2.2rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease both;
}

.login-signup-form form {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
}

.login-signup-form h2 {
  margin-bottom: 1rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.login-signup-form .form-group {
  margin-bottom: 1rem;
}

.logo img,
.nav-links a,
.btn,
button,
.car-item,
.login-signup-form,
.about-image img {
  transition: all 0.3s ease;
}

.nav-links a:hover,
.logo img:hover {
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(280px, calc(100vw - 2rem));
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.show {
    display: flex;
  }

  .grid-2,
  #rentalForm,
  .login-signup-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 7rem;
  }
}

@media (max-width: 520px) {
  .navbar {
    padding: 0.7rem 1rem;
  }

  .logo img {
    height: 45px;
  }

  .hero-text h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  .car-item img {
    height: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
