/* ================================================================
   RoHub Widgets – Frontend CSS
   Single file, all widgets. Fonts loaded via wp_enqueue_style.
   ================================================================ */

/* ----------------------------------------------------------------
   BANNER
   ---------------------------------------------------------------- */
.rohub-banner-wrap { position: relative; }

.rohub-banner {
	background: #0b1a2e;
	border: 1.5px solid rgba(255,180,0,.28);
	border-radius: 18px;
	padding: 28px 36px;
	font-family: 'DM Sans', sans-serif;
	display: flex;
	align-items: center;
	gap: 32px;
	position: relative;
	overflow: hidden;
}
.rohub-banner::before {
	content: '';
	position: absolute;
	top: -80px; right: -80px;
	width: 300px; height: 300px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255,180,0,.1) 0%, transparent 65%);
	pointer-events: none;
}

.rohub-banner__divider { width: 1px; height: 64px; background: rgba(255,255,255,.1); flex-shrink: 0; }

.rohub-banner__title-col { flex: 1.4; min-width: 0; }
.rohub-banner__title-col h2 {
	font-family: 'Playfair Display', serif;
	font-size: clamp(14px, 2vw, 20px);
	color: #fff; font-weight: 700; line-height: 1.3;
}
.rohub-banner__title-col h2 em { font-style: normal; color: #FFB400; }
.rohub-banner__title-col p { font-size: 12px; color: rgba(255,255,255,.38); margin-top: 5px; line-height: 1.5; }

.rohub-banner__price-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.rohub-banner__price-lbl { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 4px; }
.rohub-banner__price-row { display: flex; align-items: baseline; line-height: 1; }
.rohub-banner__price-sym { font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 700; color: #FFB400; line-height: 1; }
.rohub-banner__price-val { font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 700; color: #FFB400; line-height: 1; display: inline-block; transform-origin: center bottom; min-width: 66px; }
.rohub-banner__price-unit { font-size: 12px; color: rgba(255,255,255,.38); margin-left: 7px; padding-bottom: 4px; }
.rohub-banner__price-note { font-size: 10px; color: rgba(255,255,255,.25); margin-top: 4px; }

.rohub-banner__cta-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }

.rohub-btn-main {
	display: inline-flex; align-items: center; gap: 8px;
	background: #FFB400; color: #0b1a2e;
	font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
	padding: 13px 32px; border-radius: 10px; border: none;
	cursor: pointer; transition: transform .15s, box-shadow .15s;
	white-space: nowrap;
}
.rohub-btn-main:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,180,0,.38); }

.rohub-btn-link {
	font-size: 11px; color: rgba(255,255,255,.35); text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 1px; cursor: pointer; white-space: nowrap;
}
.rohub-btn-link:hover { color: rgba(255,255,255,.65); }

/* Modal */
.rohub-modal-bg {
	display: none; position: fixed; inset: 0;
	background: rgba(0,0,0,.72);
	align-items: center; justify-content: center;
	z-index: 99999; padding: 20px;
}
.rohub-modal-bg.open { display: flex; }
.rohub-modal {
	background: #0f2240;
	border: 1px solid rgba(255,180,0,.3);
	border-radius: 16px;
	padding: 32px 28px 24px;
	max-width: 540px; width: 100%;
	max-height: 90vh; overflow-y: auto;
}
.rohub-modal h2 { font-family: 'Playfair Display', serif; font-size: 18px; color: #FFB400; margin-bottom: 5px; font-weight: 700; }
.rohub-modal h3 { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); margin: 14px 0 5px; text-transform: uppercase; letter-spacing: 1px; }
.rohub-modal p, .rohub-modal li { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.65; }
.rohub-modal ul { padding-left: 18px; margin: 4px 0; }
.rohub-modal li { margin-bottom: 3px; }
.rohub-modal__sub { font-size: 12px; color: rgba(255,255,255,.38); margin-bottom: 16px; }
.rohub-modal__body hr, .rohub-modal__body h3 { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.1); }
.rohub-modal__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

.rohub-btn-accept {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: #FFB400; color: #0b1a2e;
	font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
	padding: 13px 36px; border-radius: 10px; border: none;
	cursor: pointer; transition: transform .15s, box-shadow .15s; width: 100%;
}
.rohub-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,180,0,.38); }

.rohub-btn-decline {
	font-size: 13px; font-weight: 500; color: rgba(255,255,255,.38);
	background: none; border: none; cursor: pointer; text-decoration: underline;
}
.rohub-btn-decline:hover { color: rgba(255,255,255,.65); }

