/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #1f2d4f;
  color: #ffffff;
  overflow-x: hidden;
  padding-top: 60px;
}

button,
input,
select,
textarea {
  font-family: 'Inter', sans-serif;
}

a {
  color: #f4c542;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #1f2d4f;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  border: 0;
  background: transparent;
  color: #f4c542;
  cursor: pointer;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 3px;
  padding: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

.nav-link {
  color: #f4c542;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 20px 0 18px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  opacity: 0.85;
}

.nav-link.active {
  border-bottom-color: #f4c542;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(244,197,66,0.5);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #f4c542;
}

/* --- Tab Architecture --- */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
}

/* --- Typography --- */
h1,
h2,
h3,
p {
  margin-top: 0;
}

.page-heading {
  color: #f4c542;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-heading {
  color: #f4c542;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.body-copy {
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.body-copy + .body-copy {
  margin-top: 18px;
}

/* --- Home --- */
.home-panel {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  background: #1f2d4f;
  animation: backgroundPulse 9s ease-in-out infinite;
}

.home-panel.tab-panel:not(.active) {
  display: none;
}

.home-panel.tab-panel.active {
  display: flex;
}

@keyframes backgroundPulse {
  0%, 100% {
    background-color: #1f2d4f;
  }
  50% {
    background-color: #172240;
  }
}

.home-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 40px);
  text-align: center;
}

.home-logo {
  width: 200px;
  max-width: 70vw;
  display: inline-block;
  margin-bottom: 16px;
  filter: saturate(0.82) contrast(1.06) brightness(0.98);
  image-rendering: auto;
  transform: translateZ(0);
}

.hero-title {
  color: #f4c542;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
}

.hero-subtitle {
  color: #ffffff;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.proof-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 30px auto 0;
  color: #f4c542;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 700;
  flex-wrap: wrap;
}

.proof-divider {
  width: 1px;
  height: 24px;
  background: rgba(244,197,66,0.75);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  max-width: 980px;
}

.trust-strip span {
  border: 1px solid rgba(244,197,66,0.35);
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  text-align: left;
}

.feature-card,
.dark-card,
.profile-card {
  background: #172240;
  border: 1px solid rgba(244,197,66,0.75);
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.feature-card {
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #f4c542;
}

.icon-gold {
  width: 32px;
  height: 32px;
  color: #f4c542;
  margin-bottom: 16px;
}

.feature-card h3,
.value-column h3 {
  color: #f4c542;
  font-weight: 700;
  line-height: 1.35;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 0;
}

.tab-cta,
.form-submit,
.linkedin-button {
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.tab-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 12px 32px;
  border: 1px solid #f4c542;
  background: transparent;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.tab-cta:hover {
  background: #f4c542;
  color: #1f2d4f;
}

/* --- Services --- */
.service-block {
  padding: 0 0 clamp(34px, 5vw, 54px);
}

.gold-list {
  margin: 0;
  padding-left: 22px;
  color: #ffffff;
  line-height: 1.7;
}

.gold-list li::marker {
  color: #f4c542;
}

.diagnostic-card {
  padding: clamp(28px, 5vw, 40px);
  text-align: center;
}

.accordion-list {
  margin-top: 28px;
}

.accordion-card {
  background: #172240;
  border: 1px solid rgba(244,197,66,0.4);
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.03);
  cursor: pointer;
  margin-bottom: 12px;
  padding: 20px 24px;
  transition: border-color 0.3s ease;
}

.accordion-card.active {
  border-color: #f4c542;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.accordion-title {
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  margin: 0;
}

.accordion-plus {
  color: #f4c542;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.accordion-card.active .accordion-plus {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding-top 0.3s ease;
}

.accordion-card.active .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding-top: 16px;
}

.accordion-content p {
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 12px;
}

.credential-note {
  background: #172240;
  border: 1px solid rgba(244,197,66,0.4);
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.03);
  margin: 40px auto;
  max-width: 800px;
  padding: 32px;
  text-align: center;
}

