/* ==========================================================================
   ViralCraft — Page-specific components (About / Services / Contact)
   ========================================================================== */

/* ---- About: story ---- */
.story-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); align-items: start; }
.story-copy p{ margin-bottom: var(--sp-md); color: var(--muted-on-light); font-size: 16px; }
.story-copy p:last-child{ margin-bottom: 0; }
.story-list{ display: flex; flex-direction: column; gap: var(--sp-sm); }
.story-list li{ display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.story-list svg{ width: 18px; height: 18px; stroke: var(--accent-dark); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px){ .story-grid{ grid-template-columns: 1fr; } }

/* ---- About: mission statement ---- */
.mission{ text-align: center; }
.mission-statement{ font-size: clamp(24px, 3.4vw, 38px); color: var(--white); max-width: 22ch; margin-inline: auto; margin-bottom: var(--sp-lg); font-weight: 700; line-height: 1.2; }
.mission-tags{ display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mission-tags span{ border: 1px solid var(--line-on-navy); border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--white); font-weight: 500; }

/* ---- About: difference grid ---- */
.diff-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.diff-card .num{ font-size: 13px; font-weight: 800; color: var(--accent-dark); letter-spacing: .06em; margin-bottom: var(--sp-sm); display: block; }
.diff-card h3{ font-size: 18px; margin-bottom: 8px; }
.diff-card p{ font-size: 14.5px; color: var(--muted-on-light); }
@media (max-width: 900px){ .diff-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .diff-grid{ grid-template-columns: 1fr; } }

/* ---- About: values ---- */
.values-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.value-card{ text-align: left; }
.value-card .icon-wrap{ width: 50px; height: 50px; border-radius: var(--r-sm); background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-sm); }
.value-card .icon-wrap svg{ width: 24px; height: 24px; stroke: var(--accent); }
.value-card h3{ font-size: 18px; margin-bottom: 6px; }
.value-card p{ font-size: 14px; color: var(--muted-on-light); }
@media (max-width: 900px){ .values-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .values-grid{ grid-template-columns: 1fr; } }

/* ---- About: approach timeline ---- */
.timeline{ display: flex; flex-direction: column; }
.timeline-item{
  display: grid; grid-template-columns: 90px 1fr; gap: var(--sp-md); padding-block: var(--sp-md);
  border-top: 1px solid var(--line-on-light); cursor: pointer;
}
.timeline-item:last-child{ border-bottom: 1px solid var(--line-on-light); }
.timeline-item .step-num{ font-size: 28px; font-weight: 800; color: var(--surface); transition: color var(--dur-med) var(--ease); }
.timeline-item.is-active .step-num{ color: var(--accent-dark); }
.timeline-item h4{ font-size: 18px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.timeline-item p{
  font-size: 14.5px; color: var(--muted-on-light); max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease), margin var(--dur-med) var(--ease);
}
.timeline-item.is-active p{ max-height: 200px; opacity: 1; margin-top: 6px; }
.timeline-item .chevron{ width: 16px; height: 16px; stroke: var(--navy); transition: transform var(--dur-fast) var(--ease); flex-shrink: 0; margin-left: auto; }
.timeline-item.is-active .chevron{ transform: rotate(90deg); }

/* ---- Services: detail cards ---- */
.service-detail{
  display: grid; grid-template-columns: 210px 1fr; gap: var(--sp-lg); align-items: start;
  padding-block: var(--sp-xl); border-top: 1px solid var(--line-on-light);
}
.service-detail:last-child{ border-bottom: 1px solid var(--line-on-light); }
.service-detail .sd-label{ display: flex; align-items: center; gap: var(--sp-sm); }
.service-detail .sd-num{ font-size: 15px; font-weight: 800; color: var(--accent-dark); }
.service-detail .icon-wrap{ width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.service-detail .icon-wrap svg{ width: 26px; height: 26px; stroke: var(--navy); }
.service-detail h3{ font-size: 25px; margin-bottom: 10px; }
.service-detail p.sd-desc{ font-size: 16px; color: var(--muted-on-light); margin-bottom: var(--sp-md); max-width: 60ch; }
.sd-focus{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--sp-md); }
.sd-focus span{ font-size: 13px; font-weight: 500; background: var(--surface-2); border-radius: 999px; padding: 6px 14px; color: var(--navy); }
.service-detail .arrow-link{ display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--navy); }
.service-detail .arrow-link svg{ width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.service-detail:hover .arrow-link svg{ transform: translateX(4px); }
@media (max-width: 760px){ .service-detail{ grid-template-columns: 1fr; } .service-detail .sd-label{ margin-bottom: var(--sp-sm); } }

/* ---- Services: connection section ---- */
.combo-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); }
.combo-chip{
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: var(--sp-md); font-weight: 600; font-size: 14.5px; color: var(--white);
  border: 1px solid var(--line-on-navy); border-radius: var(--r-md); background: rgba(255,255,255,0.03);
}
.combo-chip .plus{ color: var(--accent); font-weight: 800; }
@media (max-width: 900px){ .combo-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .combo-grid{ grid-template-columns: 1fr; } }

