/* uniadviser 0.8.0 — Services template (templates/page-services.html + patterns/services-*.php).
   Icons: Font Awesome Free (local) drawn by CSS from classes (ua-i--*), so the block markup stays plain core blocks and
   editable; `content: "\fxxx" / ""` gives the icon empty alt text (silent for screen readers, like aria-hidden). */

.ua-svc { --ua-svc-pad: clamp(32px, 5vw, 72px); background: var(--ua-paper); }
.ua-svc__content > * { margin-block: 0; }
.ua-svc-wrap { width: min(100% - 2 * var(--ua-gutter), var(--ua-container)); margin-inline: auto; }
.ua-svc .wp-block-group, .ua-svc .wp-block-heading, .ua-svc p { margin-block: 0; }

/* Breadcrumb + hero share the dark band, so the top is one compact block */
.ua-svc-crumbs { background: var(--ua-ink); padding-top: 14px; }
.ua-svc-crumbs .ua-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: var(--ua-fs-xs); color: var(--ua-on-ink-muted); }
.ua-svc-crumbs .ua-crumbs a { color: var(--ua-on-ink-muted); }
.ua-svc-crumbs .ua-crumbs li[aria-current] { color: var(--ua-on-ink); }
.ua-svc-crumbs .ua-crumbs li + li::before { content: "/"; margin-inline-end: .4rem; opacity: .6; }
.ua-svc-hero { background: var(--ua-ink); color: var(--ua-on-ink); padding: 14px 0 clamp(28px, 4vw, 48px); }
.ua-svc-hero h1 { color: var(--ua-on-ink); font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.3; margin: .25rem 0 .5rem; }
.ua-svc-hero__label { color: var(--ua-amber); font-weight: var(--ua-fw-semibold); font-size: var(--ua-fs-sm); }
.ua-svc-hero__intro { color: var(--ua-on-ink-muted); font-size: var(--ua-fs-md); max-width: 70ch; }
.ua-svc-hero .ua-actions { margin-top: 1rem; }

/* Sections: one rhythm, alternating background, no stacked gaps */
.ua-svc-sec { padding-block: var(--ua-svc-pad); }
.ua-svc-sec:nth-of-type(even) { background: var(--ua-white); }
.ua-svc-sec h2 { font-size: var(--ua-fs-xl); line-height: 1.35; margin-bottom: .5rem; }
.ua-svc-lead { color: var(--ua-muted); max-width: 80ch; margin-bottom: 1.25rem !important; }

/* Buttons: core button blocks dressed as .ua-btn (40px, sm style) */
.ua-svc .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.ua-svc .ua-b .wp-block-button__link { display: inline-flex; align-items: center; gap: .5rem; box-sizing: border-box; min-height: 40px; padding: 0 16px; border-radius: var(--ua-r-md); border: 2px solid transparent; font-size: 15px; font-weight: var(--ua-fw-semibold); line-height: 1.25; text-decoration: none; background: var(--ua-ink); color: var(--ua-on-ink); transition: background-color var(--ua-dur-1); }
.ua-svc .ua-card .ua-b .wp-block-button__link { min-height: 36px; padding: 0 12px; font-size: 14px; }
.ua-svc .ua-b--primary .wp-block-button__link { background: var(--ua-amber); color: var(--ua-ink); }
.ua-svc .ua-b--primary .wp-block-button__link:hover { background: #FFB929; }
.ua-svc .ua-b--wa .wp-block-button__link { background: var(--ua-whatsapp); color: #fff; }
.ua-svc .ua-b--ghost .wp-block-button__link { background: transparent; color: var(--ua-ink); border-color: var(--ua-line-2); }
.ua-svc .ua-b--ghost .wp-block-button__link:hover { border-color: var(--ua-ink); }
.ua-svc .ua-b .wp-block-button__link:focus-visible { outline: 3px solid var(--ua-focus); outline-offset: 2px; }
.ua-svc .ua-b .wp-block-button__link::before { font: var(--fa-font-solid, 900 1em "Font Awesome 7 Free"); font-weight: 900; font-size: .95em; }
.ua-svc .ua-b--wa .wp-block-button__link::before { content: "\f232" / ""; font-family: "Font Awesome 7 Brands"; font-weight: 400; }
.ua-svc .ua-i--user-plus .wp-block-button__link::before { content: "\f234" / ""; }
.ua-svc .ua-b--ghost .wp-block-button__link::before { content: "\f05a" / ""; }
.ua-svc .ua-i--arrow .wp-block-button__link::before { content: "\f060" / ""; }
[dir="ltr"] .ua-svc .ua-i--arrow .wp-block-button__link::before { transform: scaleX(-1); }
.ua-svc-hero .ua-b--ghost .wp-block-button__link, .ua-svc-cta .ua-b--ghost .wp-block-button__link { color: var(--ua-on-ink); }

/* Service cards */
.ua-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ua-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.ua-card { display: flex; flex-direction: column; background: var(--ua-white); border: 1px solid var(--ua-line); border-radius: var(--ua-r-lg); padding: 20px; box-shadow: var(--ua-shadow-1); }
.ua-svc-sec:nth-of-type(even) .ua-card { background: var(--ua-paper); }
.ua-card h3 { font-size: var(--ua-fs-md); line-height: 1.4; margin: .75rem 0 .4rem; }
.ua-card__text { color: var(--ua-muted); font-size: var(--ua-fs-sm); flex: 1; }
.ua-card .wp-block-buttons { margin-top: .9rem; }
.ua-i::before { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--ua-r-md); background: var(--ua-amber-soft); color: var(--ua-ink); font: var(--fa-font-solid, 900 1.15em "Font Awesome 7 Free"); font-weight: 900; font-size: 1.15rem; }
.ua-i--comments::before { content: "\f086" / ""; }
.ua-i--uni::before { content: "\f19c" / ""; }
.ua-i--language::before { content: "\f1ab" / ""; }
.ua-i--lock::before { content: "\f023" / ""; }
.ua-i--plane::before { content: "\f5af" / ""; }
.ua-i--heart::before { content: "\f4be" / ""; }
.ua-i--house::before { content: "\f015" / ""; }
.ua-i--train::before { content: "\f238" / ""; }
.ua-i--health::before { content: "\f481" / ""; }
.ua-i--cart::before { content: "\f07a" / ""; }
.ua-i--info::before { content: "\f05a" / ""; }

/* Packages (old "price table" lists; the old data has no prices) */
.ua-packs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.ua-pack { background: var(--ua-white); border: 1px solid var(--ua-line); border-radius: var(--ua-r-lg); padding: 20px; }
.ua-pack--main { border-color: var(--ua-amber); box-shadow: var(--ua-shadow-1); }
.ua-pack h2, .ua-pack h3 { font-size: var(--ua-fs-md); margin-bottom: .75rem; }
.ua-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ua-checks--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ua-checks li { position: relative; padding-inline-start: 28px; line-height: 1.6; }
.ua-checks li::before { content: "\f00c" / ""; position: absolute; inset-inline-start: 0; top: .15em; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ua-success-bg); color: var(--ua-success); font: var(--fa-font-solid, 900 11px "Font Awesome 7 Free"); font-weight: 900; font-size: 11px; }
.ua-checks li.ua-li--euro::before { content: "\f153" / ""; background: var(--ua-amber-soft); color: var(--ua-ink); }
.ua-checks li.ua-li--q::before { content: "\3f" / ""; background: var(--ua-info-bg); color: var(--ua-info); }

