/* ============================================
   DOOM DRIVEN DEVELOPMENT — Stylesheet
   Mobile-first: base = mobile, min-width adds tablet/desktop
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  /* logo | nav (flex-1, centered) | cta-button */
}

.site-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
}

.site-logo span { color: #FF3E74; }

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* Nav links hidden on mobile */
.site-nav a {
  display: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.site-nav a:hover { opacity: 1; }

.btn-fill {
  background: #FF3E74;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* Hero_Img as CSS background; Hero_Img@2x served via image-set */
  background-image: url('assets/Hero_Img.png');
  background-image: -webkit-image-set(url('assets/Hero_Img.png') 1x, url('assets/Hero_Img@2x.png') 2x);
  background-image:         image-set(url('assets/Hero_Img.png') 1x, url('assets/Hero_Img@2x.png') 2x);
  background-size: cover;
  background-position: center top;
}

/* Black overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1;
}

/* Content aligned to article-wrap width */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 90px 20px 36px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 12px;
  margin-bottom: 10px;
}

.hero-label i { color: #FF3E74; }

.hero-title {
  color: #fff;
  line-height: 1.1;
}

.hero-title .light {
  font-size: 24px;
  font-weight: 400;
  display: block;
}

.hero-title .bold {
  font-size: 36px;
  font-weight: 800;
  display: block;
}

/* ============================================
   ARTICLE WRAPPER
   ============================================ */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

/* Author card */
.author-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #888;
  overflow: hidden;
}

.author-avatar i { font-size: 28px; color: #999; margin-top: 6px; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.author-info { flex: 1 1 0; min-width: 0; }

.author-name {
  font-weight: 700;
  font-size: 15px;
  color: #222;
}

.author-title {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* Meta wraps to its own row on mobile */
.author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 100%;
  padding-top: 4px;
}

.author-articles {
  font-size: 12px;
  color: #888;
  text-align: center;
  white-space: nowrap;
}

.author-articles strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.btn-linkedin {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0077B5;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-linkedin:hover { background: #005f93; }

/* Body text */
.article-body p {
  margin-bottom: 18px;
  color: #555;
  font-size: 15px;
}

/* Blockquote */
.article-quote {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 22px 20px;
  margin: 28px 0;
  text-align: center;
}

.article-quote p {
  font-style: italic;
  font-size: 15px;
  color: #444;
  margin: 0;
}

/* Section heading */
.section-heading {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  margin: 28px 0 16px;
}

/* ============================================
   NUMBERED LISTS
   ============================================ */
.rule-list, .benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.rule-list li, .benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  padding: 16px 18px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.rule-num, .benefit-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-top: 2px;
}

.rule-num   { background: #FF3E74; }
.benefit-num { background: #7B5CB8; }

.rule-list li p, .benefit-list li p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.rule-list li p strong, .benefit-list li p strong {
  color: #222;
  font-weight: 700;
}

/* ============================================
   SHARE CTA SECTION
   ============================================ */
.share-section {
  background: #FF3E74;
  padding: 48px 20px;
  text-align: center;
}

.share-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.btn-share {
  display: inline-block;
  padding: 14px 32px;
  background: #FF3E74;
  color: #FFF;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

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

/* ============================================
   ACCEPTED EXPERIENCE CARDS
   ============================================ */
.cards-section {
  padding: 40px 20px;
  background: #fff;
}

.cards-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }

.card-company {
  font-weight: 700;
  font-size: 15px;
  color: #FF3E74;
  margin-bottom: 14px;
}

.card-field { margin-bottom: 8px; }

.card-field-label {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.card-field-value {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  font-weight: 700;
}

.card-status.success { color: #2ECC71; }
.card-status.failure { color: #E74C3C; }
.card-status i { font-size: 14px; }

.load-more {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Poppins', sans-serif;
  padding: 8px 0;
  min-height: 44px;
  transition: color 0.2s;
}

.load-more:hover { color: #FF3E74; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #fff;
  color: #222;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-contact-icon {
  width: 44px;
  height: 44px;
  background: #FF3E74;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.footer-contact-label {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-contact-value {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  word-break: break-all;
}

.footer-bottom {
  background: #111120;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-bottom-logo {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-bottom-logo span { color: #FF3E74; }

.footer-copy {
  font-size: 11px;
  color: #666;
}

.footer-social {
  display: flex;
  gap: 4px;
}

.footer-social a {
  color: #666;
  font-size: 14px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.footer-social a:hover { color: #FF3E74; }

/* ============================================
   OVERLAYS & MODALS
   ============================================ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 500;
  align-items: flex-end;   /* bottom sheet on mobile */
  justify-content: center;
}

.overlay.active { display: flex; }

.modal {
  background: #fff;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 24px 32px;
  border-radius: 12px 12px 0 0;
  position: relative;
}

/* Form modal */
.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #FF3E74;
  margin-bottom: 24px;
}

.modal input,
.modal select {
  display: block;
  width: 100%;
  /* 16px minimum prevents iOS auto-zoom on focus */
  font-size: 16px;
  padding: 15px 16px;
  background: #f5f5f5;
  border: none;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  color: #555;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 2px;
}

.modal input::placeholder { color: #aaa; }

.modal select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.btn-continue {
  display: block;
  width: 100%;
  padding: 16px;
  background: #FF3E74;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  min-height: 52px;
  transition: background 0.2s;
}

.btn-continue:hover { background: #e02e62; }

/* Card detail modal */
.modal-card { padding: 32px 24px; }

.modal-card .modal-company {
  font-size: 20px;
  font-weight: 700;
  color: #FF3E74;
  margin-bottom: 24px;
}

.modal-card .modal-field { margin-bottom: 18px; }

.modal-card .modal-field-label {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
}

.modal-card .modal-field-value {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.modal-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: 700;
}

.modal-status.success { color: #2ECC71; }
.modal-status.failure { color: #E74C3C; }

/* ============================================
   TABLET  ≥ 600px
   ============================================ */
@media (min-width: 600px) {
  /* Header */
  .site-header { padding: 18px 32px; }
  .site-nav { gap: 24px; }
  .site-nav a { display: block; }
  .btn-fill { font-size: 13px; padding: 10px 22px; }

  /* Hero */
  .hero { min-height: 380px; }
  .hero-content { padding: 110px 32px 48px; }
  .hero-title .light { font-size: 30px; }
  .hero-title .bold  { font-size: 48px; }
  .hero-label { font-size: 13px; }

  /* Article */
  .article-wrap { padding: 40px 32px 52px; }
  .article-quote { padding: 26px 32px; }
  .article-quote p { font-size: 16px; }
  .section-heading { font-size: 16px; }

  /* Author card — meta back inline */
  .author-card { flex-wrap: nowrap; }
  .author-meta { flex: 0 0 auto; padding-top: 0; }

  /* Cards */
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cards-section { padding: 52px 32px; }
  .cards-section h2 { font-size: 22px; margin-bottom: 28px; }

  /* Share */
  .share-section { padding: 56px 32px; }
  .share-section h2 { font-size: 22px; }

  /* Footer */
  .site-footer { padding: 36px 32px; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 14px 32px;
  }
  .footer-contact-value { word-break: normal; }

  /* Modal — centered dialog */
  .overlay { align-items: center; padding: 24px; }
  .modal { max-width: 440px; border-radius: 0; padding: 40px 40px 36px; max-height: 90vh; }
  .modal-card { padding: 40px; }
  .modal-title { font-size: 24px; margin-bottom: 28px; }
  .modal-card .modal-company { font-size: 22px; margin-bottom: 28px; }
}

/* ============================================
   DESKTOP  ≥ 960px
   ============================================ */
@media (min-width: 960px) {
  /* Header */
  .site-header { padding: 22px 60px; }
  .site-nav { gap: 36px; }
  .btn-fill { padding: 10px 24px; }

  /* Hero */
  .hero { min-height: 440px; }
  .hero-image {
    display: block;
    position: absolute;
    right: 80px;
    bottom: 0;
    height: 100%;
    max-height: 440px;
    object-fit: contain;
    object-position: bottom;
    opacity: 0.85;
  }
  .hero-content { padding: 140px 60px 60px; max-width: 640px; }
  .hero-title .light { font-size: 36px; }
  .hero-title .bold  { font-size: 56px; }

  /* Article */
  .article-wrap { padding: 50px 24px 60px; }
  .article-quote { padding: 30px 40px; }
  .article-quote p { font-size: 17px; }
  .section-heading { margin: 32px 0 20px; }

  /* Cards */
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cards-section { padding: 60px 40px; }

  /* Share */
  .share-section { padding: 60px 24px; }

  /* Footer */
  .site-footer { grid-template-columns: 1fr 1fr; padding: 40px 60px; }
  .footer-contact-icon { width: 46px; height: 46px; font-size: 18px; }
  .footer-contact-value { font-size: 15px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; padding: 16px 60px; text-align: left; }

  /* Modal */
  .modal { padding: 48px 44px 44px; }
  .modal-card { padding: 44px; }
  .modal-title { font-size: 26px; }
  .modal-card .modal-company { font-size: 22px; }
  .modal-card .modal-field { margin-bottom: 20px; }
  .modal-status { font-size: 17px; }
}
