/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--white);
  outline: 1px solid var(--white);
}

.section-light .btn-primary,
.section-white .btn-primary {
  background-color: var(--black);
  color: var(--white);
}

.section-light .btn-primary:hover,
.section-white .btn-primary:hover {
  background-color: transparent;
  color: var(--black);
  outline: 1px solid var(--black);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

.section-light .btn-secondary,
.section-white .btn-secondary {
  color: var(--black);
  border-color: rgba(0, 0, 0, 0.3);
}

.section-light .btn-secondary:hover,
.section-white .btn-secondary:hover {
  border-color: var(--black);
  background-color: rgba(0, 0, 0, 0.05);
}

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

.btn-dark:hover {
  background-color: var(--dark-2);
}

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

.btn-outline:hover {
  background-color: var(--black);
  color: var(--white);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 18px;
}

.btn .btn-arrow {
  margin-left: 0.5rem;
  transition: transform 0.4s var(--ease-out);
  display: inline-block;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--dark-2);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  transition: all 0.4s var(--ease-out);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.card-light {
  background-color: var(--white);
  border: 1px solid var(--border-dark);
}

.card-light:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 60px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
}

.card-light .card-number,
.section-white .card-number,
.section-light .card-number {
  color: rgba(0, 0, 0, 0.2);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: var(--white);
}

.card-light .card-title,
.section-white .card-title,
.section-light .card-title {
  color: var(--black);
}

.card-text {
  font-family: var(--font-body);
  font-size: 16px;
  color: #DDDDDD;
  margin-top: 1rem;
  line-height: 1.7;
}

.card-light .card-text,
.section-white .card-text,
.section-light .card-text {
  color: #222222;
}

.card-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
}

.card-light .card-link,
.section-white .card-link,
.section-light .card-link {
  color: var(--black);
}

.card-link .btn-arrow {
  transition: transform 0.4s var(--ease-out);
}

.card-link:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Navigation (Header)
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  padding: 0 2rem;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--white);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s var(--ease-out);
}

.logo:hover .logo-img {
  opacity: 0.85;
}

.section-light .logo-img,
.section-white .logo-img,
.footer-brand .logo-img {
  filter: brightness(0) invert(1);
}

.logo-dot {
  width: 6px;
  height: 6px;
  background-color: var(--white);
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease-out);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

/* Services Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 280px;
  background-color: var(--dark-2);
  border: 1px solid var(--border-light);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out);
  pointer-events: none;
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-light);
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

/* Nav CTA Button */
.nav-cta {
  background-color: var(--white);
  color: var(--black);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0;
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  background-color: transparent;
  color: var(--white);
  outline: 1px solid var(--white);
}

/* Mobile Menu */
.hamburger {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  z-index: var(--z-overlay);
}

@media (max-width: 1023px) {
  .hamburger {
    display: block;
  }
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  transition: all 0.3s var(--ease-out);
}