/* How it works */
.ua-steps { list-style: none; margin: 0; padding: 0; counter-reset: uastep; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ua-steps li { counter-increment: uastep; display: flex; align-items: center; gap: 12px; background: var(--ua-white); border: 1px solid var(--ua-line); border-radius: var(--ua-r-md); padding: 12px 14px; font-weight: var(--ua-fw-medium); line-height: 1.45; }
.ua-svc-sec:nth-of-type(even) .ua-steps li { background: var(--ua-paper); }
.ua-steps li::before { content: counter(uastep); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ua-ink); color: var(--ua-on-ink); font-weight: var(--ua-fw-bold); font-size: var(--ua-fs-sm); }

/* Topic accordions (university admissions) */
.ua-accs { display: grid; gap: 10px; }
.ua-acc { background: var(--ua-white); border: 1px solid var(--ua-line); border-radius: var(--ua-r-md); }
.ua-svc-sec:nth-of-type(even) .ua-acc { background: var(--ua-paper); }
.ua-acc > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; font-weight: var(--ua-fw-semibold); }
.ua-acc > summary::-webkit-details-marker { display: none; }
.ua-acc > summary::after { content: "\f078" / ""; font: var(--fa-font-solid, 900 .85em "Font Awesome 7 Free"); font-weight: 900; transition: transform var(--ua-dur-1); }
.ua-acc[open] > summary::after { transform: rotate(180deg); }
.ua-acc > summary:focus-visible { outline: 3px solid var(--ua-focus); outline-offset: 2px; border-radius: var(--ua-r-md); }
.ua-acc > :not(summary) { padding-inline: 16px; max-width: 80ch; }
.ua-acc > p { margin-block: 0 .75rem !important; line-height: var(--ua-lh-body); }
.ua-acc > .ua-checks { margin-bottom: .75rem; }

/* CTA band */
.ua-svc-cta { background: var(--ua-ink); color: var(--ua-on-ink); padding-block: clamp(28px, 4vw, 56px); }
.ua-svc-cta h2 { color: var(--ua-on-ink); font-size: var(--ua-fs-lg); line-height: 1.4; }
.ua-svc-cta p { color: var(--ua-on-ink-muted); max-width: 80ch; margin-top: .5rem; }
.ua-svc-cta + .ua-svc-sec { background: var(--ua-paper); }

/* Contact form section (CF7) */
.ua-svc-form .wpcf7 { max-width: 720px; }

@media (max-width: 600px) {
  .ua-svc .wp-block-buttons .wp-block-button { flex: 1 1 auto; }
  .ua-svc .ua-b .wp-block-button__link { width: 100%; justify-content: center; }
  .ua-card { padding: 16px; }
}

/* ---------- 0.8.2 visual QA (part10b) ---------- */
/* M3: one marker per item (no browser disc), one colour for the check icon. */
.ua-svc ul.ua-checks { list-style: none; padding-inline-start: 0; }
.ua-svc ul.ua-checks > li::marker { content: none; }
.ua-svc .ua-checks li.ua-li--check::before { background: var(--ua-success-bg); color: var(--ua-success); }
/* M4: steps 3x2 (6 at >=1280), equal heights. */
.ua-svc .ua-steps { align-items: stretch; }
@media (min-width: 768px) { .ua-svc .ua-steps { grid-template-columns: repeat(3, 1fr); } }
/* M5 + M6: grids span the full container; 6 service cards = 3x2; buttons aligned at the card bottom. */
@media (min-width: 1024px) { .ua-svc .ua-grid { grid-template-columns: repeat(3, 1fr); } .ua-svc .ua-grid--4 { grid-template-columns: repeat(4, 1fr); max-width: none; width: 100%; } }
.ua-svc .ua-card { display: flex; flex-direction: column; }
.ua-svc .ua-card > .wp-block-buttons { margin-top: auto; padding-top: 1rem; justify-content: flex-start; }
