/* ==========================================================================
   DEVIT SOLUTION — Sections, pages, WordPress block & Elementor Free styling
   ========================================================================== */
[hidden] { display: none !important; }
.devit-page { position: relative; z-index: 2; }
.devit-page > .wp-block-group { max-width: none; }
.section--tight { padding: 30px 0 60px; }
.small { font-size: .88rem; }
.wp-block-group.container { max-width: var(--container); }
.wp-block-group > p:last-child { margin-bottom: 0; }

/* ---------- WordPress button blocks → theme buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; padding: 15px 32px; border-radius: 999px;
	font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: #fff; background: transparent;
	border: 1.5px solid var(--line-red); box-shadow: none; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.wp-block-button .wp-block-button__link:hover { color: #fff; border-color: var(--red); box-shadow: 0 0 34px rgba(229, 9, 20, .35); transform: translateY(-2px); }
.wp-block-button.btn-red .wp-block-button__link { background: linear-gradient(135deg, #ff1f2b, var(--red) 55%, #a30610); border-color: transparent; box-shadow: 0 10px 30px rgba(229, 9, 20, .3); }
.wp-block-button.btn-red .wp-block-button__link:hover { box-shadow: 0 14px 44px rgba(229, 9, 20, .55); }
.center .wp-block-buttons, .cta-banner .wp-block-buttons { justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 80px); min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.hero > .container, .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; width: min(var(--container), 100% - 48px); margin-inline: auto; }
.hero h1 { margin-bottom: .4em; }
.hero h1 .text-red { text-shadow: 0 0 36px rgba(229, 9, 20, .3); }
.hero-text { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 600px; }
.hero-visual { position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-inline: auto; display: grid; place-items: center; }
.hero-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-red); }
.hero-ring--1 { inset: 4%; animation: spin 26s linear infinite; border-style: dashed; }
.hero-ring--2 { inset: 20%; animation: spin 18s linear infinite reverse; box-shadow: 0 0 80px rgba(229, 9, 20, .25) inset; }
.hero-core {
	position: relative; width: 38%; aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center;
	background: linear-gradient(145deg, #1a1a1a, #090909); border: 1.5px solid var(--red);
	box-shadow: 0 0 80px rgba(229, 9, 20, .55), inset 0 0 30px rgba(229, 9, 20, .25); animation: bob 6s ease-in-out infinite;
}
.hero-core span { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; }
.hero-chip {
	position: absolute; padding: 9px 18px; border-radius: 999px; font-size: .82rem; font-family: var(--font-head); font-weight: 600;
	background: rgba(16, 16, 16, .85); border: 1px solid var(--line-red); backdrop-filter: blur(8px); animation: bob 7s ease-in-out infinite;
}
.hero-chip--1 { top: 8%; left: 2%; } .hero-chip--2 { top: 48%; right: -2%; animation-delay: -2s; } .hero-chip--3 { bottom: 6%; left: 12%; animation-delay: -4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 30px 20px; }
.stat-num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; color: #fff; margin-bottom: 10px !important; text-shadow: 0 0 30px rgba(229, 9, 20, .5); }
.stat-label { font-size: .95rem; margin: 0; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 9px 0 9px 32px; color: #d4d4d4; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: .75rem; display: grid; place-items: center; }
.about-intro { align-items: center; gap: 48px; }

/* ---------- Service cards ---------- */
.card-index { font-family: var(--font-head); font-weight: 700; color: var(--red); letter-spacing: .1em; margin-bottom: 14px !important; }
.service-card { display: flex; flex-direction: column; min-height: 100%; }
.service-card p:not(.card-index):not(.card-link) { flex: 1; font-size: .96rem; }
.card-link a { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: #fff; }
.card-link a:hover { color: var(--red); }
.service-card:hover .arrow, .card-link a:hover .arrow { transform: translateX(6px); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.services-grid > .reveal:nth-child(4n+2), .grid > .reveal:nth-child(4n+2) { --d: .08s; }
.grid > .reveal:nth-child(4n+3) { --d: .16s; } .grid > .reveal:nth-child(4n+4) { --d: .24s; }

/* ---------- Why / process ---------- */
.why-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-weight: 700; margin-bottom: 18px !important; box-shadow: 0 0 24px rgba(229, 9, 20, .25); }
.why-card h3, .process-step h3 { font-size: 1.1rem; }
.why-card p:last-child, .process-step p:last-child { font-size: .93rem; }
.step-no { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 14px !important; -webkit-text-stroke: 1.5px var(--red); color: transparent; }
.process-step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red); box-shadow: 0 0 14px var(--red); transition: width .6s var(--ease); }
.process-step:hover::after { width: 100%; }
.timeline-item .step-no { font-size: 1.3rem; -webkit-text-stroke: 0; color: var(--red); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Tech chips ---------- */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tech-chip { margin: 0 !important; padding: 14px 30px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-head); font-weight: 600; color: #fff !important; background: rgba(255, 255, 255, .03); transition: .35s var(--ease); }
.tech-chip:hover { border-color: var(--red); background: var(--red-soft); transform: translateY(-4px); box-shadow: 0 10px 34px rgba(229, 9, 20, .25); }

/* ---------- Testimonial placeholders ---------- */
.placeholder-card { border-style: dashed; border-color: rgba(229, 9, 20, .4); }
.placeholder-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red) !important; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px !important; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: var(--line-red); background: rgba(229, 9, 20, .06); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-family: var(--font-head); font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 24px 20px; }
.faq-answer p { margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; padding: clamp(46px, 7vw, 90px) 28px; border-radius: 28px; border: 1px solid var(--line-red); position: relative; overflow: hidden;
	background: radial-gradient(ellipse at 50% 0%, rgba(229, 9, 20, .35), transparent 65%), linear-gradient(160deg, #130506, #070707); box-shadow: 0 30px 90px rgba(229, 9, 20, .15); }
.cta-banner .eyebrow { justify-content: center; }
.cta-banner p { max-width: 560px; margin-inline: auto; }

/* ---------- Service detail ---------- */
.service-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; scroll-margin-top: 100px; }
.service-detail__intro { position: sticky; top: 110px; }
.service-detail__cards { display: grid; gap: 20px; }
.service-detail__cards .glass-card { padding: 28px; }
.service-detail__cards h3 { font-size: 1.05rem; margin-bottom: 12px; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 44px; }
.filter-btn { padding: 11px 24px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #ddd; font: 600 .9rem var(--font-head); cursor: pointer; transition: .3s var(--ease); }
.filter-btn:hover, .filter-btn.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 30px rgba(229, 9, 20, .4); }
.project-card { padding: 0; display: flex; flex-direction: column; }
.project-card__media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-3); color: #fff; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.08) translateY(-2%); }
.project-card__chrome { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(5, 5, 5, .85); border-bottom: 1px solid var(--line); }
.project-card__chrome i { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.project-card__chrome i:first-child { background: var(--red); }
.project-card__chrome em { font-style: normal; margin-left: 10px; font-size: .72rem; color: var(--muted); }
.project-card__ph { position: absolute; inset: 30px 0 0; display: grid; place-content: center; text-align: center; padding: 20px; gap: 6px;
	background: radial-gradient(circle at 30% 20%, rgba(229, 9, 20, .28), transparent 60%), linear-gradient(135deg, #141414, #0a0a0a); }
.project-card__ph strong { font-family: var(--font-head); font-size: 1.3rem; }
.project-card__ph small { color: var(--muted); font-size: .75rem; }
.project-card__overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(5, 5, 5, .62); opacity: 0; transition: opacity .4s; }
.project-card__overlay span { padding: 12px 26px; border-radius: 999px; background: var(--red); font: 600 .9rem var(--font-head); transform: translateY(14px); transition: transform .5s var(--ease); box-shadow: 0 0 40px rgba(229, 9, 20, .6); }
.project-card:hover .project-card__overlay, .project-card__media:focus-visible .project-card__overlay { opacity: 1; }
.project-card:hover .project-card__overlay span { transform: none; }
.project-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.project-card__cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.project-card__body h3 { margin-bottom: 8px; }
.project-card__body p { font-size: .93rem; }
.section-foot { margin-top: 48px; }

/* ---------- Contact ---------- */
.contact-grid { align-items: start; gap: 48px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); }
.contact-list span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.contact-list a { font-size: 1.1rem; font-weight: 500; color: #fff; }
.devit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.devit-form .field--full { grid-column: 1 / -1; }
.field--hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.form-notice { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .95rem; }
.form-notice--ok { background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .5); color: #b8f3cf; }
.form-notice--err { background: var(--red-soft); border: 1px solid var(--line-red); color: #ffb3b7; }
.form-notice a { color: #fff; text-decoration: underline; }
.contact-card .wp-block-heading { margin-bottom: 20px; }
.devit-form .btn .arrow { margin-left: 2px; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float { position: fixed; right: 26px; bottom: 92px; z-index: 800; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25d366; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); transition: transform .35s var(--ease), box-shadow .35s; }
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s ease-out infinite; }
.whatsapp-float:hover { color: #fff; transform: scale(1.1); box-shadow: 0 14px 44px rgba(37, 211, 102, .7); }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Single post ---------- */
.post-meta { color: var(--muted); font-size: .95rem; }
.single-post__image img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); max-height: 560px; object-fit: cover; }
.tag-list a { display: inline-block; margin: 0 8px 8px 0; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
.author-box { display: flex; gap: 22px; align-items: center; max-width: 800px; margin: 48px 0 32px; }
.author-box img { border-radius: 50%; border: 2px solid var(--red); }
.author-box h3 { margin-bottom: 4px; } .author-box p { margin: 0; font-size: .95rem; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; max-width: 800px; font-family: var(--font-head); font-weight: 600; }
.post-nav a { color: #fff; } .post-nav a:hover { color: var(--red); }
.comments-area { color: var(--muted); }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-respond { margin-top: 36px; }
.comment-form p { margin-bottom: 16px; }

/* ---------- Elementor Free compatibility ---------- */
.elementor-widget-heading .elementor-heading-title { color: #fff; font-family: var(--font-head); }
.elementor-widget-text-editor, .elementor-widget-text-editor p { color: var(--muted); font-family: var(--font-body); }
.elementor-widget-icon-list .elementor-icon-list-text, .elementor-widget-icon-box .elementor-icon-box-description { color: var(--muted); }
.elementor-widget-icon-box .elementor-icon-box-title, .elementor-widget-image-box .elementor-image-box-title { color: #fff; font-family: var(--font-head); }
.elementor-button { border-radius: 999px !important; font-family: var(--font-head); font-weight: 600; background: linear-gradient(135deg, #ff1f2b, var(--red) 55%, #a30610); color: #fff; transition: box-shadow .35s, transform .35s var(--ease); }
.elementor-button:hover { box-shadow: 0 14px 44px rgba(229, 9, 20, .55); color: #fff; transform: translateY(-2px); }
.elementor-accordion .elementor-tab-title, .elementor-toggle .elementor-tab-title { color: #fff; }
.elementor-accordion .elementor-tab-content, .elementor-toggle .elementor-tab-content { color: var(--muted); border-color: var(--line); }
.elementor-counter-number-wrapper { color: #fff; font-family: var(--font-head); }
.elementor-page .site-main { padding-top: var(--header-h); }
.elementor-editor-active .reveal, .is-elementor-preview .reveal, .elementor-editor-active .split-text .word > span, .is-elementor-preview .split-text .word > span { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .cursor, .is-elementor-preview .cursor { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero > .container, .hero-grid { grid-template-columns: 1fr; }
	.hero { min-height: 0; }
	.hero-visual { width: min(72%, 300px); margin-top: 10px; }
	.service-detail { grid-template-columns: 1fr; gap: 28px; }
	.service-detail__intro { position: static; }
	.about-intro, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.devit-form { grid-template-columns: 1fr; }
	.hero-chip { font-size: .72rem; padding: 7px 13px; }
	.whatsapp-float { right: 18px; bottom: 84px; width: 52px; height: 52px; }
	.back-to-top { right: 18px; bottom: 18px; }
	.author-box { flex-direction: column; text-align: center; }
	.post-nav { flex-direction: column; }
	.section-head { margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-ring, .hero-core, .hero-chip, .whatsapp-float::before { animation: none !important; }
}

/* ---------- Fix: keep hover/transition behaviour on revealed cards ---------- */
.glass-card.reveal.is-in { transition: transform .45s var(--ease), border-color .3s, box-shadow .4s; transition-delay: 0s; }
.glass-card.reveal.is-in:hover { transform: translateY(-6px); }
.project-card.reveal.is-in:hover { transform: translateY(-8px); }
