:root {
  --navy: #0E1A2F;
  --gold: #C5A14E;
  --ivory: #EFEDE6;
  --stone: #5B6472;
  --secondary-blue: #1C3E6A;
  --black: #000000;
  --white: #FFFFFF;
}

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

body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background-color: var(--ivory);
  color: var(--black);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: var(--navy);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
nav {
  background-color: var(--navy);
  color: var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--navy);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  font-weight: bold;
  margin-right: 0.5rem;
}

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

nav ul a {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul a:hover {
  color: var(--ivory);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
}

.btn.primary {
  background-color: var(--navy);
  color: var(--ivory);
  border: 2px solid var(--navy);
}

.btn.primary:hover {
  background-color: var(--secondary-blue);
  color: var(--ivory);
}

.btn.secondary {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn.secondary:hover {
  background-color: var(--navy);
  color: var(--ivory);
}

/* Hero */
header.hero {
  background-color: var(--navy);
  color: var(--ivory);
  padding: 4rem 2rem;
  text-align: center;
}

/* Ensure headings within hero adopt the light text color */
.hero h1,
.hero h2,
.hero h3 {
  color: var(--ivory);
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 3rem 2rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section p {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 1.5rem;
}

.section.alt {
  background-color: var(--ivory);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.card p {
  color: var(--stone);
}

/* Footer */
footer {
  background-color: var(--navy);
  color: var(--ivory);
  text-align: center;
  padding: 1.5rem 2rem;
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Form Styles */
form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--stone);
  border-radius: 4px;
  font-family: inherit;
}

input[type="range"] {
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button.submit {
  background-color: var(--navy);
  color: var(--ivory);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

button.submit:hover {
  background-color: var(--secondary-blue);
}

/* Card preview for membership card */
.card-preview {
  background-color: var(--black);
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--gold);
  width: 320px;
  margin-top: 1rem;
}

.card-preview .title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-preview .serial,
.card-preview .issue-date {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.card-preview .label {
  font-size: 0.75rem;
  color: var(--ivory);
}

/* Badge styles */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.badge {
  background-color: var(--white);
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.badge h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.badge p {
  font-size: 0.85rem;
  color: var(--stone);
}

/* FAQ styles */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.faq-item p {
  color: var(--stone);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}