/* -- EFOQUS Brand Overrides ------------------------------------------ */

:root {
  /* Brand colors */
  --efoqus-charcoal: #2E3D49;
  --efoqus-lime: #72C22A;
  --efoqus-green: #2BB24C;
  --efoqus-teal: #00877A;
  --efoqus-gray: #9EA8AD;

  /* Bulma scheme â€" pin to light theme so computed colors stay readable */
  --bulma-scheme-h: 210;
  --bulma-scheme-s: 10%;
  --bulma-scheme-main-l: 100%;
  --bulma-scheme-main-bis-l: 98%;
  --bulma-scheme-main-ter-l: 96%;
  --bulma-scheme-main: #fff;
  --bulma-background-l: 96%;
  --bulma-text-l: 24%;
  --bulma-text-strong-l: 14%;
  --bulma-text-weak-l: 42%;
  --bulma-scheme-invert-l: 4%;
  --bulma-scheme-invert: #0a0a0a;
  --bulma-border-l: 86%;
  --bulma-border-weak-l: 93%;

  /* Bulma color overrides */
  --bulma-primary-h: 95;
  --bulma-primary-s: 66%;
  --bulma-primary-l: 46%;
  --bulma-primary: var(--efoqus-lime);
  --bulma-primary-invert-l: 100%;
  --bulma-link-h: 170;
  --bulma-link-s: 100%;
  --bulma-link-l: 26%;
  --bulma-link: var(--efoqus-teal);
  --bulma-dark-h: 203;
  --bulma-dark-s: 25%;
  --bulma-dark-l: 23%;
  --bulma-dark: var(--efoqus-charcoal);
  --bulma-text: var(--efoqus-charcoal);
  --bulma-text-strong: var(--efoqus-charcoal);
  --bulma-family-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* -- Typography ----------------------------------------------------- */

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--efoqus-charcoal);
  background-color: #fff;
}

.title, .subtitle {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.title {
  color: var(--efoqus-charcoal);
  font-weight: 700;
}

/* White text in dark contexts â€" !important needed to beat Bulma HSL specificity */
.hero.is-primary .title,
.hero.is-primary .subtitle,
.hero.is-primary p,
.has-background-dark .title,
.has-background-dark .subtitle,
.has-background-dark p {
  color: #fff !important;
}

.hero.is-primary .subtitle,
.hero.is-primary p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.has-background-dark .subtitle,
.has-background-dark p {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Pin Bulma helper text colors â€" prevent HSL miscomputation */
.has-text-white {
  color: #fff !important;
}

.has-text-grey-light {
  color: rgba(255, 255, 255, 0.7) !important;
}

.has-text-grey-dark {
  color: #4a5568 !important;
}

.has-text-grey {
  color: #6b7280 !important;
}

.has-background-white-bis {
  background-color: #fafafa !important;
}

.subtitle {
  color: #4a5568;
}

/* -- Navbar ---------------------------------------------------------- */

.navbar {
  background: #fff;
}

.navbar-brand .navbar-item img {
  max-height: 2.25rem;
  height: 2.25rem;
  width: auto;
}

.navbar-brand a.navbar-item {
  background-color: transparent !important;
}

.navbar.is-fixed-top {
  z-index: 40;
}

body {
  padding-top: 3.25rem;
}

.navbar-item,
.navbar-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--efoqus-charcoal);
}

.navbar-dropdown .navbar-item {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--efoqus-charcoal);
}

.navbar-burger span {
  background-color: var(--efoqus-charcoal);
}

/* -- Hero ------------------------------------------------------------ */

.hero.is-primary {
  background: linear-gradient(135deg, var(--efoqus-charcoal) 0%, #1a2830 50%, var(--efoqus-teal) 100%);
}

.hero .subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* -- Cards ----------------------------------------------------------- */

.card {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(46, 61, 73, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
  background-color: #fff;
  color: var(--efoqus-charcoal);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(46, 61, 73, 0.14);
  transform: translateY(-2px);
}

.card .card-content {
  padding: 1.5rem;
}

.card .card-content .title {
  margin-bottom: 0.75rem;
}

/* -- Buttons --------------------------------------------------------- */

.button.is-primary {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button.is-primary:hover {
  background-color: var(--efoqus-green);
}

/* -- Sections -------------------------------------------------------- */

.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background-color: #f8f9fa;
}

/* -- Stats Bar ------------------------------------------------------- */

.stats-bar {
  background: var(--efoqus-charcoal);
  padding: 3rem 0;
}

.stats-bar .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--efoqus-lime);
  line-height: 1;
}

.stats-bar .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* -- Service Icon (global) ------------------------------------------ */

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(0,135,122,0.10), rgba(43,178,76,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--efoqus-teal);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* -- Testimonials ---------------------------------------------------- */

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 2rem;
}

.testimonial-slide.is-active {
  display: block;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--efoqus-charcoal);
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--efoqus-charcoal);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--efoqus-gray);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--efoqus-gray);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.testimonial-dot.is-active {
  background: var(--efoqus-lime);
}

/* -- Footer ---------------------------------------------------------- */

.footer {
  background-color: #f8f9fa;
  padding: 3rem 1.5rem 2rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #4a5568;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--efoqus-teal);
}

/* -- FAQ Sections ---------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid #e8eaed;
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--efoqus-teal);
  transition: transform 0.2s;
}

.faq-item.is-open .faq-question::after {
  content: 'âˆ'';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #4a5568;
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding-top: 0.75rem;
}

/* -- Blog / Case Study Content --------------------------------------- */

.content-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-body img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* -- Contact Form ---------------------------------------------------- */

.field .label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--efoqus-charcoal);
}

.input, .textarea, .select select {
  border-radius: 0.5rem;
  border-color: #d1d5db;
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--efoqus-teal);
  box-shadow: 0 0 0 2px rgba(0, 135, 122, 0.15);
}

/* -- Utility --------------------------------------------------------- */

.has-gradient-text {
  background: linear-gradient(135deg, var(--efoqus-lime), var(--efoqus-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

/* -- Case Study Cards ------------------------------------------------ */

.case-study-card {
  border-top: 4px solid var(--efoqus-teal);
}

.case-study-card .card-content {
  padding: 2rem 1.5rem 2.5rem;
}

.case-study-card .title.is-4 {
  min-height: 3.5em;
}

.case-study-quote {
  border-left: 3px solid var(--efoqus-teal);
  padding-left: 0.75rem;
  text-align: left;
}

.case-study-card .download-btn .icon {
  margin-right: 0.35rem;
}

/* -- Download Gate Modal -------------------------------------------- */

.modal-card-head {
  background: var(--efoqus-charcoal);
}

.modal-card-title {
  color: #fff;
  font-weight: 700;
}

.modal-card-head .delete::before,
.modal-card-head .delete::after {
  background-color: #fff;
}

.modal-card-foot {
  justify-content: flex-start;
}

/* -- Responsive ------------------------------------------------------ */

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }

  .stats-bar .stat-number {
    font-size: 2rem;
  }

  .hero .title.is-1 {
    font-size: 2rem;
  }
}
