/* Ayelinklux - Shared / Global Styles
   Loaded on every page: variables, reset, page transitions, buttons,
   .section basics, and components reused across more than one page
   (feature cards, pricing cards, FAQ accordion). */

/* =========================================================
   CSS VARIABLES & RESET
========================================================= */
:root {
  --navy: #1B7F7C;
  --orange: #FFA800;
  --orange-light: #FFB93D;
  --navy-light: #2FA49A;
  --white: #FFFFFF;
  --off-white: #F8F9FF;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-light: #6B7280;
  --border: #E5E9FF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  font-size: 15px;
}

h1, h2, h3, h4, h5 { font-family: 'Quicksand', sans-serif; }

/* =========================================================
   PAGE TRANSITIONS (smooths the white gap when navigating between pages)
========================================================= */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.25s;
  animation-timing-function: ease-in-out;
}

/* =========================================================
   PAGE LOADING BAR (shows while a new page is loading, so the
   navigation gap never looks like a blank white flash)
========================================================= */
#page-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--orange);
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.15s ease;
}
#page-loading-bar.is-loading {
  opacity: 1;
  animation: ayelinklux-loading-sweep 1.1s ease-in-out infinite;
}
@keyframes ayelinklux-loading-sweep {
  0%   { width: 0%; margin-left: 0%; }
  50%  { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-primary, .btn-secondary, .btn-white, .btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), #1a2f5c);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(27,46,94,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange), #ff6b3b);
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(244,123,32,0.4);
}
.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: var(--white);
  color: var(--text-dark);
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(27,46,94,0.08);
}
.btn-secondary:hover {
  background: var(--white);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 8px 24px rgba(244,123,32,0.2);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: rgba(255,255,255,0.95);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--orange);
  color: var(--orange);
}

/* =========================================================
   SECTION BASICS
========================================================= */
.section {
  padding: 80px 40px;
  max-width: 1600px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.pricing-section .section-header {
  margin-bottom: 24px;
}
.section-label {
  display: inline-block;
  background: rgba(244,123,32,0.1);
  color: var(--orange);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: 42px;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 680px;
  margin: 12px auto 0;
  line-height: 1.7;
  font-weight: 500;
}

/* =========================================================
   FEATURE CARDS (used on Home + Features pages)
========================================================= */
.features-section {
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(27,46,94,0.1);
  border-color: var(--orange);
}
.feature-icon {
  font-size: 44px;
  color: var(--orange);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

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

/* =========================================================
   PRICING CARDS & FAQ ACCORDION (used on Home + Pricing/How-It-Works pages)
========================================================= */
.pricing-section {
  background: var(--white);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1600px;
  margin: 16px auto 0;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.pricing-card.featured {
  border-color: var(--orange);
  transform: scale(1.02);
  box-shadow: 0 24px 60px rgba(244,123,32,0.2);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 2px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}
.pricing-badge.featured-badge {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.pricing-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 16px;
}
.pricing-amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 24px;
}
.pricing-amount span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
  text-align: left;
}
.pricing-features li {
  padding: 12px 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pricing-features li:last-child {
  border-bottom: none;
}
.pricing-features i {
  color: #4cb050;
  font-size: 16px;
}
.pricing-actions {
  display: flex;
  gap: 12px;
  flex-direction: row;
}
.pricing-actions a {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  text-align: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-trial-info {
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f6 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.pricing-trial-info h3 {
  margin-bottom: 16px;
  font-size: 22px;
  color: var(--text-dark);
}
.pricing-trial-info p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 15px;
}

/* =========================================================
   FAQ SECTION
========================================================= */
.faq-section {
  background: var(--white);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 60px auto 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 20px;
  background: var(--off-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}
.faq-question:hover {
  background: rgba(244,123,32,0.08);
}
.faq-question h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  text-align: left;
}
.faq-question i {
  color: var(--orange);
  font-size: 14px;
  transition: transform 0.3s;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}
.faq-answer p {
  margin: 0;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: scale(1.02); }
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .faq-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   GENERAL RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .section { padding: 60px 24px; }
  .section-title { font-size: 32px; }
  .section-sub { font-size: 16px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .section { padding: 40px 16px; }
  .section-title { font-size: 28px; }
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 14px; }
}