/* ---------- Colors and fonts, set once ---------- */
:root {
  --navy: #1f3a5f;
  --accent: #e07a1f;
  --text: #222;
  --muted: #555;
  --light: #f4f6f8;
}

/* ---------- Basics ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
}

nav a:hover {
  text-decoration: underline;
}

/* ---------- Hero (the big banner) ---------- */
.hero {
  background: var(--light);
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-top: 0;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.button:hover {
  opacity: 0.9;
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}

.card h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-top: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 16px 0;
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  nav a {
    margin: 0 10px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }
}

/* ========== Stage 2 additions ========== */

/* Highlight the page you're on in the menu */
nav a.active {
  border-bottom: 2px solid var(--accent);
}

/* Smaller banner at the top of inner pages */
.page-title {
  background: var(--light);
  padding: 40px 0;
  text-align: center;
}

.page-title h1 {
  color: var(--navy);
  margin-top: 0;
}

/* Product section: text on the left, picture on the right */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.product h2 {
  color: var(--navy);
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.checklist {
  padding-left: 20px;
  margin-bottom: 24px;
}

.checklist li {
  margin-bottom: 6px;
}

.coming-soon {
  background: var(--light);
  padding: 32px 0;
  text-align: center;
}

.coming-soon h2 {
  color: var(--navy);
  margin-top: 0;
}

/* Plain reading pages (About, Contact) */
.text-page {
  max-width: 700px;
  padding-top: 32px;
  padding-bottom: 40px;
}

.text-page h2 {
  color: var(--navy);
}

/* Contact form */
.contact-form label {
  display: block;
  font-weight: bold;
  margin-top: 16px;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font: inherit;
}

.contact-form button {
  margin-top: 20px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: bold;
}

/* Phones: stack the product section */
@media (max-width: 700px) {
  .product {
    grid-template-columns: 1fr;
  }
}

/* ========== Stage 3 additions ========== */

/* Keep the footer at the bottom of the window on short pages */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}