/*
  ShaubMD Vending website stylesheet
  Colors inspired by the company logo: teal and pink accents on a neutral base.
  Uses the Poppins font family loaded from Google Fonts in the HTML document.
*/

/* Root variables for easy theming */
:root {
  --color-primary: #00bfae; /* teal hue from logo */
  --color-accent: #ff5f9e; /* soft pink accent */
  --color-dark: #0a192f; /* dark navy for backgrounds */
  --color-light: #f9f9f9; /* light neutral */
  --color-text: #333;
  --max-width: 1200px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(4px);
  z-index: 999;
}

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

.nav-logo img {
  height: 42px;
}

/* Hamburger menu for mobile */
#toggle-menu {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: transform var(--transition-speed);
}

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

.nav-links li a {
  color: #fff;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-links li a:hover {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  /* Use a flexible minimum height for the hero so text doesn’t get cut off on short viewports */
  min-height: 80vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 64px; /* offset nav height */
}

/* Logos overlaid on hero vending units */
.unit-logo {
  position: absolute;
  z-index: 2;
  width: 9%;
  height: auto;
  opacity: 0.95;
}
.left-unit {
  top: 18%;
  left: 26%;
}
.right-unit {
  top: 18%;
  left: 61%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 191, 174, 0.55), rgba(10, 25, 47, 0.85));
}

.hero-content {
  position: absolute;
  max-width: 700px;
  text-align: center;
  color: #fff;
  padding: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

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

.feature-item {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-speed);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Solutions */
.solutions-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.solution-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-speed);
}

.solution-card:hover {
  transform: translateY(-5px);
}

.solution-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

.solution-card h3 {
  padding: 1rem;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.solution-card p {
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.benefit-item {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-speed);
}

.benefit-item:hover {
  transform: translateY(-5px);
}

/* Why Switch */
.switch-section {
  background: var(--color-light);
}

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

.switch-item {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-speed);
}

.switch-item:hover {
  transform: translateY(-5px);
}

.switch-item h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.switch-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.benefit-item h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Benefits section colour scheme — apply the vibrant palette from the How It Works section */
.benefits-section {
  background: var(--color-primary);
  color: #fff;
}

/* Ensure the Benefits heading contrasts against the section background */
.benefits-section .section-title {
  color: #fff;
}

/* Cards inside the benefits section remain light to stand out on the teal background */
.benefit-item {
  background: #ffffff;
  color: var(--color-dark);
}

/* Accent the benefit headings with the same pink used for step numbers */
.benefit-item h3 {
  color: var(--color-accent);
}

/* How It Works */
.how-section {
  background: var(--color-primary);
  color: #fff;
}

.how-list {
  list-style: none;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.how-list li {
  position: relative;
  padding-left: 3rem;
}

.how-step {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.how-list h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.how-list p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* About */
.about-section {
  background: #fff;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-image img {
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-content {
  flex: 1;
}

.about-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact */
.contact-section {
  background: var(--color-light);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

.form-group textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: #fff;
  padding: 2rem 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 40px;
}

.footer-info p {
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    right: -100%;
    /* Increase the width and height of the slide‑out menu on mobile for better readability */
    width: 70%;
    height: 100vh;
    background: rgba(10, 25, 47, 0.95);
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    transition: right var(--transition-speed);
    z-index: 998;
  }
  .nav-links li {
    margin: 0.5rem 0;
  }
  #toggle-menu:checked + .hamburger + .nav-links {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .feature-grid,
  .solutions-grid,
  .benefits-grid,
  .how-list {
    grid-template-columns: 1fr;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-image img {
    margin: 0 auto;
  }
  .contact-container {
    width: 100%;
  }
}