/*
 * Stylesheet for the Cal State Vending website.
 *
 * A dark, luxurious colour palette with gold accents establishes an
 * upscale aesthetic.  Components are designed to be fully responsive:
 * the grid of service cards and process steps will wrap gracefully on
 * smaller screens, and navigation links are hidden on narrow devices
 * for a cleaner layout (a mobile menu could be added in the future).
 */

/* Reset margin and padding on all elements and set the box model */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0a1428; /* deep navy background */
  color: #f5f5f5; /* off‑white text */
  line-height: 1.6;
}

/* Generic container to center content */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Fixed header styling */
header {
  background-color: rgba(10, 20, 40, 0.8);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #cda95e; /* warm gold accent */
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #cda95e;
}

/* Hero section with background image and overlay */
.hero {
  background-image: linear-gradient(
      rgba(10, 20, 40, 0.7),
      rgba(10, 20, 40, 0.7)
    ),
    url('https://source.unsplash.com/1600x900/?vending-machine');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem; /* offset for fixed header */
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background-color: #cda95e;
  color: #0a1428;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #b48840;
}

section {
  padding: 5rem 0;
}

h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #cda95e;
}

/* About section typography */
.about-section p {
  margin-bottom: 1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  color: #d3d3d3;
}

/* Services grid */
.services-section .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #101c35;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card i {
  font-size: 2.5rem;
  color: #cda95e;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: #f5f5f5;
}

.service-card p {
  font-size: 0.95rem;
  color: #d3d3d3;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Process section */
.process-section .process-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.process-step {
  flex: 1;
  min-width: 250px;
  background-color: #101c35;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.step-number {
  font-size: 2rem;
  font-weight: 600;
  color: #cda95e;
  display: inline-block;
  background-color: #1a2f54;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  margin-bottom: 1rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
  color: #f5f5f5;
}

.process-step p {
  color: #d3d3d3;
  font-size: 0.95rem;
}

/* Contact section */
.contact-section .contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* Center the introductory text in the contact section and limit its width */
.contact-section p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  color: #d3d3d3;
}

.contact-info div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.contact-info i {
  color: #cda95e;
}

/* Contact form grid: automatically lay out fields in columns and
   ensure full‑width alignment for phone and message fields */
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  background-color: #101c35;
  border: 1px solid #1f3054;
  padding: 0.8rem;
  color: #f5f5f5;
  border-radius: 6px;
  width: 100%;
}

.contact-form textarea {
  grid-column: 1 / -1; /* span all columns */
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8896b0;
}

.contact-form button {
  grid-column: 1 / -1;
  border: none;
  padding: 0.8rem;
  background-color: #cda95e;
  color: #0a1428;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #b48840;
}

/* Footer */
footer {
  background-color: #061128;
  padding: 1rem 0;
}

.footer-content {
  text-align: center;
  color: #8896b0;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .nav-links {
    display: none;
  }
}