/*
 * Stylesheet for the BluePulse Logistics single‑page website.
 *
 * The site uses CSS variables for colours to make it easy to adjust
 * the palette.  Primary and accent colours correspond to the navy
 * blue and orange defined by the user.  Responsive design is
 * implemented via flexbox and grid with a mobile‑first approach.
 */

/* Colour palette */
:root {
  /* Updated palette to reflect the BluePulse logo colours.  The primary
     colour is a deep blue sampled from the logo, and the secondary
     colour is a teal tone drawn from the heartbeat symbol. */
  --primary-color: #002e4c; /* Deep BluePulse navy */
  --primary-dark: #00172c;
  --secondary-color: #177a97; /* Teal accent */
  --light: #ffffff;
  --text-dark: #0a2540;
  --text-light: #f5f7fa;
  --background-light: #f9f9fb;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light);
}

h1,
h2,
h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1rem;
}

a {
  /* Links inherit the teal accent colour for calls‑to‑action. */
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  /* Darker teal for hover state of links */
  color: #4594ab;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.btn-primary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--light);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  /* Slightly darker teal on hover for better contrast */
  background-color: #136d8e;
}

/* Services Section */
.services {
  /* Use a clean white background so the icons pop and the band matches the
     reference layout. */
  background-color: var(--light);
  padding: 4rem 0;
  text-align: center;
}

.services h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-color);
}

.services-grid {
  /* Lay out service items in a single row with wrap and even spacing */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.service-item {
  /* For a cleaner services layout, remove card styling so icons and labels sit
     directly on the section background. */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1rem 0;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.service-item:hover {
  transform: translateY(-4px);
}

/*
 * Emoji icons for the service grid.  Using a class allows us to
 * maintain consistent sizing and spacing across all items.  The
 * colour inherits from the --secondary-color variable.
 */
.service-icon {
  /* The wrapper remains a span to preserve semantic grouping.  Icons are sized
     via the nested SVG below. */
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

/* Ensure inline SVGs scale uniformly and inherit the accent colour.  The
   service icons are larger than the reasons icons to draw more attention. */
.service-icon svg {
  width: 3.5rem;
  height: 3.5rem;
  fill: currentColor;
}

.service-item h3 {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
}

.service-item p {
  font-size: 0.95rem;
  color: #555;
}

/* Why Choose Us */
/* Why Choose Us */
.why {
  padding: 4rem 0;
  /* A very light grey background helps the “Why Choose Us” band stand apart without
     competing with the hero or services sections. */
  background-color: #f5f7fa;
  text-align: center;
}

.why h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-color);
}

/* Display the "Why Choose Us" items in a row to mirror the reference layout. */
/* Layout for the reasons: display each as a horizontal pair of icon and text */
.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

/* Each reason item arranges its icon and heading horizontally */
.why-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* The icon wrapper uses flex so the inline SVG can inherit the accent colour */
.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.why-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: currentColor;
}

.why-item h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
  color: var(--primary-color);
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  /* Match the white contact section from the reference design */
  background-color: var(--light);
}

.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--primary-color);
}

.contact p {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  padding: 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.form-group input:focus,
  .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  /* Teal tinted focus ring */
  box-shadow: 0 0 0 3px rgba(23, 122, 151, 0.2);
}

/* Layout for name and email inputs side by side */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.form-row .form-group {
  flex: 1;
}

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

.footer-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left img {
  max-width: 160px;
  margin-bottom: 0.5rem;
}

.footer-left p {
  margin-bottom: 0.25rem;
  color: var(--light);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--light);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--light);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color);
}

.copyright {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #a3acc2;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .footer-flex {
    flex-direction: row;
    align-items: center;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content p {
    font-size: 1.5rem;
  }
}