.hamburger span:first-child {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:last-child {
  bottom: 0;
}

.hamburger.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.hamburger.active span:last-child {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--black);
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out);
  padding: 2rem;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link {
  font-size: 36px;
  font-family: var(--font-heading);
  margin: 0.5rem 0;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.mobile-menu.active .nav-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu .nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu .nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu .nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu .nav-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu .nav-link:nth-child(5) { transition-delay: 0.5s; }

.mobile-menu .btn {
  margin-top: 2rem;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
  transition-delay: 0.6s;
}

.mobile-menu.active .btn {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

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

.section-light .breadcrumb a:hover,
.section-white .breadcrumb a:hover {
  color: var(--black);
}

.breadcrumb .separator {
  color: var(--gray-light);
  margin: 0 0.25rem;
}

.breadcrumb .current {
  color: var(--white);
}

.section-light .breadcrumb .current,
.section-white .breadcrumb .current {
  color: var(--black);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.accordion {
  border-top: 1px solid var(--border-light);
}

.section-light .accordion,
.section-white .accordion {
  border-top: 1px solid var(--border-dark);
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.section-light .accordion-item,
.section-white .accordion-item {
  border-bottom: 1px solid var(--border-dark);
}

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s var(--ease-out);
}

.section-light .accordion-trigger,
.section-white .accordion-trigger {
  color: var(--black);
}

.accordion-trigger:hover {
  color: var(--gray-light);
}

.section-light .accordion-trigger:hover,
.section-white .accordion-trigger:hover {
  color: var(--gray);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: all 0.3s var(--ease-out);
}

.accordion-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.accordion-icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

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

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.accordion-content-inner {
  padding: 0 0 1.5rem;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
}

/* ==========================================================================
   Service Card (Homepage showcase)
   ========================================================================== */

.service-panel {
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.service-panel:hover {
  padding-left: 1rem;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  min-width: 3rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  flex: 1;
  margin: 0;
}

.service-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.4s var(--ease-out);
  transform: translateX(0);
}

.service-panel:hover .service-arrow {
  transform: translateX(8px);
  color: var(--white);
}

@media (max-width: 767px) {
  .service-panel {
    padding: 1.5rem 0;
  }
  .service-title {
    font-size: 20px;
  }
  .service-panel:hover {
    padding-left: 0.5rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--black);
  color: var(--gray);
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-brand p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  max-width: 320px;
  margin-top: 1.5rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 15px;
}

.footer-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 3rem 0 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--gray);
}

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

.footer-bottom a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

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

/* ==========================================================================
   Back to Top
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--gray-light);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  text-align: center;
  padding: 8rem 0;
}

@media (max-width: 767px) {
  .cta-section {
    padding: 5rem 0;
  }
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto;
}

.section-light .cta-title,
.section-white .cta-title {
  color: var(--black);
}

@media (max-width: 767px) {
  .cta-title {
    font-size: 36px;
  }
}

.cta-text {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--gray);
  max-width: 500px;
  margin: 1.5rem auto 2.5rem;
}

.section-light .cta-text,
.section-white .cta-text {
  color: var(--gray-darker);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Tags / Badges
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-light);
  color: var(--gray-light);
}

.section-light .tag,
.section-white .tag {
  border-color: var(--border-dark);
  color: var(--gray-dark);
}

.tag-filled {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: transparent;
}

.section-light .tag-filled,
.section-white .tag-filled {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Dividers
   ========================================================================== */

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-light);
}

.divider-dark {
  background-color: var(--border-dark);
}

/* ==========================================================================
   Image Wrappers
   ========================================================================== */

.img-reveal {
  overflow: hidden;
  position: relative;
}

.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}


/* ==========================================================================
   Popup Modal System (50% Scroll Trigger) & Form System
   ========================================================================== */

.popup-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}

.popup-modal.active {
  opacity: 1;
  visibility: visible;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.popup-container {
  position: relative;
  z-index: 2;
  background-color: var(--dark-2);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 580px;
  padding: 3rem 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s var(--ease-out);
}

.popup-modal.active .popup-container {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.popup-close:hover {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.popup-header {
  margin-bottom: 2rem;
  text-align: left;
}

.popup-header h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-top: 0.5rem;
}

.popup-header p {
  color: var(--gray-light);
  font-size: 15px;
  margin-top: 0.5rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: var(--dark);
  border: 1px solid var(--border-light);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s var(--ease-out);
}

.form-control:focus {
  outline: none;
  border-color: var(--white);
}

.form-control::placeholder {
  color: #666666;
}

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

.form-success-message {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.form-success-message h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.form-success-message p {
  color: var(--gray-light);
  font-size: 16px;
}


/* ==========================================================================
   Skip to Content (Accessibility)
   ========================================================================== */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 1rem 2rem;
  background-color: var(--white);
  color: var(--black);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* ==========================================================================
   Card Link
   ========================================================================== */

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  transition: gap 0.3s var(--ease-out);
}

.card-link:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   Section CTA Wrapper
   ========================================================================== */

.section-cta {
  margin-top: 3rem;
  text-align: center;
}

/* ==========================================================================
   Section Label/Title/Subtitle Dark Variants (for light backgrounds)
   ========================================================================== */

.section-label--dark {
  color: var(--gray);
}

.section-title--dark {
  color: var(--black);
}

.section-subtitle--dark {
  color: var(--gray-dark);
}

/* ==========================================================================
   Logo Variant
   ========================================================================== */

.logo-text--light {
  font-weight: 400;
  opacity: 0.7;
}

/* ==========================================================================
   Footer Column
   ========================================================================== */

.footer-column {
  min-width: 0;
}

/* ==========================================================================
   Footer Bottom Links
   ========================================================================== */

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--gray);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}

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

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}
