/* ============================================================
   softpages.in — Design System (Mastercard-inspired aesthetic)
   Reference: DESIGN.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* ─── Design Tokens ─── */
:root {
  --ink:       #141413;
  --charcoal:  #262627;
  --slate:     #696969;
  --dust:      #D1CDC7;
  --blue:      #3860BE;
  --cream:     #F3F0EE;
  --lifted:    #FCFBFA;
  --bone:      #F4F4F4;
  --signal:    #F37338;
  --orange:    #CF4500;
  --shadow-nav:  rgba(0,0,0,0.04) 0px 4px 24px;
  --shadow-card: rgba(0,0,0,0.08) 0px 24px 48px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Sofia Sans', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* ─── Typography ─── */
.t-h1  { font-size: 40px;  line-height: 44px;   font-weight: 500; letter-spacing: -0.02em; }
.t-h2  { font-size: 28px;  line-height: 36px;   font-weight: 500; letter-spacing: -0.02em; }
.t-h3  { font-size: 20px;  line-height: 24px;   font-weight: 500; letter-spacing: -0.02em; }
.t-eye { font-size: 12px;  line-height: 14px;   font-weight: 700; letter-spacing: 0.04em;  text-transform: uppercase; }
.t-bod { font-size: 16px;  line-height: 22.4px; font-weight: 400; }
.t-nav { font-size: 16px;  line-height: 16px;   font-weight: 500; letter-spacing: -0.03em; }
.t-ft  { font-size: 14px;  line-height: 20px;   font-weight: 400; }
.t-fth { font-size: 12px;  line-height: 14px;   font-weight: 700; letter-spacing: 0.04em;  text-transform: uppercase; }

@media (min-width: 768px) {
  .t-h1  { font-size: 64px; line-height: 64px; }
  .t-h2  { font-size: 36px; line-height: 44px; }
  .t-h3  { font-size: 24px; line-height: 28.8px; }
  .t-eye { font-size: 14px; }
}

/* ─── Layout ─── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .wrap { padding: 0 48px; } }

.page-body { padding-top: 128px; }

/* ─── Navigation ─── */
.site-header {
  position: fixed; top: 20px; left: 0; right: 0; z-index: 50;
  padding: 0 16px;
}
@media (min-width: 768px) { .site-header { padding: 0 24px; } }

.nav-pill {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: var(--shadow-nav);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1024px;
  margin: 0 auto;
}
@media (min-width: 768px) { .nav-pill { padding: 12px 40px; } }

.nav-brand { font-weight: 500; font-size: 14px; color: var(--ink); letter-spacing: -0.02em; flex-shrink: 0; }
.nav-brand span { color: var(--signal); }

.nav-links { display: none; gap: 40px; align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; transition: color 0.2s; }
.nav-links a:hover { color: var(--slate); }

.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-block; } }

.nav-hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(20,20,19,0.2);
  background: white;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--cream); }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

.mobile-menu {
  display: none; margin-top: 8px;
  background: white; border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-width: 1024px; margin-left: auto; margin-right: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 24px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--cream); }
.mobile-menu-cta { padding: 12px 24px 16px; border-top: 1px solid rgba(20,20,19,0.1); margin-top: 8px; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  background: var(--ink); color: var(--cream);
  border: 1.5px solid var(--ink); border-radius: 20px;
  padding: 6px 24px;
  font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.02em;
  transition: opacity 0.2s; cursor: pointer;
}
.btn-primary:hover { opacity: 0.8; }

.btn-secondary {
  display: inline-block;
  background: white; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 20px;
  padding: 6px 24px;
  font-family: inherit; font-size: 16px; font-weight: 400; line-height: 20.8px;
  transition: background 0.2s; cursor: pointer;
}
.btn-secondary:hover { background: var(--cream); }

/* ─── Eyebrow Label ─── */
.eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.eyebrow-dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; flex-shrink: 0; }
.eyebrow-dot-sm { width: 6px; height: 6px; background: var(--signal); border-radius: 50%; flex-shrink: 0; }

