/* ==========================================================================
   OpenSoftwares — Pages Stylesheet (css/pages.css)
   Applied to: about.html, schoolmate.html, contact.html
   Design: "Paper, Ink and Saffron"
   ========================================================================== */

/* Page-level padding for the floating pill nav */
.inner-page { padding-top: calc(56px + 16px + 40px); }

/* -------------------------------------------------------------------------
   Page Hero (inner pages)
   ------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s3);
  display: block;
}

.page-hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
  margin-bottom: var(--s3);
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 56ch;
}

/* -------------------------------------------------------------------------
   About Page
   ------------------------------------------------------------------------- */

/* Mission/Vision two-column */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  padding: var(--s6) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; gap: var(--s4); }
}

.mission-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--s2);
}

.mission-item p { font-size: 1rem; }

/* Value rows */
.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.values-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s3);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.values-item:first-child { border-top: 1px solid var(--line); }

.values-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--saffron);
  line-height: 1;
  padding-top: 4px;
}

.values-content h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.values-content p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Milestone timeline */
.timeline {
  position: relative;
  padding-left: var(--s6);
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--s5);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--s6) - 4px);
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--saffron);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--saffron);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--saffron);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Schoolmate Product Page
   ------------------------------------------------------------------------- */

/* Feature split sections (supports .feature-split and .feature-split-section) */
.feature-split,
.feature-split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(50px, 7vw, 90px) 0;
  border-bottom: 1px solid var(--line);
}

.feature-split.flip > :first-child,
.feature-split-section.flip > :first-child { order: 2; }
.feature-split.flip > :last-child,
.feature-split-section.flip > :last-child  { order: 1; }

@media (max-width: 900px) {
  .feature-split,
  .feature-split-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: clamp(36px, 6vw, 60px) 0;
  }
  .feature-split.flip > :first-child,
  .feature-split-section.flip > :first-child { order: 0; }
  .feature-split.flip > :last-child,
  .feature-split-section.flip > :last-child  { order: 0; }
}

.feature-split-text .section-label,
.split-content .section-badge { margin-bottom: var(--s2); }

.feature-split-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--s3);
}

.feature-split-desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: var(--s4);
}

.split-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.split-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.split-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--midnight);
  margin-top: 2px;
}
.split-icon svg,
.split-icon .svg-icon,
.split-icon .icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  flex-shrink: 0;
}

.split-visual {
  background: var(--paper-2);
  border-radius: var(--r-card, 16px);
  border: 1px solid var(--line);
  padding: clamp(16px, 3vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11,22,48,0.04);
}
.split-visual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-icon svg { width: 10px; height: 10px; stroke: var(--midnight); stroke-width: 2.5; fill: none; }

/* Feature illustration box */
.feature-visual {
  background: var(--paper-2);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--s3);
}

.feature-visual img, .feature-visual svg {
  max-width: 100%;
  max-height: 100%;
}

/* FAQ Section */
.faq-section { background: var(--paper-2); }
.faq-container {
  max-width: 820px;
  margin: 32px auto 0 auto;
}

.faq-list { margin: 0; padding: 0; list-style: none; }

.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-fast);
}
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 20px 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  transition: color var(--dur-fast);
}

.faq-question:hover { color: var(--midnight); }

.faq-chevron,
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  transition: transform 0.3s var(--ease-out);
}
.faq-chevron svg,
.faq-chevron .svg-icon,
.faq-icon svg,
.faq-icon .svg-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  max-height: 18px;
}

.faq-item.active .faq-chevron,
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--midnight); }

.faq-answer {
  display: none;
  padding: 0 0 20px;
}
.faq-item.active .faq-answer { display: block; }

.faq-answer {
  display: none;
  padding: 0 0 var(--s3);
}
.faq-item.active .faq-answer { display: block; }

.faq-answer p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
   Contact Page
   ------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--s4); }
}

.contact-info-block { }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}

.contact-info-item:first-child { border-top: 1px solid var(--line); }

.contact-info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.contact-info-value:hover { color: var(--saffron); }

/* Contact / Demo Form */
.demo-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s4);
}

.form-group {
  margin-bottom: var(--s3);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  font-family: var(--font-sans);
}

.form-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14,14,16,0.06);
}

.form-input.is-invalid {
  border-color: var(--danger);
}

.form-error {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

textarea.form-input {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
}

.form-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  font-size: 0.95rem;
  color: var(--ink);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color var(--dur-fast);
  appearance: none;
  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 d='M1 1l5 5 5-5' stroke='%238A8A92' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-select:focus { outline: none; border-color: var(--ink); }

/* Success Banner */
.demo-success-banner {
  display: none;
  text-align: center;
  padding: var(--s5);
}

.demo-success-banner.active { display: block; }

.success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(47,143,107,0.12);
  border: 1px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s3);
  color: var(--success);
}

.success-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s2);
  letter-spacing: -0.025em;
}

.success-sub { font-size: 0.95rem; color: var(--ink-soft); max-width: 40ch; margin: 0 auto; }

/* -------------------------------------------------------------------------
   Contact Page Components & Layout Grid
   ------------------------------------------------------------------------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s3);
}
.section-badge .svg-icon,
.section-badge .icon {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  min-height: 14px;
}

.page-hero-content {
  text-align: left;
}
.page-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--s3);
}
.page-hero-content p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 54ch;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 991px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-card-box {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-card, 16px);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 4px 24px rgba(11,22,48,0.06);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-card, 16px);
  padding: clamp(24px, 3.5vw, 32px);
  box-shadow: 0 4px 24px rgba(11,22,48,0.06);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-method:first-of-type {
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.contact-method:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon-wrapper {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  max-height: 44px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--midnight);
  overflow: hidden;
}
.contact-icon-wrapper .svg-icon,
.contact-icon-wrapper .icon,
.contact-icon-wrapper svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  display: block;
  flex-shrink: 0;
}

.contact-method-detail {
  flex: 1;
  min-width: 0;
}
.contact-method-detail h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.contact-method-detail p {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-method-detail p a {
  color: var(--midnight);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.contact-method-detail p a:hover {
  color: var(--saffron);
}

.contact-map-card {
  background: var(--midnight);
  border-radius: var(--r-card, 16px);
  padding: 24px;
  color: #FFFFFF;
}
.map-svg-placeholder {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.map-svg-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-inner, 8px);
  font-size: 0.95rem;
  color: var(--ink);
  font-family: var(--font-sans);
  resize: vertical;
  min-height: 100px;
}
.form-textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14,14,16,0.06);
}

.form-success-banner {
  display: none;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}
.form-success-banner.active {
  display: block;
}
