/*
Theme Name: Vesperpike
Theme URI: https://vesperpike.com
Author: Vesperpike
Description: Digital agency theme ported from an HTML template (fidelity port: original classes, GSAP/Lenis/Swiper effects preserved).
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vesperpike
*/

/* Admin bar offset for the fixed pill header */
.admin-bar .header-scroll { margin-top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .header-scroll { margin-top: 46px; }
}

/* the_content() wrapper for index.php / page.php (bk- prefix: area not in the original design) */
.bk-post-content { max-width: 800px; margin: 0 auto; padding: 160px 20px 80px; line-height: 1.7; }
.bk-post-content h1, .bk-post-content h2, .bk-post-content h3,
.bk-post-content h4, .bk-post-content h5, .bk-post-content h6 { margin: 1.6em 0 .6em; line-height: 1.25; font-weight: 600; }
.bk-post-content h1 { font-size: 40px; }
.bk-post-content h2 { font-size: 32px; }
.bk-post-content h3 { font-size: 26px; }
.bk-post-content h4 { font-size: 22px; }
.bk-post-content h5, .bk-post-content h6 { font-size: 18px; }
.bk-post-content p { margin: 0 0 1.2em; }
.bk-post-content ul, .bk-post-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.bk-post-content ul { list-style: disc; }
.bk-post-content ol { list-style: decimal; }
.bk-post-content li { margin-bottom: .4em; }
.bk-post-content blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 4px solid currentColor; opacity: .85; }
.bk-post-content img { max-width: 100%; height: auto; }
.bk-post-content hr { margin: 2em 0; border: 0; border-top: 1px solid rgba(0,0,0,.15); }
.bk-post-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; }
.bk-post-content th, .bk-post-content td { padding: 8px 12px; border: 1px solid rgba(0,0,0,.15); text-align: left; }
.bk-post-content code, .bk-post-content pre { font-family: monospace; background: rgba(0,0,0,.05); }
.bk-post-content code { padding: 2px 5px; border-radius: 4px; }
.bk-post-content pre { padding: 16px; overflow-x: auto; margin: 0 0 1.2em; }
.bk-post-content pre code { padding: 0; background: none; }
.bk-post-content a { text-decoration: underline; }
.bk-post-content strong, .bk-post-content b { font-weight: 700; }

/* Utilities used by page templates that the original compiled main.css does not contain */
.max-w-\[760px\] { max-width: 760px; }
.max-w-\[900px\] { max-width: 900px; }
.mb-\[56px\] { margin-bottom: 56px; }
.mt-12 { margin-top: 3rem; }
.pt-4 { padding-top: 1rem; }
@media (min-width: 768px) {
  .md\:mt-8 { margin-top: 2rem; }
  .md\:pb-\[72px\] { padding-bottom: 72px; }
  .md\:py-\[72px\] { padding-top: 72px; padding-bottom: 72px; }
}

/* "Show more" disclosure on the automation page */
.bk-more > summary { list-style: none; }
.bk-more > summary::-webkit-details-marker { display: none; }
.bk-more[open] > summary { display: none; }
.space-y-\[72px\] > :not(:last-child) { margin-bottom: 72px; }
.underline-offset-4 { text-underline-offset: 4px; }
@media (min-width: 768px) { .md\:p-12 { padding: 3rem; } }

/* Header logo: fixed width, vertically centred (override template max-width) */
.vp-logo-main { width: 170px; max-width: none; }
@media (min-width: 1024px) { .vp-logo-main { width: 240px; } }
.header-scroll figure { margin: 0; }

/* Language select (header): looks like the old pill button, native select inside */

/* Footer (centered layout) + mobile language select arrow */
.vp-footer .w-\[220px\] { width: 220px; }
.vp-footer .max-w-\[560px\] { max-width: 560px; }
.vp-footer .h-4 { height: 1rem; }
@media (min-width: 768px) { .vp-footer .md\:pt-24 { padding-top: 6rem; } }