/* ─── Section ─── */
.section { max-width: 1280px; margin: 0 auto; padding: 64px 24px; }
@media (min-width: 768px) { .section { padding: 96px 48px; } }

.section-divider { border-top: 1px solid rgba(20,20,19,0.2); padding-top: 48px; }
@media (min-width: 768px) { .section-divider { padding-top: 64px; } }

/* ─── Hero Layout ─── */
.hero-layout {
  display: flex; flex-direction: column-reverse; gap: 48px; align-items: flex-start;
}
@media (min-width: 768px) { .hero-layout { flex-direction: row; gap: 96px; } }

.hero-content { flex: 1; max-width: 768px; }

.hero-image {
  width: 192px; height: 192px;
  border-radius: 40px; overflow: hidden;
  border: 1px solid rgba(20,20,19,0.1); flex-shrink: 0;
}
@media (min-width: 768px) { .hero-image { width: 288px; height: 288px; } }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ─── Stats Bar ─── */
.stats-bar {
  display: flex;
  border: 1px solid var(--ink); border-radius: 40px;
  overflow: hidden; max-width: 420px;
  margin-bottom: 48px;
}
.stat-cell { flex: 1; padding: 24px; border-right: 1px solid var(--ink); }
.stat-cell:last-child { border-right: none; }
.stat-num { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.stat-lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }

/* ─── CTA Row ─── */
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ─── White Card ─── */
.card {
  background: white; border: 1px solid rgba(20,20,19,0.1);
  border-radius: 40px; padding: 32px;
}
@media (min-width: 768px) { .card { padding: 48px; } }

.card-solid {
  background: white; border: 1px solid var(--ink);
  border-radius: 40px; padding: 40px;
}

.card-flex {
  display: flex; flex-direction: column; gap: 32px; align-items: flex-start;
}
@media (min-width: 768px) { .card-flex { flex-direction: row; align-items: center; justify-content: space-between; } }

.card-icon {
  width: 48px; height: 48px; background: var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-icon span { color: var(--cream); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; }

/* ─── Tag / Status Badge ─── */
.tag {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }

.badge-live    { color: #15803d; border: 1px solid #86efac; background: #f0fdf4; }
.badge-active  { color: #c2410c; border: 1px solid var(--signal); background: #fff7ed; }
.badge-built   { color: var(--slate); border: 1px solid var(--dust); background: var(--bone); }
.badge-paused  { color: var(--slate); border: 1px solid var(--dust); background: var(--bone); }
.badge-live   .badge-dot { background: #22c55e; }
.badge-active .badge-dot { background: var(--signal); }
.badge-built  .badge-dot { background: var(--slate); }
.badge-paused .badge-dot { background: var(--dust); }

/* ─── Breadcrumb ─── */
.breadcrumb {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--slate);
}
@media (min-width: 768px) { .breadcrumb { padding: 16px 48px; } }
.breadcrumb a:hover { color: var(--ink); }
.bc-sep { color: var(--dust); }

/* ─── Projects Grid ─── */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background: white; border: 1px solid var(--ink); border-radius: 40px;
  padding: 40px; display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.project-card:hover { box-shadow: var(--shadow-card); }

.project-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.project-card-year { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.project-card-name { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 24px; margin-bottom: 16px; }
@media (min-width: 768px) { .project-card-name { font-size: 24px; line-height: 28.8px; } }
.project-card-desc { font-size: 16px; line-height: 22.4px; color: var(--charcoal); margin-bottom: 32px; flex: 1; }
.project-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--ink);
  margin-top: auto;
}

/* ─── Stats Grid (projects page) ─── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid-num { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
@media (min-width: 768px) { .stats-grid-num { font-size: 36px; } }

/* ─── FAQ Accordion ─── */
.faq-list { margin-top: 32px; }
.faq-item { border-top: 1px solid rgba(20,20,19,0.2); }
.faq-item:last-child { border-bottom: 1px solid rgba(20,20,19,0.2); }
details > summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer;
  font-size: 16px; font-weight: 500; color: var(--ink);
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: '+'; font-size: 20px; font-weight: 300; flex-shrink: 0; margin-left: 16px; }
details[open] > summary::after { content: '−'; }
.faq-body { padding: 0 0 20px; font-size: 16px; line-height: 22.4px; color: var(--charcoal); }

/* ─── Project Detail Page ─── */
.proj-hero-section { max-width: 1280px; margin: 0 auto; padding: 48px 24px 32px; }
@media (min-width: 768px) { .proj-hero-section { padding: 64px 48px 48px; } }

.proj-section {
  max-width: 1280px; margin: 0 auto; padding: 48px 24px;
  border-top: 1px solid rgba(20,20,19,0.2);
}
@media (min-width: 768px) { .proj-section { padding: 64px 48px; } }

.proj-section-h { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 24px; }
@media (min-width: 768px) { .proj-section-h { font-size: 36px; } }

.prose-list { list-style: disc; padding-left: 24px; }
.prose-list li { font-size: 16px; line-height: 22.4px; color: var(--charcoal); margin-bottom: 8px; }
.prose-p { font-size: 16px; line-height: 22.4px; color: var(--charcoal); }

/* ─── Quick Facts ─── */
.quick-facts { max-width: 1280px; margin: 0 auto; padding: 0 24px 32px; }
@media (min-width: 768px) { .quick-facts { padding: 0 48px 48px; } }

.quick-facts-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  background: white; border: 1px solid rgba(20,20,19,0.1);
  border-radius: 40px; padding: 32px;
}
@media (min-width: 768px) { .quick-facts-grid { grid-template-columns: repeat(4, 1fr); padding: 48px; } }

