/* =========================================================
   Base / Reset
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f5f7; /* slightly darker than pure white */
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

main {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h5 {
  letter-spacing: -0.02em;
  color: #111;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

p {
  color: #444;
}

/* =========================================================
   Navbar
   ========================================================= */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e1e3e6;
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nav-link {
  color: #555;
}

.nav-link:hover {
  color: #000;
}

/* =========================================================
   Sections
   ========================================================= */

section {
  scroll-margin-top: 80px;
}

/* Hero separation */
section:first-of-type {
  background: linear-gradient(to bottom, #ffffff, #f1f3f6);
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dfe1e6;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 20px rgba(0, 0, 0, 0.03);
}

.card-body {
  padding: 2rem;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  border: 1px solid #bbb;
  background: #ffffff;
  color: #111;
  text-decoration: none;
}

.btn:hover {
  background: #111;
  color: #ffffff;
}

/* =========================================================
   Badges (TAGS FIXED)
   ========================================================= */

.badge {
  font-weight: 500;
  background: #e5e7eb;     /* darker */
  color: #111;             /* readable */
  border: 1px solid #d1d5db;
}

/* =========================================================
   Accordion (FAQ)
   ========================================================= */

.accordion-button {
  font-weight: 500;
  color: #111;
  background: #ffffff;
}

.accordion-button:not(.collapsed) {
  background: #eef0f3;
}

.accordion-body {
  color: #444;
  background: #fafafa;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  margin-top: 5rem;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #e1e3e6;
}
/* ---------- Tags / Pills ---------- */

.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  color: #444;
  background: #f1f3f5;
  border: 1px solid #d7dadd;
  border-radius: 999px;
}

/* =========================================================
   Contact Form
   ========================================================= */

.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  background: #fafafa;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  background: #ffffff;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
  color: #999;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: #111;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
  text-align: center;
}

.form-status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

@media (max-width: 768px) {
  .contact-form {
    max-width: 100%;
  }

  .form-input {
    font-size: 16px; /* Prevents iOS zoom */
  }
}
