/* ==========================================================
   NINETY4MGMT — Reusable Components
   Buttons, Cards, Navbar, Footer, etc.
   ========================================================== */

/* =================================
   BUTTONS
   ================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-gradient-warm);
  color: var(--text-white);
  border: none;
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
  filter: brightness(1.1);
  color: var(--text-white);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--orange-mid);
  border: 1px solid var(--border-orange);
}

.btn--outline:hover {
  background: var(--orange-glow);
  border-color: var(--orange);
  color: var(--gold-mid);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange-mid);
  background: var(--orange-glow);
}

.btn--lg {
  padding: 18px 40px;
  font-size: var(--fs-body);
}

.btn--sm {
  padding: 10px 24px;
  font-size: var(--fs-xs);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* =================================
   NAVBAR
   ================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: 20px 0;
  transition: all var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 48px;
  width: auto;
  transition: height var(--transition-base);
}

.navbar.scrolled .navbar__logo-img {
  height: 40px;
}

.navbar__logo-mark {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  background: var(--brand-gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar__logo-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-white);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__link {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient-warm-h);
  transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--orange-mid);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  margin-left: var(--space-lg);
}

/* ── Mobile Menu Toggle ── */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-navbar) + 10);
  padding: 0;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Menu ── */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-darkest);
  z-index: calc(var(--z-navbar) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.navbar__mobile-menu.open {
  display: flex;
  opacity: 1;
}

.navbar__mobile-menu .navbar__link {
  font-size: 1.25rem;
  color: var(--text-light);
}

/* =================================
   SERVICE CARD
   ================================= */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient-warm-h);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--blue-glow);
  color: var(--blue-mid);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--orange-glow-strong);
  box-shadow: 0 0 20px rgba(232,98,46,0.2);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue-mid);
  stroke-width: 1.5;
  fill: none;
}

.service-card:hover .service-card__icon svg {
  stroke: var(--orange-mid);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.service-card__text {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}

.service-card__link {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--orange-mid);
  letter-spacing: var(--ls-wide);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all var(--transition-fast);
}

.service-card__link:hover {
  color: var(--gold-mid);
  gap: var(--space-sm);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

/* =================================
   PROCESS STEP
   ================================= */
.process-step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  background: var(--brand-gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  min-width: 70px;
  opacity: 0.7;
}

.process-step__content h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.process-step__content p {
  color: var(--text-muted);
  font-size: var(--fs-body);
}

/* =================================
   CTA BLOCK
   ================================= */
.cta-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% center, var(--orange-glow) 0%, transparent 40%),
              radial-gradient(circle at 70% center, var(--blue-glow) 0%, transparent 40%);
  pointer-events: none;
}

.cta-block h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-lg);
  position: relative;
}

.cta-block p {
  font-size: var(--fs-body-lg);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  color: var(--text-muted);
  position: relative;
}

.cta-block .btn-group {
  justify-content: center;
  position: relative;
}

/* =================================
   VALUE CARD
   ================================= */
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-smooth);
}

.value-card:hover {
  border-color: var(--border-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  background: var(--blue-glow);
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue-mid);
  stroke-width: 1.5;
  fill: none;
}

.value-card:hover .value-card__icon {
  background: var(--orange-glow);
}

.value-card:hover .value-card__icon svg {
  stroke: var(--orange-mid);
}

.value-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  font-family: var(--font-body);
}

.value-card p {
  font-size: var(--fs-small);
  color: var(--text-subtle);
}

/* =================================
   FEATURE LIST
   ================================= */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.feature-list__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  stroke-width: 2;
  fill: none;
}

.feature-list__text {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

/* =================================
   TESTIMONIAL CARD (placeholder)
   ================================= */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  position: relative;
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: var(--fs-body-lg);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-relaxed);
}

.testimonial-card__author {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--orange-mid);
}

.testimonial-card__role {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

/* =================================
   FOOTER
   ================================= */
.footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  color: var(--text-subtle);
  font-size: var(--fs-small);
  max-width: 300px;
  margin-top: var(--space-md);
}

.footer__tagline {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-top: var(--space-xs);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--orange-mid);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--text-subtle);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--orange-mid);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-subtle);
  margin-bottom: var(--space-sm);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--orange-mid);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  border-color: var(--orange);
  background: var(--orange-glow);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-subtle);
  transition: fill var(--transition-fast);
}

.footer__social-link:hover svg {
  fill: var(--orange-mid);
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__bottom-links a {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: var(--orange-mid);
}

/* =================================
   FORM ELEMENTS
   ================================= */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-light);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: var(--fs-body);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-primary);
  color: var(--text-light);
}

.form-message {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  margin-bottom: var(--space-lg);
}

.form-message--success {
  background: rgba(39, 201, 78, 0.1);
  border: 1px solid rgba(39, 201, 78, 0.3);
  color: #27c94e;
}

.form-message--error {
  background: rgba(201, 39, 39, 0.1);
  border: 1px solid rgba(201, 39, 39, 0.3);
  color: #c92727;
}

/* =================================
   IMAGE PLACEHOLDER
   ================================= */
.img-placeholder {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================================
   PAGE HERO (interior pages)
   ================================= */
.page-hero {
  padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient-h);
  opacity: 0.3;
}

.page-hero .eyebrow {
  margin-bottom: var(--space-md);
}

.page-hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
}

.page-hero p {
  font-size: var(--fs-body-lg);
  max-width: 600px;
  color: var(--text-muted);
}

/* =================================
   STAT COUNTER
   ================================= */
.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  background: var(--brand-gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}