/* ---- Services: how it works (5 large steps) ---- */
.how-grid{ display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-sm); }
.how-step .step-num{ font-size: 42px; font-weight: 800; color: var(--surface); display: block; margin-bottom: var(--sp-sm); }
.how-step h4{ font-size: 17px; margin-bottom: 6px; }
.how-step p{ font-size: 14px; color: var(--muted-on-light); }
@media (max-width: 980px){ .how-grid{ grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-lg); } }
@media (max-width: 560px){ .how-grid{ grid-template-columns: 1fr 1fr; } }

/* ---- FAQ accordion ---- */
.faq-list{ max-width: var(--container-narrow); margin-inline: auto; }
.faq-item{ border-top: 1px solid var(--line-on-light); }
.faq-item:last-child{ border-bottom: 1px solid var(--line-on-light); }
.faq-q{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md);
  padding-block: var(--sp-md); text-align: left; font-size: 17px; font-weight: 600; color: var(--navy);
}
.faq-q .chevron{ width: 20px; height: 20px; stroke: var(--navy); flex-shrink: 0; transition: transform var(--dur-fast) var(--ease); }
.faq-item.is-open .faq-q .chevron{ transform: rotate(180deg); }
.faq-a{
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease), padding var(--dur-med) var(--ease);
}
.faq-a p{ padding-bottom: var(--sp-md); font-size: 15px; color: var(--muted-on-light); max-width: 68ch; }
.faq-item.is-open .faq-a{ max-height: 320px; opacity: 1; }

/* ---- Contact: layout ---- */
.contact-grid{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-2xl); align-items: start; }
@media (max-width: 980px){ .contact-grid{ grid-template-columns: 1fr; } }

.form-card{ background: var(--white); border: 1px solid var(--line-on-light); border-radius: var(--r-md); padding: var(--sp-lg); }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.form-field{ margin-bottom: var(--sp-sm); }
.form-field label{ display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field .req{ color: var(--danger); }
.form-field input, .form-field textarea, .form-field select{
  width: 100%; border: 1.5px solid rgba(0,22,122,0.2); border-radius: var(--r-sm); padding: 13px 15px; font-size: 15px;
  background: var(--white); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,22,122,0.1);
}
.form-field textarea{ resize: vertical; min-height: 130px; }
.form-field.has-error input, .form-field.has-error textarea{ border-color: var(--danger); }
.form-error{ color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }
.form-field.has-error .form-error{ display: block; }
.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status{ border-radius: var(--r-sm); padding: 14px 16px; font-size: 14.5px; font-weight: 500; margin-bottom: var(--sp-md); display: none; }
.form-status.is-visible{ display: block; }
.form-status.success{ background: rgba(37,211,102,0.1); color: #0d7a3d; border: 1px solid rgba(37,211,102,0.35); }
.form-status.error{ background: rgba(179,38,30,0.08); color: var(--danger); border: 1px solid rgba(179,38,30,0.3); }

.contact-info-card{ background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-lg); margin-bottom: var(--sp-md); }
.info-row{ display: flex; gap: 14px; align-items: flex-start; padding-block: var(--sp-sm); border-top: 1px solid rgba(0,22,122,0.1); }
.info-row:first-child{ border-top: none; padding-top: 0; }
.info-row .icon-wrap{ width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-row .icon-wrap svg{ width: 19px; height: 19px; stroke: var(--accent); }
.info-row h5{ font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-on-light); margin-bottom: 3px; font-weight: 700; }
.info-row p{ font-size: 15px; color: var(--ink); font-weight: 500; }

.map-frame{ border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-on-light); aspect-ratio: 16/10; background: var(--surface); position: relative; }
.map-frame iframe{ width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--muted-on-light); font-size: 14px; text-align: center; padding: var(--sp-md); }
.map-placeholder svg{ width: 30px; height: 30px; stroke: var(--navy); }

@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } .form-card, .contact-info-card{ padding: var(--sp-md); } }