/* Language dropdown (desktop header) */
.vp-dd-toggle { background: transparent; }
.vp-dd.is-open .vp-dd-arrow { transform: rotate(180deg); }
.vp-dd-menu { position: absolute; top: calc(100% + 12px); right: 0; min-width: 220px; margin: 0; padding: 10px; list-style: none; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 24px; box-shadow: 0 24px 48px rgba(16,24,40,.16); z-index: 80; }
.vp-dd-menu[hidden] { display: none; }
.vp-dd-menu li + li { margin-top: 4px; }
.vp-dd-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 16px; font-size: 1.0625rem; color: #0b0b0f; transition: background .2s, color .2s; }
.vp-dd-menu a:hover { background: #f3f0ff; }
.vp-dd-menu a.is-current { background: #f3f0ff; color: #7c3aed; font-weight: 600; }

/* Mobile language dropdown: full-width pill, sub-menu opens inline below */
.vp-dd-mobile { margin-top: 24px; }
.vp-dd-mobile { width: 200px; max-width: 100%; }
.vp-dd-mobile .vp-dd-toggle { display: block; width: 100%; height: 46px; padding: 4px; font-size: 15px; }
.vp-dd-mobile .vp-dd-toggle > span { padding-left: 18px; padding-right: 4px; }
.vp-dd-mobile .vp-dd-toggle > span > span:last-child { width: 34px; height: 26px; }
.vp-dd-mobile .vp-dd-toggle svg { width: 20px; height: 20px; }
.vp-dd-mobile .vp-dd-menu a { padding: 12px 16px; font-size: 15px; }
.vp-dd-mobile .vp-dd-menu { position: static; min-width: 0; margin-top: 12px; box-shadow: 0 12px 28px rgba(16,24,40,.12); }

/* Mobile sidebar logo */
.w-\[180px\] { width: 180px; }

/* Mobile: a few sections (stats row, marquee) are wider than the viewport. Clip it so the
   layout viewport stays at screen width and the fixed header stays centred. */
html, body { overflow-x: clip; max-width: 100%; }

/* Home: card wheel -> horizontal marquee strip (saves vertical space) */
[data-rotating-cards] { height: auto !important; margin-top: 0 !important; padding: 8px 0 24px; }
[data-rotating-wheel] { position: relative !important; left: 0 !important; top: 0 !important; transform: none; width: max-content !important; height: auto !important; max-width: none !important; max-height: none !important; display: flex !important; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start !important; column-gap: 24px; will-change: transform; }
[data-rotating-wheel] > [data-rotating-card] { position: relative !important; left: auto !important; top: auto !important; flex: 0 0 auto; transform: none; }

/* Marquee cards: smaller, single-line titles so every card has the same layout */
[data-rotating-wheel] > [data-rotating-card] { width: 250px !important; padding: 12px !important; }
[data-rotating-card] > :first-child { margin-bottom: 16px; }
[data-rotating-card] > .space-y-8 > :not(:last-child), [data-rotating-card].space-y-8 > :not(:last-child) { margin-bottom: 0; }
[data-rotating-card] h3 { max-width: none !important; font-size: 17px !important; line-height: 1.3 !important; white-space: nowrap; }
[data-rotating-card] [class*="ns-shape-"] { width: 32px !important; height: 32px !important; font-size: 32px !important; }
[data-rotating-card] figure { height: 170px !important; }

/* Home vertical rhythm around the card strip + circle badge */
[data-rotating-cards] { margin-top: 56px !important; padding: 0 !important; }
[data-rotating-wheel] > [data-rotating-card] { padding: 14px !important; display: flex; flex-direction: column; gap: 16px; }
[data-rotating-card] > * { margin: 0 !important; }
[data-rotating-card] > :first-child { min-height: 32px; }
.vp-circle-section { padding-top: 48px; padding-bottom: 24px; }

/* Hero: fixed height on desktop */
@media (min-width: 1024px) { .vp-hero-row { height: 320px !important; } }

/* About stat cards: four boxes in one row (2 per row on phones), compact */
.vp-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .vp-about-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.vp-about-grid > div { grid-column: auto !important; }
.vp-about-grid > div > div { height: 150px !important; padding: 20px !important; }
.vp-about-grid .ns-shape-36 { font-size: 44px !important; }
.vp-about-grid figure { width: auto !important; height: 48px !important; }
.vp-about-grid > div > div.justify-center { gap: 10px !important; }
.vp-about-grid .text-heading-6 { font-size: 16px !important; text-align: center; }

/* Keep full-width rows inside the same boxed width as .main-container (1290px, 20px side gutter) */
.vp-boxed { width: calc(100% - 40px); max-width: 1290px; margin-left: auto !important; margin-right: auto !important; }
@media (min-width: 1440px) { .vp-boxed { width: 1290px; } }

/* "What we cover" cards: more compact (tall + short = same height in every column) */
[data-stat-card] { padding: 22px 24px !important; }
[data-stat-card].h-80 { height: 190px !important; }
[data-stat-card].h-\[166px\] { height: 98px !important; }
[data-stat-card] [class*="ns-shape-"] { font-size: 30px !important; }
[data-stat-card] .space-y-1 > :not(:last-child) { margin-bottom: 2px; }
[data-stat-card] h3.text-heading-4 { font-size: 28px !important; line-height: 1.2 !important; }
[data-stat-card] p.text-heading-5 { font-size: 18px !important; }

/* "Small hassles we can solve" cards: compact, same height, heading on top and note below */
[data-testimonial-card] { height: 168px !important; padding: 16px 18px !important; gap: 12px; }
[data-testimonial-card] .size-14 { width: 44px !important; height: 44px !important; }
[data-testimonial-card] [class*="ns-shape-"] { width: 32px !important; height: 32px !important; font-size: 28px !important; }
[data-testimonial-card] p.text-tagline-1 { font-size: 15px; line-height: 1.45; }
[data-testimonial-card] .font-medium.text-black { font-size: 16px; }
[data-testimonial-col] { gap: 16px !important; }
[data-testimonial-cards] { gap: 16px !important; }

/* "Four ways" flip cards: fixed-height text block so the images line up whatever the heading length */
[data-card-flip-front] > div:first-child { flex: none; height: 176px; overflow: hidden; }

/* Home: tighter vertical rhythm between sections (was 156px top + 156px bottom on desktop) */
main > section.py-18 { padding-top: 56px; padding-bottom: 56px; }
main > section.pb-18 { padding-bottom: 56px; }
@media (min-width: 768px) {
  main > section.md\:py-28, main > section.py-28 { padding-top: 72px; padding-bottom: 72px; }
  main > section.md\:pb-28 { padding-bottom: 72px; }
}
@media (min-width: 1280px) {
  main > section.xl\:py-39, main > section.md\:py-28, main > section.py-28 { padding-top: 88px; padding-bottom: 88px; }
  main > section.xl\:pb-39 { padding-bottom: 88px; }
}
@media (min-width: 768px) { main > section[class*="py-28"] { padding-top: 72px; padding-bottom: 72px; } }
@media (min-width: 1280px) { main > section[class*="py-28"] { padding-top: 88px; padding-bottom: 88px; } }