/* Banner – price counter animations */
@keyframes rohub-count-bounce {
	0% { transform: scaleY(1) scaleX(1); }
	15% { transform: scaleY(.82) scaleX(1.12); }
	35% { transform: scaleY(1.18) scaleX(.92); }
	55% { transform: scaleY(.95) scaleX(1.04); }
	100% { transform: scaleY(1) scaleX(1); }
}
@keyframes rohub-final-bounce {
	0% { transform: scale(1); }
	20% { transform: scale(1.2) rotate(-2deg); }
	38% { transform: scale(.88) rotate(1.5deg); }
	56% { transform: scale(1.11) rotate(-1deg); }
	72% { transform: scale(.96); }
	88% { transform: scale(1.04); }
	100% { transform: scale(1) rotate(0); }
}
@keyframes rohub-glow-pulse {
	0%, 100% { text-shadow: 0 0 0 rgba(255,180,0,0); }
	50% { text-shadow: 0 0 22px rgba(255,180,0,.65), 0 0 44px rgba(255,180,0,.25); }
}

@media (max-width: 600px) {
	.rohub-banner { flex-direction: column; align-items: stretch; padding: 22px 18px; gap: 0; }
	.rohub-banner__divider { display: none; }
	.rohub-banner__title-col { text-align: center; margin-bottom: 18px; }
	.rohub-banner__price-col { align-items: center; margin-bottom: 18px; }
	.rohub-banner__cta-col { align-items: stretch; }
	.rohub-btn-main { width: 100%; justify-content: center; padding: 15px 32px; font-size: 15px; }
	.rohub-btn-link { text-align: center; display: block; }
}

/* ----------------------------------------------------------------
   PROFILE
   ---------------------------------------------------------------- */
.rohub-profile-wrap { font-family: 'DM Sans', sans-serif; max-width: 960px; margin: 0 auto; padding: 60px 24px; }
.rohub-profile-inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }

.rohub-profile-img-wrap { position: relative; }
.rohub-profile-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; border-radius: 6px; }
.rohub-profile-badge {
	position: absolute; bottom: -14px; left: 20px;
	background: #c49c57; color: #111;
	padding: 10px 16px; border-radius: 4px;
	font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
}

