/**
 * components.css - Reusable components
 * Buttons, cards, forms, header, footer
 */

/* ========== HEADER ========== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: auto;
  height: 60px;
  filter: drop-shadow(0 2px 8px rgba(26, 59, 107, 0.08));
}

.logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.brand h1 {
  font-size: 18px;
  line-height: 1;
  display: none;
}

.brand p {
  font-size: 12px;
  color: var(--muted);
  display: none;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 59, 107, 0.12);
}

.btn-primary:hover {
  background: #153052;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 59, 107, 0.18);
}

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

.btn-ghost:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}

/* ========== CARDS ========== */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #eef1f6;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 18px;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ========== FORMS ========== */
form.subscribe {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field {
  display: flex;
  gap: 8px;
}

.field input[type="email"] {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-family: inherit;
}

.field input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
}

.field button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.field button:hover {
  background: #153052;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* ========== FOOTER ========== */
footer {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid #f0f0f0;
  color: var(--muted);
  font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 880px) {
  .logo {
    height: 50px;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .brand {
    flex-direction: column;
    gap: 8px;
  }

  .logo {
    height: 45px;
    max-width: 95%;
  }

  .logo img {
    max-width: 100%;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .field {
    flex-direction: column;
  }

  .field button {
    width: 100%;
  }

  .card {
    padding: 14px;
  }
}
