/* ============================================
   Wilcoe Skills Page
   ============================================ */

/* --- Skills Page Variables & Base --- */

:root {
  --black: #1d1d1f;
  --white: #fbfbfd;
  --gray-50: #f5f5f7;
  --gray-100: #e8e8ed;
  --gray-200: #d2d2d7;
  --gray-400: #86868b;
  --gray-600: #6e6e73;
  --gray-800: #424245;
  --surface-dark: #023377;
  --accent: #1a459c;
  --accent-hover: #153a83;
  --navy-deep: #012169;
  --accent-orange: #f7931e;
  --accent-orange-hover: #e5830f;
  --cat-strategy: #FF6B35;
  --cat-content: #00D4AA;
  --cat-seo: #7B61FF;
  --cat-sales: #FF3366;
  --font-heading: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

/* Body background scoped to skills page only */
body:has([data-barba-namespace="skills"]) {
  background: var(--surface-dark);
  color: var(--white);
}

[data-barba-namespace="skills"] {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.skills-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Back Link --- */
.back-link {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 100;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s, background 0.3s;
}

.back-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

/* --- Label Badge --- */
.skills-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-orange);
  border: 1.5px solid rgba(247, 147, 30, 0.3);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 28px;
}

/* ============================================
   Hero
   ============================================ */
.skills-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 69, 156, 0.25) 0%, var(--surface-dark) 100%);
}

.skills-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 28px;
}

.skills-hero__accent {
  background: linear-gradient(135deg, var(--accent-orange), var(--cat-sales));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 40px;
}

.skills-hero__cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 100px;
  background: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(247, 147, 30, 0.25);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.skills-hero__cta:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(247, 147, 30, 0.35);
}

/* ============================================
   Stats Bar
   ============================================ */
.skills-stats {
  padding: 0 0 80px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  display: inline;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--accent-orange);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ============================================
   Skills Section (shared)
   ============================================ */
.skills-section {
  padding: 100px 0;
}

.skills-section--alt {
  background: var(--navy-deep);
}

.skills-section__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.skills-section__sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--gray-400);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

/* ============================================
   Category Tabs
   ============================================ */
.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.skills-tab {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.3s;
}

.skills-tab:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.skills-tab.is--active {
  color: var(--white);
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

/* ============================================
   Skills Grid
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.4s;
  opacity: 1;
}

.skill-card:hover {
  border-color: var(--gray-200);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.skill-card.is--hidden {
  display: none;
}

.skill-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.skill-card__cat--strategy {
  color: #fff;
  background: var(--cat-strategy);
}

.skill-card__cat--content {
  color: #fff;
  background: var(--cat-content);
}

.skill-card__cat--seo {
  color: #fff;
  background: var(--cat-seo);
}

.skill-card__cat--sales {
  color: #fff;
  background: var(--cat-sales);
}

.skill-card__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black);
}

.skill-card__desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ============================================
   How It Works
   ============================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.how-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.how-step:hover {
  transform: translateY(-2px);
  border-color: var(--gray-200);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.how-step__num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-orange);
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  background: rgba(247, 147, 30, 0.12);
  margin-bottom: 20px;
}

.how-step__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black);
}

.how-step__body {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ============================================
   What This Is / Isn't
   ============================================ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.compare-col {
  padding: 36px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.compare-col--not {
  border-color: var(--gray-200);
}

.compare-col--yes {
  border-color: var(--gray-200);
}

.compare-col__head {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--black);
}

.compare-col__head em {
  font-style: italic;
  opacity: 0.6;
}

.compare-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.compare-item:last-child {
  margin-bottom: 0;
}

.compare-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.compare-icon--no {
  background: rgba(255, 51, 102, 0.15);
  color: var(--cat-sales);
}

.compare-icon--yes {
  background: rgba(0, 212, 170, 0.15);
  color: var(--cat-content);
}

.compare-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--black);
}

.compare-item p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ============================================
   CTA
   ============================================ */
.skills-cta {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-dark), var(--navy-deep) 60%, rgba(247, 147, 30, 0.06));
}

.skills-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.skills-cta__sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--gray-400);
  margin-bottom: 32px;
  line-height: 1.5;
}

.skills-cta__price {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 36px;
}

.skills-cta__btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 44px;
  border-radius: 100px;
  background: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(247, 147, 30, 0.3);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.skills-cta__btn:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(247, 147, 30, 0.4);
}

.skills-cta__or {
  color: var(--gray-400);
  font-size: 14px;
  margin: 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skills-cta__book-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-orange);
  background: transparent;
  border: 2px solid var(--accent-orange);
  padding: 14px 40px;
  border-radius: 60px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.skills-cta__book-btn:hover {
  background: var(--accent-orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(247, 147, 30, 0.3);
}

/* ============================================
   Custom Build Section
   ============================================ */
.skills-custom {
  background: var(--navy-deep);
  padding: 120px 0;
}

.custom-build {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.custom-build__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.custom-build__sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 40px;
}

.custom-build__includes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 48px;
}

.custom-build__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.custom-build__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 212, 170, 0.15);
  color: var(--cat-content);
  margin-top: 1px;
}

.custom-build__price {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 32px;
}

.custom-build__btn {
  margin-bottom: 0;
}

.custom-build__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray-600);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .skills-custom {
    padding: 80px 0;
  }
  .custom-build {
    padding: 40px 24px;
  }
}

/* ============================================
   Booking Modal
   ============================================ */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.booking-modal.is--open {
  opacity: 1;
  visibility: visible;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.booking-modal__dialog {
  position: relative;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-dark, #0f1729);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 40px 40px;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-modal.is--open .booking-modal__dialog {
  transform: translateY(0) scale(1);
}

.booking-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.booking-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.booking-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  text-align: center;
}

/* Modal form card overrides */
.booking-modal .form-card {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

@media (max-width: 600px) {
  .booking-modal__dialog {
    width: 95%;
    padding: 40px 20px 28px;
    border-radius: 16px;
  }
}

/* ============================================
   Footer
   ============================================ */
.skills-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skills-footer .skills-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skills-footer p {
  font-size: 13px;
  color: var(--gray-600);
}

.skills-footer a {
  font-size: 13px;
  color: var(--gray-400);
  transition: color 0.3s;
}

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

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal-skill {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-skill.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .skills-hero {
    padding: 120px 0 60px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .back-link {
    top: 16px;
    left: 16px;
  }

  .skills-section {
    padding: 72px 0;
  }

  .skills-cta {
    padding: 80px 0;
  }

  .skills-tabs {
    gap: 6px;
  }

  .skills-tab {
    font-size: 13px;
    padding: 6px 14px;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .skills-hero__title {
    font-size: 40px;
  }

  .compare-col {
    padding: 24px;
  }
}