.fact-lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.fact-val { font-size: 14px; font-weight: 400; color: var(--ink); line-height: 1.6; }
.fact-val a { color: var(--blue); }
.fact-val a:hover { text-decoration: underline; }

/* ─── Related Projects ─── */
.related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

.related-card {
  background: white; border: 1px solid rgba(20,20,19,0.1); border-radius: 40px;
  padding: 32px; display: block; transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: var(--shadow-card); }
.related-card-name { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--ink); }
.related-card-desc { font-size: 14px; line-height: 20px; color: var(--charcoal); margin-bottom: 16px; }
.related-card-cta { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }

/* ─── Contact Page ─── */
.contact-row { display: flex; flex-direction: column; gap: 8px; padding: 32px 0; border-top: 1px solid rgba(20,20,19,0.2); }
@media (min-width: 640px) { .contact-row { flex-direction: row; gap: 32px; align-items: center; } }
.contact-lbl { display: flex; align-items: center; gap: 8px; min-width: 128px; }

/* ─── Footer ─── */
.site-footer { background: var(--ink); color: white; margin-top: 128px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 64px 24px 80px; }
@media (min-width: 768px) { .footer-inner { padding: 96px 48px 144px; } }

.footer-hl {
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
  color: white; margin-bottom: 64px; max-width: 400px;
}
@media (min-width: 768px) { .footer-hl { font-size: 36px; } }

.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 64px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-col-h { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); margin-bottom: 20px; }

.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2); padding-top: 32px;
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

.footer-copy { font-size: 14px; color: rgba(255,255,255,0.5); }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: white; transition: background 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.1); }

/* ─── Utilities ─── */
.text-slate   { color: var(--slate); }
.text-charcoal{ color: var(--charcoal); }
.text-blue    { color: var(--blue); }
.text-ink     { color: var(--ink); }
.text-white   { color: white; }
.font-medium  { font-weight: 500; }
.leading-relaxed { line-height: 1.7; }
.max-w-2xl  { max-width: 672px; }
.max-w-3xl  { max-width: 768px; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.hover-underline:hover { text-decoration: underline; }
.whitespace-nowrap { white-space: nowrap; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.border-t { border-top: 1px solid rgba(20,20,19,0.2); }
.pt-12 { padding-top: 48px; }
.pb-24 { padding-bottom: 96px; }
