/* ==========================================================================
   DEZKO - Components
   ========================================================================== */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  line-height: 1;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-400), var(--green-500));
  color: var(--navy-900);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
}

.btn-block {
  width: 100%;
  padding: 16px;
}

.btn-outline-dark {
  color: var(--navy-900);
  border-color: var(--navy-900);
}

.btn-outline-dark:hover {
  background-color: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

/* ── Navbar ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, padding 0.3s ease;
  background: rgba(10, 14, 23, 0.0);
  will-change: background-color;
}

header.scrolled {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--green-400);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  z-index: 1001;
}

/* ── Cards ── */
.card {
  background: var(--navy-700);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--green-400);
  transition: height 0.3s ease;
}

.card:hover {
  background: var(--navy-600);
  transform: translateY(-5px);
}

.card:hover::before {
  height: 100%;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-400);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--gray-400);
  font-size: 0.95rem;
}

/* Card Variants */
.card-cta {
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  border: none;
}

.card-cta h3 {
  color: var(--navy-900);
  margin-bottom: 16px;
}

.card-cta p {
  color: var(--navy-800);
  font-weight: 500;
  margin-bottom: 20px;
}

.card-cta:hover {
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
}

.card-cta .btn {
  background: var(--navy-900);
  color: var(--white);
  width: 100%;
}

.card-light {
  background: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
}

.card-light:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.card-light h3 {
  color: var(--navy-900);
}

.card-light p {
  color: var(--gray-500);
}

/* MV Cards */
.mv-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--green-400);
}

.mv-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-card i {
  color: var(--green-500);
}

.mv-card ul {
  list-style: none;
}

.mv-card li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 24px;
  color: var(--gray-600);
}

.mv-card li::before {
  content: "\2713";
  color: var(--green-500);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ── Accordion ── */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--navy-700);
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-item-header {
  padding: 24px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-item-header:hover {
  background-color: var(--navy-600);
}

.accordion-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-accordion);
  padding: 0 24px;
  background: none;
  will-change: max-height;
}

.accordion-item-body p {
  padding-bottom: 24px;
  color: var(--gray-400);
}

.accordion-item.active .accordion-item-header {
  color: var(--green-400);
}

.accordion-item .icon {
  transition: transform 0.3s ease;
  color: var(--green-400);
}

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

/* ── Forms ── */
.form-container {
  background: var(--white);
  padding: 48px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s;
  background-color: var(--gray-100);
  color: var(--gray-600);
  line-height: 1.5;
  height: auto;
  box-shadow: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-400);
  background-color: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.error input,
.form-group.error select {
  border-color: #EF4444;
}

.form-group .error-message {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.privacy-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 20px;
  text-align: center;
}

/* ── Footer ── */
footer {
  background-color: #05070A;
  color: var(--gray-500);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
  color: var(--gray-500);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: var(--gray-500);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--navy-800);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-social a:hover {
  background: var(--green-400);
  color: var(--navy-900);
}

.legal-text {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--gray-600);
  text-align: center;
}

.legal-text strong {
  font-weight: 600;
  color: var(--gray-400);
}

/* ── Utility Classes ── */
.text-center {
  text-align: center;
}

.text-green {
  color: var(--green-400);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 30px;
}

.text-gray {
  color: var(--gray-200);
}

.text-gray-muted {
  color: var(--gray-600);
}

.cards-grid-single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.cards-grid-diffs {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero-buttons-center {
  justify-content: center;
}

.section-gray {
  background: var(--gray-100);
}

.opp-intro {
  margin-bottom: 30px;
  text-align: center;
  color: var(--gray-200);
}

.opp-center {
  text-align: center;
}

.opp-list-full {
  max-width: 100%;
  margin: 0;
}

.opp-list-border {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Testimonials */
.testimonial-icon {
  color: var(--green-400);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.testimonial-text {
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 20px;
}

/* Loading state for buttons */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Attributes Row ── */
.section-attributes {
  padding: 32px 0;
  background-color: #05070A;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.attributes-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.attribute-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-400);
  font-size: 0.95rem;
  font-weight: 500;
}

.attribute-item i {
  color: var(--green-500);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .attributes-row {
    gap: 24px;
  }

  .attribute-item {
    font-size: 0.85rem;
  }
}

/* ── Carousel ── */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0;
}

.carousel-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.carousel-card .card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--green-400), var(--green-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.carousel-card .card-icon i {
  font-size: 1.5rem;
  color: var(--navy-900);
}

.carousel-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.carousel-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Carousel Compact (horizontal row cards) ── */
.carousel-compact .carousel-track {
  gap: 16px;
}

.carousel-card-row {
  flex: 0 0 calc(50% - 8px) !important;
  min-width: 0 !important;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px !important;
  text-align: left !important;
  border-radius: 12px !important;
}

.carousel-card-row .card-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  margin: 0 !important;
  border-radius: 10px !important;
}

.carousel-card-row .card-icon i {
  font-size: 1.1rem !important;
}

.carousel-card-row .card-text h3 {
  font-size: 1rem !important;
  margin-bottom: 4px !important;
}

.carousel-card-row .card-text p {
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  color: var(--gray-500);
}

@media (max-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc(50% - 12px);
  }

  .carousel-card-row {
    flex: 0 0 calc(100% - 0px) !important;
  }
}

@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 100%;
    min-width: 0;
  }

  .carousel-card-row {
    flex: 0 0 100% !important;
  }

  .carousel-nav {
    gap: 12px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}
