/* 1. GLOBAL RESET & BASE STYLES */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background-color: #f4f4f5;
  color: #111111;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 5rem;
}

/* 2. STICKY HEADER & NAVIGATION */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: rgba(221, 221, 221, 0.25);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eaeaea;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: #111111;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.desktop-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  box-shadow: 0 10px 20px rgba(189, 4, 4, 0.205);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn .icon {
  font-size: 1rem;
  color: #e52e2e;
}

.nav-btn:hover {
  background: #f0f0f2;
  transform: translateY(-1px);
}

/* 3. PURE CSS CHECKBOX HAMBURGER DROPDOWN MENU */

.mobile-menu-wrapper {
  position: relative;
  display: block;
}

/* Hide checkbox completely using display:none to prevent browser scroll snapping */
.menu-checkbox {
  display: none;
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  color: #111111;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  background: hwb(0 80% 19%);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 250px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  z-index: 1001;

  /* Hidden by default */
  display: none;
}

/* When the checkbox is checked via the label, reveal the menu */
.menu-checkbox:checked ~ .dropdown-menu {
  display: block;
}

.dropdown-list {
  list-style: none;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #111111;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
}

.dropdown-link:hover {
  background-color: #f7f7f8;
  color: #e52e2e;
}

.dropdown-link.red-link {
  color: #e52e2e;
  font-weight: 700;
}

.dropdown-divider {
  height: 1px;
  background-color: #eaeaea;
  margin: 6px 0;
}

/* 4. HERO & LAYOUT CONTAINER */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.sub-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e52e2e;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.red-text {
  color: #e52e2e;
}

.title-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid #eaeaea;
  display: inline-block;
  width: 100%;
  max-width: 600px;
  margin: 0.5rem auto 2rem auto;
}

.main-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
}

.divider-line {
  width: 40px;
  height: 4px;
  background-color: #e52e2e;
  margin: 1.5rem auto;
  border-radius: 2px;
}

.hero-bio {
  font-size: 1.05rem;
  color: #666666;
  max-width: 760px;
  margin: 1.5rem auto 3rem auto;
  line-height: 1.7;
}

.quote-container {
  margin-top: 3rem;
}

.hero-quote {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-email {
  background-color: #e52e2e;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-email:hover {
  background-color: #ff3b3b;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #eaeaea;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
}

/* 5. CARDS & FLEXBOX GRID LAYOUT */

.content-section {
  margin-top: 6rem;
  text-align: center;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e52e2e;
  text-transform: uppercase;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 0.25rem;
  margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: left;
}

.competency-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  flex: 1 1 calc(50% - 0.75rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.full-width {
  flex: 1 1 100%;
}

.competency-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(229, 46, 46, 0.25);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background-color: rgba(17, 17, 17, 0.85);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 6px;
}

.card-image-box {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background-color: #eee;
}

.horizontal-aspect {
  height: 220px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.5s ease,
    opacity 0.3s ease;
}

.card-img-primary {
  position: relative;
  z-index: 1;
  opacity: 1;
}

.card-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
}

.competency-card:hover .card-img-hover {
  opacity: 1;
}

.competency-card:hover .card-img-primary {
  opacity: 0;
}

.competency-card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.card-icon {
  color: #e52e2e;
  font-size: 1.25rem;
}

.card-title-row h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
  transition: color 0.3s ease;
}

.competency-card:hover h3 {
  color: #e52e2e;
}

.competency-card p {
  font-size: 0.92rem;
  color: #666666;
  line-height: 1.6;
}

/* 6. TL;DR SECTION */

.tldr-section {
  scroll-margin-top: 2rem;
}

.tldr-main-heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.tldr-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid #eaeaea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.tldr-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.tldr-icon {
  font-size: 1.35rem;
  color: #e52e2e;
  margin-top: 2px;
  flex-shrink: 0;
}

.tldr-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.35rem;
}

.tldr-content p {
  font-size: 0.92rem;
  color: #666666;
  line-height: 1.6;
}

.tldr-highlight-box {
  background-color: #fef1f2;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 0.5rem;
}

/* 7. FOOTER STYLES */

.site-footer {
  margin-top: 6rem;
  background-color: #ffffff;
  border-top: 1px solid #eaeaea;
  padding: 4rem 5% 2rem 5%;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-bio {
  font-size: 0.88rem;
  color: #666666;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #e52e2e;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-list a {
  color: #111111;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #e52e2e;
}

.footer-list a.red-link {
  color: #e52e2e;
  font-weight: 700;
}

.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #666666;
}

.back-to-top {
  color: #666666;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: #e52e2e;
}

/* 8. FLOATING BUTTON & RESPONSIVE MEDIA QUERIES */

.floating-tl-dr {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #e52e2e;
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(229, 46, 46, 0.35);
  transition: all 0.3s ease;
  z-index: 999;
}

.floating-tl-dr:hover {
  transform: scale(1.1);
  background-color: #ff3b3b;
}

@media (max-width: 768px) {
  /* Hide desktop navigation buttons on mobile screens */
  .desktop-nav {
    display: none;
  }

  .competency-card {
    flex: 1 1 100%;
  }

  .horizontal-aspect {
    height: 180px;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links-group {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* 9. SHARE / QR CODE ACCORDION SECTION */

.share-section {
  scroll-margin-top: 3rem;
}

.share-accordion-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

/* Hide checkbox completely to prevent scrolling */
.share-checkbox {
  display: none;
}

.share-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.share-toggle-btn:hover {
  border-color: rgba(229, 46, 46, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.share-btn-text {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btn-text .icon {
  color: #e52e2e;
}

.share-chevron {
  color: #666666;
  transition: transform 0.3s ease;
}

.share-dropdown-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  border: 1px solid transparent;
  border-top: none;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    padding 0.3s ease;
}

.share-checkbox:checked ~ .share-toggle-btn {
  border-radius: 20px 20px 0 0;
  border-color: rgba(229, 46, 46, 0.25);
}

.share-checkbox:checked ~ .share-toggle-btn .share-chevron {
  transform: rotate(180deg);
  color: #e52e2e;
}

.share-checkbox:checked ~ .share-dropdown-panel {
  max-height: 600px;
  opacity: 1;
  border-color: rgba(229, 46, 46, 0.25);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.share-card-content {
  text-align: center;
}

.qr-modal-logo {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #e52e2e;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.qr-modal-subtitle {
  font-size: 0.88rem;
  color: #666666;
  margin-bottom: 1.25rem;
}

.qr-code-frame {
  background: #ffffff;
  border: 2px solid #fee2e2;
  border-radius: 18px;
  padding: 1rem;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.qr-img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
}

.qr-modal-footer-text {
  font-size: 0.8rem;
  color: #666666;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.qr-download-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
}
