/* ==========================================================================
   Skyo Global. WordPress additions.
   Loaded after style.css and responsive.css. It only adds what WordPress needs
   (Contact Form 7, core content, admin bar, pagination, service / work templates).
   Design tokens come from style.css.
   ========================================================================== */

/* ---------- WordPress core ---------- */
.screen-reader-text { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto; clip-path: none; width: auto; height: auto; margin: 0; padding: 12px 20px; background: var(--surface); color: var(--ink); z-index: 100000; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; }
.prose img { border-radius: var(--radius-lg); }
.prose figure { margin: 0; }
.prose figcaption, .wp-caption-text { margin-top: 10px; font-size: 14px; color: var(--ink-muted); }
.prose ol { padding-left: 1.4em; }
.prose ol li { padding: 6px 0; }
.prose .wp-block-image, .prose .wp-block-quote { margin-inline: 0; }
.prose .wp-block-quote cite { display: block; margin-top: 12px; font: 500 15px/1.3 var(--font-body); color: var(--ink-muted); }
.prose blockquote p { font: inherit; letter-spacing: inherit; color: inherit; }
.prose blockquote p + p { margin-top: 0.6em; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* Logo image (when a Custom Logo is set) */
.sk-logo__img { display: block; height: 32px; width: auto; }

/* Fixed navigation sits below the WordPress admin bar */
.admin-bar .sk-nav { top: 48px; }
@media (max-width: 782px) { .admin-bar .sk-nav { top: 62px; } }
@media (max-width: 600px) { .admin-bar .sk-nav { top: 16px; } }

/* Filtered work cards */
.sk-proj[hidden] { display: none !important; }
.sk-empty[hidden] { display: none; }

/* About page: editor content keeps the original paragraph look */
.about-story__content > p { font-size: 17px; line-height: 1.55; color: var(--ink-body); max-width: 38em; }
.about-story__content > p + p { margin-top: 1em; }

/* ---------- Blog pagination + filter links ---------- */
a.sk-tag.sk-tag--active { text-decoration: none; }
.sk-pagination { margin-top: clamp(40px, 5vw, 72px); }
.sk-pagination ul { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.sk-pagination a, .sk-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); font: 500 14px/1 var(--font-body); color: var(--ink); text-decoration: none; transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast); }
.sk-pagination a:hover { border-color: var(--ink); }
.sk-pagination .current { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- Service page ---------- */
.svc-hero { padding-bottom: clamp(24px, 3vw, 48px); }
.svc-hero__grid { margin-top: clamp(24px, 3vw, 40px); }
.svc-hero .svc__intro { position: static; }
.svc-hero .sk-hero__actions { grid-column: auto; justify-self: start; }
.svc-hero .svc__num { font-size: clamp(64px, 8vw, 120px); }
.svc-detail { margin-inline: 0; }
.svc-hero + .svc { border-top: 0; padding-top: 0; }

/* ---------- Work: case study page ---------- */
.sk-case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: 48px; align-items: start; }
.sk-case__main { grid-column: 1 / span 8; display: grid; gap: 32px; }
.sk-case__side { grid-column: 10 / -1; display: grid; gap: 20px; align-content: start; position: sticky; top: 110px; }
.sk-case__h { font: 600 12px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.sk-case__facts dt { font: 600 12px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.sk-case__facts dd { margin: 0 0 24px; font-size: 19px; line-height: 1.6; color: var(--ink-body); }

/* ---------- 404 ---------- */
.sk-404__code { font: 800 clamp(96px, 16vw, 240px)/0.85 var(--font-heading); letter-spacing: -0.06em; color: var(--accent); margin-bottom: 16px; }
.sk-404 .sk-hero__actions { grid-column: auto; justify-self: start; margin-top: 28px; }

/* ==========================================================================
   Contact Form 7. Matches the original .sk-form design.
   The form is rendered with class "sk-form" (see skyo_contact_form()).
   ========================================================================== */
.wpcf7 { width: 100%; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.wpcf7 .hidden-fields-container, .wpcf7-display-none { display: none; }
.wpcf7-form-control-wrap { display: block; position: relative; }
.wpcf7-form br { display: none; }
.sk-field .wpcf7-form-control-wrap, .sk-select .wpcf7-form-control-wrap { display: block; }

/* Controls */
.wpcf7-form .sk-input { width: 100%; }
.wpcf7-form textarea.sk-input { resize: vertical; min-height: 130px; }
.wpcf7-form .sk-select .sk-input { padding-right: 28px; cursor: pointer; }
.wpcf7-form .sk-input:focus-visible { box-shadow: 0 1px 0 0 var(--accent); }

/* Validation */
.wpcf7-form .sk-input.wpcf7-not-valid { border-bottom-color: var(--accent-text); }
.wpcf7-not-valid-tip { display: block; margin-top: 8px; font: 500 13px/1.3 var(--font-body); color: var(--accent-text); }

/* Response message (same voice as .sk-form__status) */
.wpcf7 form .wpcf7-response-output { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; font: 600 17px/1.4 var(--font-body); color: var(--ink); }
.wpcf7 form .wpcf7-response-output:empty, .wpcf7 form.init .wpcf7-response-output { display: none; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { color: var(--accent-text); }
.wpcf7 form.sent .wpcf7-response-output { color: var(--ink); padding-left: 16px; border-left: 3px solid var(--accent); }

/* Loading */
.wpcf7 form.submitting .sk-form__foot .sk-btn { opacity: 0.6; cursor: progress; pointer-events: none; }
.wpcf7-spinner { display: none; }
.wpcf7 form.submitting .wpcf7-spinner { display: inline-block; width: 20px; height: 20px; margin: 0 0 0 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sk-spin 700ms linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }

/* Honeypot (CF7 hides it inline as well) */
.wpcf7 .sk-hp, .wpcf7 .wpcf7-form-control-wrap[data-name="company_hp"] { position: absolute; left: -9999px; }

@media (max-width: 900px) {
	.sk-case__main, .sk-case__side { grid-column: 1 / -1; position: static; }
}
@media (prefers-reduced-motion: reduce) {
	.wpcf7 form.submitting .wpcf7-spinner { animation: none; }
}
