/* =====================================================
   common.css
   Shared header, navigation, and footer styles
   Used across all pages in The Plane e-Page website
===================================================== */

/* ====== Reset & Base Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #333;
  background-color: #fff;
}

/* ====== Header ====== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  z-index: 1000;
}

header h1 {
  font-size: 1.6rem;
  color: #004aad;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ====== Navigation ====== */
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

nav a:hover {
  color: #004aad;
}

/* Subscribe Button in Nav */
.subscribe-btn {
  background-color: #004aad;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out;
}

.subscribe-btn:hover {
  background-color: #003080;
}

/* ====== Page Spacing Fix (since header is fixed) ====== */
body {
  padding-top: 70px; /* Prevents content from hiding behind fixed header */
}

/* ====== Footer ====== */
footer {
  background-color: #f8f9fa;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

footer p {
  margin: 6px 0;
}

/* Optional quote style */
footer p:nth-child(2) {
  font-style: italic;
  color: #004aad;
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  footer {
    font-size: 0.9rem;
    padding: 20px 10px;
  }
}