.credential-note p {
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Valuation --- */
.value-column {
  padding: 24px 0;
}

.credential-card {
  padding: 32px;
  margin-top: 34px;
  text-align: center;
}

.industries {
  margin-top: 40px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.industry-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #f4c542;
  border-radius: 20px;
  background: #172240;
  color: #f4c542;
  font-size: 0.9rem;
  padding: 6px 16px;
}

.industry-tag.featured {
  background: #f4c542;
  color: #1f2d4f;
  font-weight: 700;
}

/* --- About --- */
.profile-card {
  max-width: 600px;
  margin: 34px auto 0;
  padding: clamp(28px, 5vw, 40px);
  text-align: center;
}

.profile-name {
  color: #f4c542;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.profile-credentials {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.8;
}

.practice-line {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 16px;
}

.linkedin-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 24px;
  border: 1px solid #f4c542;
  background: transparent;
  color: #f4c542;
  font-weight: 600;
  text-decoration: none;
}

.linkedin-button:hover {
  background: #f4c542;
  color: #1f2d4f;
}

.linkedin-button:hover svg {
  fill: #1f2d4f;
}

/* --- Contact Form --- */
.contact-form {
  margin-top: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(244,197,66,0.75);
  border-radius: 4px;
  background: #172240;
  color: #ffffff;
  font-size: 1rem;
  padding: 12px 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #f4c542;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.char-counter {
  color: #f4c542;
  font-size: 0.85rem;
  margin-top: 8px;
  text-align: right;
}

.char-counter.warning {
  color: #ff5a5f;
}

.captcha-wrap {
  margin-top: 18px;
}

.form-submit {
  border: 0;
  background: #f4c542;
  color: #1f2d4f;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 22px;
  padding: 14px 40px;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit.is-loading {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  color: #f4c542;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 16px;
}

.form-status.error {
  color: #ff5a5f;
}

.direct-contact {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 28px;
  text-align: center;
}

.direct-contact a {
  color: #f4c542;
  text-decoration: none;
}

.direct-contact a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-left {
  color: #ffffff;
}

.footer-right {
  color: #ffffff;
}

.footer-right a {
  color: #f4c542;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-separator {
  color: rgba(255,255,255,0.5);
  padding: 0 10px;
}

/* --- Legal and Long-Form Pages --- */
.static-page {
  min-height: calc(100vh - 60px);
}

.static-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) clamp(20px, 4vw, 40px);
}

.static-kicker {
  color: #f4c542;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.static-content {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.75;
}

.static-content h2 {
  color: #f4c542;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  margin: 36px 0 12px;
}

.static-content h3 {
  color: #f4c542;
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 28px 0 10px;
}

.static-content p,
.static-content li {
  color: rgba(255,255,255,0.9);
}

.static-content a {
  color: #f4c542;
  text-decoration: none;
}

.static-content a:hover {
  text-decoration: underline;
}

.article-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) clamp(20px, 4vw, 40px);
}

.article-meta {
  color: rgba(244,197,66,0.75);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.article-content {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.85;
}

.article-content h2 {
  color: #f4c542;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 42px 0 14px;
}

.article-content h3 {
  color: #f4c542;
  font-size: 1.16rem;
  line-height: 1.35;
  margin: 32px 0 10px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  border: 1px solid rgba(244,197,66,0.28);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: #f4c542;
  background: #172240;
  font-weight: 700;
}

.pull-quote {
  border-left: 3px solid #f4c542;
  color: #ffffff;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.55;
  margin: 34px 0;
  padding: 8px 0 8px 22px;
}

.framework-diagram {
  background: #172240;
  border: 1px solid rgba(244,197,66,0.45);
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.03);
  margin: 30px 0;
  padding: 24px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.framework-cell {
  border: 1px solid rgba(244,197,66,0.3);
  border-radius: 8px;
  color: rgba(255,255,255,0.88);
  padding: 14px;
}

.framework-cell strong {
  color: #f4c542;
  display: block;
  margin-bottom: 6px;
}

/* --- Premium Fade-In Animation --- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }
.delay-7 { animation-delay: 0.3s; }
.delay-8 { animation-delay: 0.3s; }
.delay-9 { animation-delay: 0.3s; }
.delay-10 { animation-delay: 0.3s; }

@media (max-width: 980px) {
  .home-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px clamp(20px, 4vw, 40px) 18px;
    background-color: #1f2d4f;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
  }

  .proof-row {
    flex-direction: column;
    gap: 10px;
  }

  .proof-divider {
    width: 80px;
    height: 1px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-submit {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .framework-grid {
    grid-template-columns: 1fr;
  }
}
