/* Base layout */

body {
  font-family: Ubuntu, sans-serif !important;
  background: #ffffff;
  padding: 20px;
  margin: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 20px 22px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Header / logo */

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.logo {
  height: 64px;
  width: auto;
  display: inline-block;
}

.site-header-text {
  display: flex;
  flex-direction: column;
}

/* Make the header vertical instead of horizontal */
.site-header-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Center the title + tagline under the logo */
.site-header-centered {
  margin-top: 10px;
  text-align: center;
}

.site-header-centered .site-name {
  font-size: 1.6rem;
  font-weight: 700;
}

.site-header-centered .site-tagline {
  font-size: 0.9rem;
  opacity: 0.8;
}

.site-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  /*text-transform: uppercase;*/
  font-size: 3rem;
  /* color: #111827; */
  color: #478AC9;
}

.site-tagline {
  font-size: 0.70rem;
  color: #4b5563;
  padding: 20px 0px 0px 0px;
}

.site-tagline a {
  color: inherit;         /* keep the original color */
  text-decoration: none;  /* no underline by default */
  font-weight: normal;    /* keep original weight */
  transition: all 0.2s ease;
}

.site-tagline a:hover {
  font-weight: 700;        /* bold on hover */
  text-decoration: underline;
}

/* Typography */

h1 {
  margin-bottom: 5px;
  font-size: 1.4rem;
  color: #111827;
}

.intro {
  margin-top: 0;
  margin-bottom: 15px;
  color: #4b5563;
  font-size: 0.95rem;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: #111827;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #111827;
}

/* Question blocks */

.category {
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

select {
  width: 100%;
  padding: 8px;
  margin: 6px 0;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  background: #ffffff;
}

select:focus {
  outline: none;
  border-color: #478ac9;
  box-shadow: 0 0 0 2px rgba(71, 138, 201, 0.2);
}

/* Primary button */

button {
  padding: 10px 16px;
  background: #478ac9;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

button:hover {
  background: #ffffff;
  color: #000000;
  border: 1px solid #478ac9;
}

/* Results */

#results {
  margin-top: 25px;
  padding: 15px;
  border-radius: 6px;
  background: #E9F2FA;
  border: 1px solid #478ac9;
}

.score-label {
  margin-top: 0;
  margin-bottom: 10px;
  color: #4b5563;
  font-size: 0.9rem;
}

/* Bars */

.bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 10px;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  transition: width 0.25s ease-out;
}

.overall-bar {
  margin-bottom: 15px;
}

.category-row {
  margin-top: 8px;
}

.category-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #111827;
}

.category-title span.label {
  text-transform: capitalize;
}

.category-title span.value {
  font-weight: 600;
}

/* Score color helpers */

.bar-low {
  background: #ef4444;
}

.bar-medium {
  background: #f97316;
}

.bar-good {
  background: #22c55e;
}

/* Copy summary button and status */

.results-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.secondary-btn {
  padding: 10px 16px;
  background: #ffffff;
  color: #000000;
  border: 1px solid #478ac9;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.secondary-btn:hover {
  background: #478ac9;
  color: #ffffff;
}

.copy-status {
  font-size: 0.85rem;
  color: #4b5563;
}

/* CTA / Book a call */

.hidden {
  display: none;
}

.cta {
  margin-top: 18px;
  padding: 14px 14px 16px;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
}

.cta p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.cta-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: #f97316;
  color: #111827;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.cta-btn:hover {
  background: #fb923c;
}

/* ========================= */
/*     RESPONSIVE LAYOUT     */
/* ========================= */

/* Tablets & small laptops */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .container {
    padding: 16px;
    margin: 0 6px;
  }

  .site-header {
    gap: 8px;
  }

  .logo {
    height: 56px;
  }

  h2 {
    font-size: 1.1rem;
  }

  .intro {
    font-size: 0.9rem;
  }

  button,
  .secondary-btn,
  .cta-btn {
    font-size: 0.9rem;
  }
}

/* Phones */
@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  .logo-wrapper {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .site-header-text {
    align-items: center;
  }

  .logo {
    height: 48px;
  }

  .container {
    padding: 14px;
    margin: 0 4px;
  }

  h2 {
    font-size: 1rem;
  }

  h3 {
    font-size: 0.95rem;
  }

  .intro {
    font-size: 0.85rem;
  }

  select {
    font-size: 0.85rem;
  }

  button,
  .secondary-btn,
  .cta-btn {
    width: 100%;
    text-align: center;
  }

  .results-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-status {
    text-align: center;
  }
}

/* Footer layout split left & right */
.footer {
  max-width: 800px;
  margin: 30px auto 0 auto;
  padding: 10px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Ubuntu, sans-serif;
  font-size: 0.9rem;
  color: #111;
}

.footer a {
  color: #453886;
  text-decoration: none;
  border-bottom: 1px solid #453886;
  padding-bottom: 2px;
}

.footer a:hover {
  color: #2196f3;
}

/* Mobile: stack footer items vertically */
@media (max-width: 480px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

.emoji {
  vertical-align: middle;
}
