/* ============================================================
   COMPONENTS.CSS — Navbar, Footer, Cards, Buttons, Forms, etc.
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-btn);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn--brand {
  background: var(--brand);
  color: var(--white);
}
.btn--brand:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,168,219,0.25);
}

.btn--white {
  background: var(--white);
  color: var(--brand);
}
.btn--white:hover {
  background: var(--tint);
}

.btn--outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn--outline:hover {
  background: var(--brand);
  color: var(--white);
}

.btn--dark-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--dark-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn--full { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 72px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.navbar__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--brand);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--body);
  padding: 4px 0;
  position: relative;
  transition: color 0.25s;
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.3s var(--ease);
}
.navbar__link:hover,
.navbar__link--active {
  color: var(--brand);
}
.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__cta {
  margin-left: 16px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 10001;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
  border-radius: 2px;
}
.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.3s;
}
.navbar__mobile-menu.open {
  display: flex;
  opacity: 1;
}
.navbar__mobile-menu .navbar__link {
  font-size: 20px;
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__cta.desktop-only { display: none; }
  .navbar__hamburger { display: flex; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  padding: 60px 0 0;
  color: var(--light-grey);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--light-grey);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--brand);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer__tagline {
  font-family: var(--font-accent);
  font-weight: 200;
  font-size: 14px;
  color: var(--light-grey);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: var(--light-grey);
  margin-bottom: 10px;
  transition: color 0.25s;
}
.footer__link:hover {
  color: var(--white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__address {
  margin-bottom: 16px;
}
.footer__address-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--light-grey);
  margin-bottom: 4px;
}
.footer__address-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--light-grey);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding: 20px 0;
  text-align: center;
}
.footer__copyright {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--grey);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer__social a {
  color: var(--brand);
  transition: opacity 0.25s;
}
.footer__social a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--brand);
}
.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 8px;
}

.card__body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 80px;
  line-height: 0;
  color: var(--brand-light);
  position: absolute;
  top: 32px;
  left: 24px;
}
.testimonial-card__quote {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-top: 24px;
}
.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
}
.testimonial-card__company {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--grey);
}

/* ---------- Icon List ---------- */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.icon-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}
.icon-list__item svg {
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

/* ---------- Skill Tags ---------- */
.skill-tag {
  display: inline-block;
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-tag);
  padding: 4px 12px;
  font-size: 12px;
  font-family: var(--font-body);
  margin: 3px;
}
.skill-tag--lite {
  background: var(--tint);
  color: var(--dark);
}

/* ---------- Stats Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  text-align: center;
  border-top: 4px solid var(--brand);
  padding-top: 24px;
}
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Process Step ---------- */
.process-step {
  text-align: center;
  position: relative;
}
.process-step__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--brand);
}
.process-step__icon svg { width: 28px; height: 28px; }
.process-step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 8px;
}
.process-step__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 60px;
  align-items: center;
}
.marquee--left .marquee__track {
  animation: marquee-left 35s linear infinite;
}
.marquee--right .marquee__track {
  animation: marquee-right 35s linear infinite;
}
.marquee__logo {
  height: 40px;
  width: auto;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s, opacity 0.3s;
  flex-shrink: 0;
}
.marquee__logo:hover {
  filter: grayscale(0%) opacity(1);
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 640px) {
  .marquee__logo { height: 28px; }
}

/* ---------- Accordion ---------- */
.accordion {}
.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-badge);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.accordion__item.active {
  border-left: 3px solid var(--brand);
}
.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--tint);
  transition: background 0.25s, color 0.25s;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
  color: var(--dark);
  user-select: none;
}
.accordion__item.active .accordion__header {
  color: var(--brand);
  background: var(--white);
}
.accordion__icon {
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s;
  color: var(--grey);
  flex-shrink: 0;
  margin-left: 16px;
}
.accordion__item.active .accordion__icon {
  transform: rotate(45deg);
  color: var(--brand);
}
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  background: var(--white);
}
.accordion__content-inner {
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--body);
  line-height: 1.8;
}

/* ---------- Tabs ---------- */
.tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}
.tabs__btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--grey);
  padding: 12px 28px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.25s, border-color 0.25s;
  cursor: pointer;
  background: none;
}
.tabs__btn:hover {
  color: var(--brand);
}
.tabs__btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.tabs__panel {
  display: none;
}
.tabs__panel.active {
  display: block;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-label .required {
  color: #EF4444;
  margin-left: 2px;
}
.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15,168,219,0.15);
}
.form-input.error,
.form-textarea.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-error {
  font-size: 12px;
  color: #EF4444;
  margin-top: 4px;
  display: none;
}
.form-input.error + .form-error,
.form-textarea.error + .form-error {
  display: block;
}

.form-file {
  width: 100%;
  border: 2px dashed var(--border);
  border-radius: var(--radius-btn);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}
.form-file:hover {
  border-color: var(--brand);
  background: var(--tint);
}
.form-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.form-file__label {
  font-size: 14px;
  color: var(--grey);
}
.form-file__label strong {
  color: var(--brand);
}
.form-file__hint {
  font-size: 12px;
  color: var(--light-grey);
  margin-top: 4px;
}

/* Success State */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.show {
  display: block;
}
.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ECFDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #059669;
}
.form-success__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-success__text {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.7;
}

/* ---------- ISI Badge ---------- */
.isi-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-badge);
  padding: 20px 32px;
}
.isi-badge__icon { color: var(--brand); flex-shrink: 0; }
.isi-badge__text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--dark);
}
.isi-badge__sub {
  font-size: 12px;
  color: var(--grey);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
}
.cta-banner__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner__sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

/* Body top padding for fixed navbar */
body { padding-top: 72px; }
