/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  background: #f0f4f8;
  color: #333;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Palette */
:root {
  --primary: #1f4068;
  --accent: #2978b5;
  --light-bg: #e8eef1;
  --dark-text: #333333;
  --soft-white: #ffffff;
}

/* Nav */
nav {
  background: var(--primary);
  color: var(--soft-white);
  padding: 1rem 0;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--soft-white);
  text-decoration: none;
}
nav a {
  color: var(--soft-white);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
}
nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: url('/images/hero.jpg') center/cover no-repeat;
  color: var(--soft-white);
  text-align: center;
  padding: 6rem 1rem;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: auto;
  background: #ffffff;
  color: #333;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
}

/* Sections */
.section-title, .hero {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--primary);
}
.section {
  margin-bottom: 2rem;
  background: var(--soft-white);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--soft-white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}
.btn:hover {
  background: var(--primary);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.product-card ul {
  list-style: disc inside;
  margin-bottom: auto;
}
.product-card ul li {
  margin-bottom: 0.4rem;
}

/* Table (comparison) */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: center;
}
.comparison-table th {
  background: var(--primary);
  color: var(--soft-white);
}

/* Forms */
form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
form input, form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
}
form button {
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--soft-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}
form button:hover {
  background: var(--primary);
}

/* Footer */
footer {
  margin-top: auto;
  background: var(--primary); /* Match header/nav color */
  color: var(--light-bg);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
}
nav img {
  border: none;
  outline: none;
  display: block; /* Optional: removes extra space below the image */
}