.rohub-profile-right { padding-top: 8px; }
.rohub-profile-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #c49c57; margin-bottom: 10px; }
.rohub-profile-name { font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 700; line-height: .95; color: #1a1a1a; margin-bottom: 6px; white-space: pre-line; }
.rohub-profile-role { font-size: 13px; color: #888; margin-bottom: 28px; letter-spacing: .05em; }
.rohub-profile-divider { width: 40px; height: 2px; background: #c49c57; margin-bottom: 28px; }

.rohub-profile-tags-label { font-size: 10px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: #c49c57; margin-bottom: 12px; }
.rohub-profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.rohub-profile-tag { border: 1px solid #c49c57; color: #c49c57; background: rgba(196,156,87,.06); font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius: 3px; }

.rohub-profile-quals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rohub-profile-qual { font-size: 12px; color: #555; padding: 8px 10px; border-left: 2px solid #c49c57; background: #fafaf8; line-height: 1.4; }

.rohub-profile-diplomas { margin-top: 40px; }
.rohub-profile-diplomas-label { font-size: 10px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: #c49c57; margin-bottom: 14px; }
.rohub-profile-dip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rohub-profile-dip { aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; border: 1px solid #e8e3d8; cursor: pointer; }
.rohub-profile-dip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.rohub-profile-dip:hover img { transform: scale(1.06); }

/* Lightbox */
.rohub-lightbox {
	display: none; position: fixed; inset: 0;
	background: rgba(0,0,0,.88); z-index: 99999;
	align-items: center; justify-content: center;
}
.rohub-lightbox.on { display: flex; }
.rohub-lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.rohub-lightbox-close {
	position: fixed; top: 20px; right: 28px;
	color: #fff; font-size: 28px; cursor: pointer;
	background: none; border: none; line-height: 1;
}

@media (max-width: 700px) {
	.rohub-profile-inner { grid-template-columns: 1fr; }
	.rohub-profile-name { font-size: 38px; }
	.rohub-profile-quals { grid-template-columns: 1fr; }
	.rohub-profile-dip-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------------
   TEAM FLIP CARDS
   ---------------------------------------------------------------- */
.rohub-team-section { max-width: 1400px; margin: 0 auto; padding: 50px 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.rohub-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.rohub-flip-card { perspective: 1000px; height: 400px; cursor: pointer; }
.rohub-flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.rohub-flip-card.flipped .rohub-flip-card-inner { transform: rotateY(180deg); }

.rohub-flip-card-front,
.rohub-flip-card-back {
	position: absolute; width: 100%; height: 100%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.15); overflow: hidden;
}

.rohub-flip-card-front { background: #fff; display: flex; flex-direction: column; }
.rohub-flip-card-back { color: #fff; transform: rotateY(180deg); padding: 35px; overflow-y: auto; }

.rohub-flip-card-img-wrap { width: 100%; height: 250px; overflow: hidden; position: relative; background: #f3f4f6; }
.rohub-flip-card-img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; transition: transform .3s ease; }
.rohub-flip-card:hover .rohub-flip-card-img { transform: scale(1.05); }
.rohub-flip-card-placeholder {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-size: 60px; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.rohub-flip-card-img + .rohub-flip-card-placeholder { display: none; }

.rohub-flip-card-hint {
	position: absolute; bottom: 15px; right: 15px;
	background: rgba(255,255,255,.95); color: #667eea;
	padding: 8px 16px; border-radius: 20px;
	font-size: 13px; font-weight: 600;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	pointer-events: none;
	animation: rohub-card-pulse 2s infinite;
}
.rohub-flip-card.flipped .rohub-flip-card-hint { display: none; }

.rohub-flip-card-info { padding: 20px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; background: #fff; border-bottom: 4px solid #667eea; }
.rohub-flip-card-name { font-size: 22px; font-weight: 700; color: #1f2937; margin-bottom: 8px; }
.rohub-flip-card-role { font-size: 16px; font-weight: 600; color: #667eea; text-transform: uppercase; letter-spacing: .5px; }

.rohub-flip-card-close {
	position: absolute; top: 20px; right: 20px;
	background: rgba(255,255,255,.3); color: #fff; border: none;
	width: 35px; height: 35px; border-radius: 50%; font-size: 20px; cursor: pointer;
	transition: background .3s; display: flex; align-items: center; justify-content: center;
}
.rohub-flip-card-close:hover { background: rgba(255,255,255,.5); }
.rohub-flip-card-back-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid rgba(255,255,255,.3); }
.rohub-flip-card-back-desc { font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.rohub-flip-card-back-details { font-size: 14px; line-height: 1.7; opacity: .95; }

@keyframes rohub-card-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

@media (max-width: 1024px) { .rohub-team-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 768px) {
	.rohub-team-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
	.rohub-flip-card { height: 380px; }
	.rohub-flip-card-img-wrap { height: 220px; }
	.rohub-flip-card-back { padding: 20px; font-size: 13px; }
	.rohub-flip-card-name { font-size: 16px; }
	.rohub-flip-card-role { font-size: 12px; }
}
@media (max-width: 480px) {
	.rohub-team-grid { grid-template-columns: 1fr; gap: 20px; }
	.rohub-flip-card { height: 420px; }
	.rohub-flip-card-img-wrap { height: 260px; }
}

/* ----------------------------------------------------------------
   SERVICES
   ---------------------------------------------------------------- */
.rohub-services-wrap {
	font-family: 'Plus Jakarta Sans', sans-serif;
	background: #fff;
	border: 1px solid #D6E4F0;
	border-top: 4px solid #1A6FBF;
	border-radius: 16px;
	padding: 40px 36px;
	box-shadow: 0 8px 40px rgba(26,111,191,.08), 0 2px 8px rgba(0,0,0,.04);
	position: relative; overflow: hidden;
}
.rohub-services-wrap::before {
	content: ''; position: absolute; top: 0; right: 0;
	width: 160px; height: 160px;
	background: radial-gradient(circle at top right, rgba(74,144,217,.08), transparent 70%);
	pointer-events: none;
}
.rohub-services-wrap::after {
	content: ''; position: absolute; bottom: 0; left: 0;
	width: 120px; height: 120px;
	background: radial-gradient(circle at bottom left, rgba(26,111,191,.06), transparent 70%);
	pointer-events: none;
}

.rohub-services-heading { text-align: center; margin-bottom: 32px; }
.rohub-services-badge {
	display: inline-block;
	font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
	color: #1A6FBF; border: 1px solid rgba(26,111,191,.3);
	padding: 6px 18px; border-radius: 30px; margin-bottom: 12px;
}
.rohub-services-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; color: #0A0F1E; line-height: 1.05;
}
.rohub-services-title span { color: #1A6FBF; }
.rohub-services-divider { width: 50px; height: 3px; background: linear-gradient(90deg, #1A6FBF, #4A90D9); border-radius: 2px; margin: 16px auto 0; }

.rohub-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 10px; }

.rohub-services-card {
	background: #F7FAFF; border: 1px solid #D6E4F0; border-left: 3px solid #1A6FBF;
	border-radius: 8px; padding: 11px 13px;
	transition: background .2s, box-shadow .2s, border-color .2s;
}
.rohub-services-card:hover { background: #EBF3FF; border-color: #4A90D9; box-shadow: 0 4px 16px rgba(26,111,191,.1); }
.rohub-services-card-name { font-size: 12px; font-weight: 600; color: #0A0F1E; line-height: 1.45; }

.rohub-services-footer { text-align: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid #E8EFF8; font-size: 12px; color: #7A95B0; letter-spacing: .5px; }

@media (max-width: 600px) {
	.rohub-services-wrap { padding: 28px 18px; }
	.rohub-services-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (max-width: 380px) {
	.rohub-services-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   MISC
   ---------------------------------------------------------------- */
.rohub-no-data { padding: 20px; background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; color: #856404; }
