/* =============================================================================
   Avielon Studio · services.css
   Shared page-level styles for the service-page template (Tasarım / Yazılım).
   Loaded AFTER tokens.css + site.css, BEFORE the per-page sheet (tasarim.css /
   yazilim.css). Holds only what is identical across both service pages:
   section scaffolding, the service-list + feature component, the work-card grid,
   the FAQ accordion, the closing CTA band, and the scroll-reveal.

   Page "signature" styles (the two-column hero + corner frame, the value
   pillars, the process track/timeline, the compare panels, the tech grid) live
   in the per-page sheet, because only one of those ever loads on a given page.

   Note — a few trivially divergent values were normalised here to a single
   source of truth (feature gap .45→.5rem, feature max-width 60→62ch, cta lead
   54ch). The visual delta is sub-pixel; flag if you'd rather keep them split.
============================================================================= */

/* ---- Scroll reveal (shared) ------------------------------------------------
   The per-page sheet adds its own reduced-motion line for the hero frame. */
.fade { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
}

/* ---- Section scaffolding ---------------------------------------------------
   The "spec-sheet" rhythm: full-bleed sections divided by hairlines, each led
   by a mono eyebrow with a short accent rule. */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--color-border); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .eyebrow { display: flex; align-items: center; gap: .7rem; }
.section-head .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--color-accent); flex: none; }

/* ---- Services: list container + feature component --------------------------
   The row layout of each .service (columns, gaps) is page-specific and lives in
   the per-page sheet; the pieces below are identical on both pages. */
.service-list { display: grid; gap: 0; }
.service-intro { color: var(--color-text-secondary); max-width: 62ch; margin: 0; }
.feature-list { display: grid; gap: 1.5rem; }
.feature { display: grid; gap: .5rem; padding-left: 1.1rem; border-left: 2px solid var(--color-border); }
.feature-name { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--color-text-primary); }
.feature p { margin: 0; color: var(--color-text-secondary); max-width: 62ch; }

/* ---- Selected work grid ----------------------------------------------------
   Card = sector/flag + one-line qualitative outcome + tag chips. Identical on
   both pages; the Design page adds a hover arrow on top (in tasarim.css). */
.work-grid { display: grid; gap: 1.25rem; }
.work-card {
  display: grid; gap: 1rem; align-content: space-between;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 1.9rem);
  min-height: 220px; position: relative; overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.work-card:hover { border-color: var(--color-text-secondary); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .work-card:hover { transform: none; } }
.work-card .tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-text-secondary);
  display: inline-flex; align-items: center; gap: .55rem;
}
.work-card .tag.flag { color: var(--color-accent); }
.work-card .outcome { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.work-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.work-card .chip {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em;
  color: var(--color-text-secondary); border: 1px solid var(--color-border);
  border-radius: 999px; padding: .25rem .6rem;
}
.work-note { margin-top: 1.75rem; }

/* ---- FAQ accordion ---------------------------------------------------------
   Native <details>/<summary>; the plus-mark rotates to a cross when open. */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-top: 1px solid var(--color-border); }
.faq details:last-child { border-bottom: 1px solid var(--color-border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.3; color: var(--color-text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 1.55rem;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--color-text-secondary), var(--color-text-secondary)) center/13px 1.5px no-repeat,
    linear-gradient(var(--color-text-secondary), var(--color-text-secondary)) center/1.5px 13px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2.5rem 1.5rem 0; color: var(--color-text-secondary); max-width: 70ch; }
.faq .answer p { margin: 0; }

/* ---- Closing CTA band ------------------------------------------------------ */
.cta-band { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.cta-band-inner { padding-block: clamp(4rem, 8vw, 7rem); display: grid; gap: 1.5rem; justify-items: start; max-width: 720px; margin: 0; }
.cta-band .t-display { max-width: 16ch; }
.cta-band .lead { max-width: 54ch; }

/* ---- Shared responsive: work grid -----------------------------------------
   Two-up from the tablet breakpoint, three-up on wide screens; the featured
   card (.span) always runs full width. */
@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card.span { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-card.span { grid-column: span 3; }
}
