/* ============================================
   Grafix Studio -- Components
   ============================================ */

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: padding 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header--scrolled {
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 101;
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity var(--transition-base);
}

.site-header--scrolled .logo img {
  opacity: 0;
  pointer-events: none;
}

.site-header--scrolled .logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 102.8px;
  height: 40px;
  background-image: url('../images/static/Union-gradient.svg');
  background-size: 102.8px 40px;
  background-repeat: no-repeat;
  background-position: left center;
  pointer-events: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--color-white);
  transition: color var(--transition-base);
}

.site-header--scrolled .logo-text {
  color: var(--color-dark);
}

/* Navigation - floating pill */
.nav-main {
  position: absolute;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 0.4rem 0.5rem;
  position: relative;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: background 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}

.site-header--scrolled .nav-pill {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Hover highlight that slides behind active link */
.nav-pill__highlight {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: calc(100% - 0.5rem);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  transition: left 300ms cubic-bezier(0.16, 1, 0.3, 1),
              width 300ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 300ms ease;
  opacity: 0;
}

.site-header--scrolled .nav-pill__highlight {
  background: rgba(0, 0, 0, 0.06);
}

.nav-pill:hover .nav-pill__highlight {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 200ms ease;
  position: relative;
  padding: 0.45rem 1rem;
  display: block;
  white-space: nowrap;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a.active {
  color: var(--color-white);
  position: relative;
}

.nav-links a.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  z-index: -1;
}

.site-header--scrolled .nav-links a {
  color: var(--color-primary);
}

.site-header--scrolled .nav-links a:hover {
  color: var(--color-secondary);
}

.site-header--scrolled .nav-links a.active {
  color: var(--color-primary);
  position: relative;
}

.site-header--scrolled .nav-links a.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.06);
  z-index: -1;
}

/* CTA text link with arrow */
.nav-cta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  white-space: nowrap;
  background-image: linear-gradient(to right, var(--color-white) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 400ms cubic-bezier(0.16, 1, 0.3, 1), color 400ms ease;
}

.nav-cta:hover {
  color: transparent;
  background-position: left;
}

.nav-cta__arrow {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.nav-cta:hover .nav-cta__arrow {
  transform: translateX(4px);
}

.site-header--scrolled .nav-cta {
  color: var(--color-text);
  background-image: linear-gradient(to right, var(--color-dark) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right;
  -webkit-background-clip: text;
  background-clip: text;
}

.site-header--scrolled .nav-cta:hover {
  color: transparent;
  background-position: left;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 20px;
  z-index: 101;
  cursor: pointer;
}

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

.site-header--scrolled .menu-toggle span {
  background-color: var(--color-dark);
}

.menu-toggle.active span {
  background-color: var(--color-white);
}

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

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

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

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
  z-index: 99;
  padding: 6rem var(--gutter) var(--space-2xl);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-white);
  transition: opacity var(--transition-fast);
}

.mobile-nav__logo {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__logo img {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
}

.mobile-nav a:hover {
  opacity: 0.7;
}

/* --- Site Footer --- */
.site-footer {
  background-color: var(--color-secondary);
  color: var(--color-white);
  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 .logo-text {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-lg);
}

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

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* --- Project Card --- */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(6, 44, 98, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  transition: background var(--transition-base);
}

.project-card:hover .project-card__overlay {
  background: linear-gradient(
    180deg,
    transparent 10%,
    rgba(6, 44, 98, 0.92) 100%
  );
}

.project-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xs);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.project-card__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.project-card:hover .project-card__desc {
  opacity: 1;
  transform: translateY(0);
}

/* --- Service Card --- */
.service-card {
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-xl);
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.1);
  transform: translateY(-8px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: rgba(22, 73, 142, 0.08);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast);
}

.service-card:hover .service-card__link {
  gap: var(--space-sm);
}

.section--accent .service-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--accent .service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.section--accent .service-card__title {
  color: var(--color-white);
}

.section--accent .service-card__text {
  color: rgba(255, 255, 255, 0.6);
}

.section--accent .service-card__icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.section--accent .service-card__link {
  color: var(--color-white);
}

.section--accent .service-card--featured {
  border-color: rgba(255, 255, 255, 0.25);
}

/* --- Reviews Page Grid --- */
.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .reviews-page-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Review Card --- */
.review-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.review-card:hover {
  border-color: rgba(22, 73, 142, 0.25);
  box-shadow: 0 16px 48px rgba(10, 22, 40, 0.1);
  transform: translateY(-5px);
}

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

.review-card__stars {
  display: flex;
  gap: 3px;
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-card__google {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-mid-gray);
  letter-spacing: 0.03em;
}

.review-card__google svg {
  display: inline-block;
}

.review-card__text {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.85;
  flex: 1;
  position: relative;
  padding-top: var(--space-md);
}

.review-card__text::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: -0.25rem;
  font-size: 3.5rem;
  line-height: 1;
  font-style: normal;
  color: var(--color-light-gray);
  font-family: var(--font-heading);
  font-weight: 700;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-light-gray);
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.review-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-dark);
}

.review-card__company {
  font-size: var(--text-xs);
  color: var(--color-mid-gray);
  margin-top: 2px;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--color-light-gray);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-question {
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer__inner {
  padding-bottom: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.8;
}

.faq-answer a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 200ms ease;
}

.faq-answer a:hover {
  opacity: 0.7;
}

/* --- Stat Counter --- */
.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section--dark .stat__number,
.section--accent .stat__number {
  color: var(--color-white);
}

.section--dark .stat__label,
.section--accent .stat__label {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

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

  .nav-main {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

.cms-lock-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-medium-gray, #6b7280);
  opacity: 0.35;
  transition: opacity 0.2s, color 0.2s;
  text-decoration: none;
}
.cms-lock-link:hover {
  opacity: 0.7;
  color: var(--color-primary, #4f7df3);
}
