/*
  Low Blow LLC Redesigned Website Styles
  This stylesheet defines the colour palette, typography and layout for the
  redesigned Low Blow LLC site. The design aims to reflect a polished
  hardware/SaaS startup aesthetic with strong branding and easy navigation.
*/

/* Colour palette */
:root {
  --primary-color: #00a6ff; /* vibrant light blue used for highlights */
  --secondary-color: #081f3e; /* dark navy used for backgrounds */
  --accent-color: #ffc600; /* yellow accent used for calls to action */
  --light-color: #ffffff; /* white for contrast */
  --text-dark: #0a2540; /* dark text on light backgrounds */
  --max-width: 1200px;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  /* Use a modern sans-serif font for a cleaner startup look.  The
     fallback stack ensures good rendering across platforms if the
     Google font fails to load. */
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--light-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

/* Primary call-to-action button.  Use for the most important actions on
   each page. */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}

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

/* Secondary call-to-action button.  Use for less emphasised actions or
   alternative options. */
.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 166, 255, 0.1);
}

/* Header */
header {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner .logo img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--light-color);
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero section */
.hero {
  background-color: var(--secondary-color);
  color: var(--light-color);
  /* The hero section should be visually prominent but not consume the
     entire viewport.  Reduce padding to make it more compact on
     desktop and especially on smaller devices. */
  padding: 2.5rem 0 2rem;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}

.hero-text {
  flex: 1 1 55%;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  max-width: 560px;
}

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

.hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Numbers section */
.numbers {
  background-color: var(--light-color);
  padding: 3rem 0;
  text-align: center;
}

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

.number-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.number-card {
  background-color: #f5f8fb;
  padding: 2rem;
  border-radius: 8px;
  flex: 1 1 260px;
  max-width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.number-card h3 {
  color: var(--primary-color);
  font-size: 2.4rem;
  margin-bottom: 0.25rem;
}

.number-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Section links (three columns) */
.section-links {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 3rem 0;
}

.section-links .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.section-links .card {
  background-color: #0f2f57;
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  flex: 1 1 30%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: left;
}

.section-links .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* Icon inside section cards */
.section-links .card .icon {
  display: inline-block;
  margin-bottom: 1rem;
  width: 36px;
  height: 36px;
  fill: var(--primary-color);
}

.section-links .card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--accent-color);
}

.section-links .card p {
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--light-color);
}

.section-links .card a {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* Testimonials placeholder */
.testimonials {
  background-color: var(--light-color);
  padding: 3rem 0;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.testimonials .logo-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.testimonials .logo-row img {
  height: 40px;
  opacity: 0.6;
  filter: grayscale(100%);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 2rem 0;
  text-align: center;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1rem;
}

footer .footer-links a {
  color: var(--primary-color);
  font-weight: 500;
}

footer p {
  font-size: 0.9rem;
}

/* Page specific styles */
.page-hero {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 2rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
}

/* Benefits sections for subpages */
.benefits {
  padding: 3rem 0;
  background-color: var(--light-color);
}

.benefits .benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.benefits .benefit-card {
  flex: 1 1 260px;
  max-width: 350px;
  background-color: #f5f8fb;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits .benefit-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.benefits .benefit-card p {
  font-size: 0.95rem;
}

/* Process section for How It Works page */
.process {
  padding: 3rem 0;
  background-color: var(--light-color);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.process-step {
  flex: 1 1 200px;
  max-width: 280px;
  background-color: #f5f8fb;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.process-step h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.process-step p {
  font-size: 0.9rem;
}

/* Contact form */
.contact-section {
  padding: 3rem 0;
  background-color: var(--light-color);
}

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

.contact-section label {
  font-weight: bold;
}

.contact-section input,
.contact-section textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-section textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-section button {
  align-self: flex-start;
}

/* Safety page */
.safety-section {
  padding: 3rem 0;
  background-color: var(--light-color);
  color: var(--text-dark);
}

.safety-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.safety-section ul {
  list-style: disc inside;
  margin-left: 1rem;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    flex: 1 1 100%;
  }
  .hero-image {
    flex: 1 1 100%;
  }
  /* Make primary and secondary buttons full width on mobile for easier tapping */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  /* Increase paragraph line-height on mobile for better readability */
  p {
    line-height: 1.8;
  }
  .numbers .number-grid,
  .section-links .cards,
  .benefits .benefit-grid,
  .process-steps {
    flex-direction: column;
    align-items: center;
  }
  .section-links .card {
    flex: 1 1 100%;
    max-width: 400px;
  }
}

/* Machine photo section */
.machine-photo {
  padding: 2rem 0;
  text-align: center;
  background-color: var(--light-color);
}
.machine-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}