/* ============================================================
   SOLUNA — pages.css
   Services, Portfolio, How-we-work, Contact page styles
   ============================================================ */

/* ════════ SERVICES ════════════════════════════════════════ */
.services-page { padding: calc(var(--nav-h) + 80px) 80px 100px; }
.services-page .page-hero { max-width: 680px; margin-bottom: 72px; }
.services-page .page-hero__sub { max-width: 540px; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.svc-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 44px 40px; position: relative; overflow: hidden; cursor: default;
  transition: all .35s cubic-bezier(.16,1,.3,1);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.svc-card__ghost-num {
  position: absolute; top: 20px; right: 26px;
  font-family: 'Fraunces', serif; font-size: 80px; font-weight: 700; font-style: italic;
  color: var(--off-2); line-height: 1; transition: color .3s;
}
.svc-card:hover .svc-card__ghost-num { color: #e6ecf5; }

.svc-card__tag  { margin-bottom: 22px; }
.svc-card__name {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700;
  color: var(--ink); line-height: 1.15; margin-bottom: 12px; letter-spacing: -.03em;
}
.svc-card__divider { height: 3px; border-radius: 3px; width: 44px; margin: 18px 0; }
.svc-card__desc { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.svc-card__list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.svc-card__list li {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 9px;
}
.svc-card__list li::before { content: '→'; color: var(--blue); font-weight: 700; font-size: 12px; flex-shrink: 0; }

/* Wide (full-width) variant */
.svc-card--wide {
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}

/* Phase tags */
.phase-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.phase--01 { background: #eff6ff; color: var(--blue); }
.phase--02 { background: #f5f3ff; color: var(--violet); }
.phase--03 { background: #f0fdf4; color: #15803d; }
.phase--04 { background: #fdf2f8; color: #be185d; }
.phase--05 { background: #ecfeff; color: #0e7490; }

@media (max-width: 1024px) {
  .services-page { padding: calc(var(--nav-h) + 48px) 40px 72px; }
  .svc-grid       { grid-template-columns: 1fr; }
  .svc-card--wide { grid-column: span 1; grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-page { padding: calc(var(--nav-h) + 36px) 20px 60px; }
}

/* ════════ PORTFOLIO ═══════════════════════════════════════ */
.portfolio-page { padding: calc(var(--nav-h) + 80px) 80px 100px; }

.port-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; margin-bottom: 52px; }
.port-filter {
  padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border-2); color: var(--muted);
  background: white; cursor: pointer; transition: all .2s;
}
.port-filter:hover   { border-color: var(--blue); color: var(--blue); }
.port-filter.active  { background: var(--ink); color: white; border-color: var(--ink); }

.port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.port-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: all .35s cubic-bezier(.16,1,.3,1);
}
.port-card:hover { transform: translateY(-8px); box-shadow: 0 28px 72px rgba(0,0,0,.13); }

.port-card__img {
  aspect-ratio: 16/11; position: relative; overflow: hidden;
}
.port-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.port-card:hover .port-card__img img { transform: scale(1.06); }
.port-card__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.55) 100%);
}
.port-card__img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 60px;
}

.port-card__tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  padding: 5px 14px; border-radius: 50px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.port-card__metric {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  padding: 5px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 800; color: var(--ink);
}

.port-card__body { padding: 26px 24px; }
.port-card__title {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 8px; letter-spacing: -.025em; line-height: 1.25;
}
.port-card__desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.port-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Featured card (col-span 2) */
.port-card--featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.port-card--featured .port-card__img { aspect-ratio: auto; }

@media (max-width: 1024px) {
  .portfolio-page { padding: calc(var(--nav-h) + 48px) 40px 72px; }
  .port-grid { grid-template-columns: 1fr 1fr; }
  .port-card--featured { grid-column: span 2; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .port-grid { grid-template-columns: 1fr; }
  .port-card--featured { grid-column: span 1; grid-template-columns: 1fr; display: block; }
}
@media (max-width: 640px) {
  .portfolio-page { padding: calc(var(--nav-h) + 32px) 20px 60px; }
}

/* ════════ HOW WE WORK ═════════════════════════════════════ */
.how-page { padding: calc(var(--nav-h) + 80px) 80px 100px; }

.how-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.how-sticky { position: sticky; top: calc(var(--nav-h) + 28px); }

.how-stats { display: flex; flex-direction: column; gap: 0; margin-top: 44px; }
.how-stat {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.how-stat:last-child { border-bottom: none; }
.how-stat__val {
  font-family: 'Fraunces', serif; font-size: 40px; font-weight: 700;
  letter-spacing: -.04em; color: var(--ink); line-height: 1;
  min-width: 100px;
}
.how-stat__val span { font-size: 22px; font-style: italic; }
.how-stat__label { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Process steps */
.steps { display: flex; flex-direction: column; padding-top: 8px; }
.step  { display: flex; gap: 24px; }
.step__spine { display: flex; flex-direction: column; align-items: center; }
.step__num {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700;
  transition: all .3s;
}
.step__num:hover { transform: scale(1.08); }
.step__line { width: 2px; flex: 1; min-height: 20px; margin: 5px auto; }
.step:last-child .step__line { display: none; }

.step--1 .step__num { background: #eff6ff; color: var(--blue); }
.step--2 .step__num { background: #f5f3ff; color: var(--violet); }
.step--3 .step__num { background: #f0fdf4; color: #16a34a; }
.step--4 .step__num { background: #fffbeb; color: var(--amber); }
.step--5 .step__num { background: #fdf2f8; color: #be185d; }

.step--1 .step__line { background: linear-gradient(to bottom, var(--blue), var(--violet)); }
.step--2 .step__line { background: linear-gradient(to bottom, var(--violet), #10b981); }
.step--3 .step__line { background: linear-gradient(to bottom, #10b981, var(--amber)); }
.step--4 .step__line { background: linear-gradient(to bottom, var(--amber), #be185d); }

.step__card {
  background: white; border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 30px; margin-bottom: 20px; flex: 1;
  transition: all .3s;
}
.step__card:hover { box-shadow: var(--sh); border-color: #bfdbfe; transform: translateX(4px); }
.step--1 .step__card { border-top: 3px solid var(--blue); }
.step--2 .step__card { border-top: 3px solid var(--violet); }
.step--3 .step__card { border-top: 3px solid #22c55e; }
.step--4 .step__card { border-top: 3px solid var(--amber); }
.step--5 .step__card { border-top: 3px solid #be185d; }

.step__card-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -.02em; }
.step__card-desc  { font-size: 14px; color: var(--muted); line-height: 1.7; }
.step__card-detail { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.step__card-detail ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.step__card-detail li { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.step__card-detail li::before { content: '·'; color: var(--blue); font-size: 18px; line-height: 1; }

/* Values strip */
.values-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 80px; }
.value-card {
  padding: 28px 24px; border-radius: var(--r); border: 1px solid var(--border);
  background: white; transition: all .3s;
}
.value-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.value-card__num {
  font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700; font-style: italic;
  margin-bottom: 12px;
}
.value-card__title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.value-card__desc  { font-size: 13px; color: var(--muted); line-height: 1.65; }

@media (max-width: 1024px) {
  .how-page { padding: calc(var(--nav-h) + 48px) 40px 72px; }
  .how-inner { grid-template-columns: 1fr; gap: 60px; }
  .how-sticky { position: static; }
  .values-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .how-page { padding: calc(var(--nav-h) + 32px) 20px 60px; }
  .values-strip { grid-template-columns: 1fr; }
}

/* ════════ CONTACT ═════════════════════════════════════════ */
.contact-page { padding: calc(var(--nav-h) + 80px) 80px 100px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.contact-info__desc { font-size: 16px; color: var(--muted); line-height: 1.8; margin: 20px 0 44px; }
.contact-info__items { display: flex; flex-direction: column; }
.contact-info__item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ci--blue   { background: #eff6ff; }
.ci--violet { background: #f5f3ff; }
.ci--green  { background: #f0fdf4; }
.contact-info__label { font-size: 10px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.contact-info__val   { font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.7; }

/* Global offices */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.office-card {
  padding: 20px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--off); transition: all .2s;
}
.office-card:hover { background: white; box-shadow: var(--sh-sm); }
.office-card__flag { font-size: 24px; margin-bottom: 8px; }
.office-card__city { font-size: 15px; font-weight: 700; color: var(--ink); }
.office-card__role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.office-card__phone { font-size: 13px; color: var(--blue); font-weight: 600; margin-top: 8px; font-family: 'DM Mono', monospace; }

/* Contact form */
.contact-form {
  background: white; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 48px 44px; box-shadow: 0 24px 64px rgba(0,0,0,.07);
  border-top: 3px solid var(--blue);
}
.contact-form__title { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -.03em; }
.contact-form__sub   { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--muted-2); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--off);
  font-family: inherit; font-size: 15px; color: var(--ink);
  outline: none; transition: all .2s;
}
.form-input:focus   { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
.form-input::placeholder { color: var(--muted-2); }
textarea.form-input { min-height: 120px; resize: vertical; }
select.form-input   { cursor: pointer; }

.form-submit {
  width: 100%; padding: 16px; border-radius: 14px;
  background: var(--ink); color: white;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s; cursor: pointer; border: none;
}
.form-submit:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.form-submit.success { background: #10b981; }

@media (max-width: 1024px) {
  .contact-page  { padding: calc(var(--nav-h) + 48px) 40px 72px; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-page  { padding: calc(var(--nav-h) + 32px) 20px 60px; }
  .form-row      { grid-template-columns: 1fr; }
  .contact-form  { padding: 32px 24px; }
  .offices       { grid-template-columns: 1fr; }
}
