/* QUBE theme – layout and component styles. Colors/fonts come from theme.json. */

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.qube-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .qube-header { top: 32px; }
.qube-header__inner { max-width: 1248px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.qube-logo { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.qube-logo img { height: 44px; width: auto; display: block; }
.qube-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.qube-nav a, .qube-mobile-nav__panel a:not(.qube-btn) { color: var(--wp--preset--color--ink); text-decoration: none; }
.qube-nav a:hover { color: var(--wp--preset--color--blue); }
.qube-header__actions { display: flex; align-items: center; gap: 16px; }
.qube-phone { font-weight: 600; font-size: 15px; color: var(--wp--preset--color--ink); text-decoration: none; white-space: nowrap; }
.qube-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; background: var(--wp--preset--color--blue); color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.qube-btn:hover { background: var(--wp--preset--color--blue-dark); }
.qube-lang { display: flex; gap: 6px; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--muted); }
.qube-lang a { color: var(--wp--preset--color--muted); text-decoration: none; }
.qube-lang__current { color: var(--wp--preset--color--ink); }

.qube-mobile-nav { display: none; margin-left: auto; position: relative; }
.qube-mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--wp--preset--color--ink); }
.qube-mobile-nav summary::-webkit-details-marker { display: none; }
.qube-mobile-nav__panel { position: absolute; right: 0; top: 52px; width: min(320px, 90vw); background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(26, 37, 80, .12); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.qube-mobile-nav__panel > a:not(.qube-btn) { padding: 10px 8px; font-weight: 600; }
.qube-mobile-nav__panel .qube-lang, .qube-mobile-nav__panel .qube-phone { padding: 10px 8px; }
.qube-mobile-nav__panel .qube-btn { justify-content: center; margin-top: 8px; }

@media (max-width: 1180px) {
	.qube-nav, .qube-header__actions { display: none; }
	.qube-mobile-nav { display: block; }
}

/* ---------- Sections ---------- */
.wp-site-blocks > main, .wp-site-blocks > .wp-block-template-part { margin-block-start: 0; }
.qube-main > .wp-block-post-content { margin-top: 0; }
.qube-section { padding-top: clamp(56px, 7vw, 88px) !important; padding-bottom: clamp(56px, 7vw, 88px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.qube-section > * + * { margin-top: 1.25rem; }
.qube-section > .qube-grid, .qube-section > .wp-block-query, .qube-section > .wp-block-columns, .qube-section > .qube-brands { margin-top: 2.5rem; }
.is-white { background: #fff; }
.is-surface { background: var(--wp--preset--color--surface); }
.is-dark { background: var(--wp--preset--color--navy); color: #fff; }
.is-dark .qube-muted, .is-dark .qube-lead { color: #CDD5EA; }
.is-dark a:not(.wp-element-button) { color: var(--wp--preset--color--sky); }

.qube-eyebrow { font-size: 14px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--blue); margin-bottom: 0; }
.is-dark .qube-eyebrow { color: var(--wp--preset--color--sky); }
.qube-eyebrow + h1, .qube-eyebrow + h2 { margin-top: .75rem; }
.qube-lead { font-size: var(--wp--preset--font-size--large); max-width: 620px; }
.qube-muted { color: var(--wp--preset--color--muted); }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 1.5px solid currentColor; color: var(--wp--preset--color--blue); }
.is-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #6273B0; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(114, 202, 224, .12); }
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; }

/* Hero */
.qube-section--hero h1 { color: #fff; margin-top: .75rem; }
.qube-hero { gap: 56px !important; }
.qube-hero .wp-block-buttons { margin-top: 1.75rem; }
.qube-trust { margin-top: 1.75rem !important; padding-top: 1.25rem; border-top: 1px solid #34437E; font-size: 15px !important; color: #CDD5EA; }
.qube-trust strong { color: #fff; }
.qube-hero-photo img { border-radius: 12px; width: 100%; object-fit: cover; aspect-ratio: 6 / 5; }

/* Cards */
.qube-grid { gap: 24px !important; }
.qube-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
.qube-card > * { margin-top: 0; margin-bottom: 0; }
.qube-card > * + * { margin-top: 12px; }
.qube-card h3 { font-size: 1.25rem; }
.qube-card--service h3 { font-size: 1.125rem; }
.qube-card__label { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--muted); margin-top: 16px !important; }
.qube-card__link { margin-top: auto !important; padding-top: 12px; font-weight: 600; }
.qube-card__link a { text-decoration: none; }
.qube-icon { margin: 0; }
.qube-icon img { width: 36px; height: 36px; display: block; }
.qube-card--service .qube-icon img { width: 30px; height: 30px; }

/* Stats & brands */
.qube-stat { border-left: 2px solid #34437E; padding-left: 20px; }
.qube-stat > * { margin: 0; }
.qube-stat__num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(2.2rem, 4vw, 2.75rem); line-height: 1.1; color: var(--wp--preset--color--sky); }
.qube-stat__label { font-size: 15px; color: #CDD5EA; margin-top: 6px !important; }
.qube-brands { gap: 16px !important; padding-top: 32px; border-top: 1px solid #34437E; }
.qube-brands > * { margin: 0 !important; }
.qube-brands__label { font-size: 14px; color: #AEBBDB; margin-right: 8px !important; }
.qube-brand { border: 1px solid #34437E; border-radius: 8px; height: 56px; padding: 0 22px; display: flex; align-items: center; }
.qube-brand img { height: 20px; width: auto; display: block; }
.qube-brand--tall img { height: 34px; }
.qube-brand--shield img { height: 44px; }

/* Projects */
.qube-projects .wp-block-post-template { gap: 24px; }
.qube-project-card { padding: 0; overflow: hidden; }
.qube-project-card .wp-block-post-featured-image { margin: 0; }
.qube-project-card .wp-block-post-featured-image img { border-radius: 0; }
.qube-project-card:not(:has(.wp-block-post-featured-image)):before { content: ""; display: block; aspect-ratio: 16 / 10; background: var(--wp--preset--color--surface) url("../images/placeholder-project.jpg") center / cover no-repeat; border-bottom: 1px solid var(--wp--preset--color--line); }
.qube-project-card__body { padding: 24px; margin-top: 0 !important; }
.qube-project-card__body > * { margin-top: 0; margin-bottom: 0; }
.qube-project-card__body > * + * { margin-top: 10px; }
.qube-project-card .wp-block-post-title { font-size: 1.25rem; }
.qube-project-card .wp-block-post-title a { color: inherit; text-decoration: none; }
.qube-project-card .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: 15px; }
.qube-project-card .wp-block-post-excerpt__more-link { display: none; }
.qube-tag a, .qube-tag { font-size: 13px; font-weight: 600; text-decoration: none; }
.qube-tag a { display: inline-block; color: var(--wp--preset--color--blue-dark); background: #E4F1F8; padding: 4px 10px; border-radius: 999px; }

/* Process */
.qube-step__num { width: 40px; height: 40px; border-radius: 999px; background: var(--wp--preset--color--navy); color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.qube-step h3 { font-size: 1.125rem; }

/* Why */
.qube-why-cols { gap: 56px !important; align-items: flex-start !important; }
.qube-why h3 { font-size: 1.1875rem; margin: 0; }
.qube-why p { margin-top: 8px; }

/* Testimonial */
.qube-quote { margin: 0; background: var(--wp--preset--color--navy-2); border: 1px solid #34437E; border-radius: 12px; padding: 32px; border-left-width: 1px; }
.qube-quote p { font-size: 1.25rem; color: #fff; }
.qube-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 15px; color: #CDD5EA; }

/* FAQ */
.qube-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 20px 0; margin: 0; }
.qube-faq .wp-block-details:first-of-type { border-top: 1px solid var(--wp--preset--color--line); margin-top: 2rem; }
.qube-faq summary { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.125rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qube-faq summary::-webkit-details-marker { display: none; }
.qube-faq summary::after { content: "+"; color: var(--wp--preset--color--blue); font-size: 1.5rem; line-height: 1; }
.qube-faq details[open] summary::after { content: "–"; }
.qube-faq details p { margin-top: 12px; color: var(--wp--preset--color--muted); }

/* CTA + form */
.qube-cta-cols { gap: 56px !important; align-items: flex-start !important; }
.qube-contacts { margin-top: 1.5rem; }
.qube-contacts p { margin: 0 0 8px; }
.qube-contacts a { text-decoration: none; }
.qube-form { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 32px; }
.qube-form--missing p { margin: 0; }
.qube-form .ff-btn-submit { background: var(--wp--preset--color--blue) !important; border-radius: 8px !important; font-weight: 600 !important; min-height: 52px; padding: 14px 28px !important; width: 100%; }
.qube-form .ff-el-form-control { border-radius: 8px !important; min-height: 44px; }

/* Inner pages */
.qube-page { padding-top: 56px; padding-bottom: 88px; }
.qube-inline-cta { margin-top: 3rem; padding: 32px; border-radius: 12px; background: var(--wp--preset--color--surface); }

/* ---------- Footer ---------- */
.qube-footer { background: var(--wp--preset--color--navy); color: #CDD5EA; font-size: 14px; line-height: 1.7; }
.qube-footer__inner { max-width: 1248px; margin: 0 auto; padding: 48px 24px 24px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.qube-footer__col { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.qube-footer__col p { margin: 0 0 8px; }
.qube-footer img { height: 40px; width: auto; margin-bottom: 8px; align-self: flex-start; }
.qube-footer a { color: #CDD5EA; text-decoration: none; }
.qube-footer a:hover { color: var(--wp--preset--color--sky); }
.qube-footer__bottom { max-width: 1248px; margin: 0 auto; padding: 16px 24px 32px; border-top: 1px solid #34437E; color: #AEBBDB; }

@media (max-width: 781px) {
	.qube-hero { gap: 32px !important; }
	.qube-card { padding: 24px; }
}

/* Inner page hero (service pages) */
.qube-section--page-hero .qube-lead { max-width: 760px; }
.qube-section--page-hero h1 { max-width: 900px; }

/* Footer social links */
.qube-social { display: flex; gap: 8px; margin-top: 4px; }
.qube-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #34437E; border-radius: 8px; color: #CDD5EA; }
.qube-social a:hover { color: var(--wp--preset--color--sky); border-color: var(--wp--preset--color--sky); }
