@import 'tokens.css';

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 24px;
  font-family: var(--font-button);
  font-size: var(--text-button);
  font-weight: var(--weight-bold);
  line-height: var(--lh-relaxed);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--color-cta);
  border-color: var(--color-cta);
  color: var(--color-white);
}

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

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--color-bg-dark);
  border-width: 1px;
  color: var(--color-bg-dark);
}

.btn-text {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-bg-dark);
  padding: 10px 0;
  text-transform: uppercase;
}

.btn-dark {
  background-color: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: var(--color-white);
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-dark-grey);
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar > .page-padding {
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.navbar__inner {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 31px;
  width: auto;
}

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

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

.navbar__links a {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-bg-dark);
  transition: color 0.2s ease;
}

.navbar__links a:hover {
  color: var(--color-accent);
}

/* ─── Scrolled Navbar ────────────────────────────────────── */
@media (max-width: 1024px) {
  .navbar.is-scrolled > .page-padding {
    height: 56px;
    transition: height 0.3s ease;
  }

  .navbar > .page-padding {
    transition: height 0.3s ease;
  }
}

/* ─── Hamburger ──────────────────────────────────────────── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-bg-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when open */
.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile Menu ────────────────────────────────────────── */
.navbar__mobile-menu {
  display: none;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-dark-grey);
  padding: 24px 0;
}

.navbar__mobile-menu.is-open {
  display: block;
}

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

.navbar__mobile-links a {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-bg-dark);
  display: block;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.navbar__mobile-links a:hover {
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .navbar__right {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }
}

/* ─── Service Card ───────────────────────────────────────── */
.service-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-dark-grey);
  border-radius: var(--radius-sm);
}

.service-card__icon {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  color: var(--color-bg-dark);
}

.service-card p {
  color: var(--color-body);
}

/* ─── Project Card ───────────────────────────────────────── */
.project-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-dark-grey);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.project-card__image {
  width: calc(100% - var(--space-md) * 2);
  height: 437px;
  object-fit: cover;
  border-radius: 5px;
  margin: var(--space-md) var(--space-md) 0;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
}

.project-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.project-card h3 {
  font-size: var(--text-h6);
  color: var(--color-bg-dark);
}

.project-card__desc {
  color: var(--color-body);
  font-size: var(--text-body);
}

.project-card__link {
  font-weight: var(--weight-bold);
  color: var(--color-accent);
}

.project-card__link:hover {
  text-decoration: underline;
}

/* ─── Testimonial Card ───────────────────────────────────── */
.testimonial-card {
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding: 32px 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-dark-grey);
  border-radius: var(--radius-sm);
}

.testimonial-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.testimonial-card__photo--mobile {
  display: none;
}

.testimonial-card__byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__quote {
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--color-bg-dark);
  font-size: var(--text-large);
  line-height: var(--lh-relaxed);
}

.testimonial-card__name {
  font-weight: var(--weight-bold);
  color: var(--color-bg-dark);
}

.testimonial-card__company {
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  font-size: var(--text-body);
}

/* ─── Stars ──────────────────────────────────────────────── */
.stars {
  display: flex;
  gap: 4px;
}

.stars img {
  width: 116px;
  height: auto;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--gradient-primary);
  padding: 20px 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
  padding: 60px;
  border-radius: var(--radius-md);
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer__logo img {
  height: 31px;
  width: auto;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer__social a:hover {
  opacity: 0.7;
}

.footer__social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.footer__bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-white);
}

.footer__credits {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__credits p,
.footer__credits a {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-white);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__links a {
  text-decoration: underline;
}

.footer__links a:hover {
  opacity: 0.8;
}
