/* Globotech — Block-specific styles (frontend) */

/* ── BLOCK WRAPPERS ───────────────────────────────────────────────────────── */
.wp-block-globotech-hero,
.wp-block-globotech-page-hero,
.wp-block-globotech-stats-band,
.wp-block-globotech-trust-logos,
.wp-block-globotech-bento-grid,
.wp-block-globotech-process-steps,
.wp-block-globotech-tech-tabs,
.wp-block-globotech-case-studies,
.wp-block-globotech-comparison-table,
.wp-block-globotech-why-choose,
.wp-block-globotech-faq-accordion,
.wp-block-globotech-cta-section,
.wp-block-globotech-features-grid,
.wp-block-globotech-results-metrics,
.wp-block-globotech-use-case-cards,
.wp-block-globotech-platform-logos,
.wp-block-globotech-service-hub-cards,
.wp-block-globotech-team-grid,
.wp-block-globotech-blog-grid,
.wp-block-globotech-contact-form,
.wp-block-globotech-marquee-logos,
.wp-block-globotech-showcase-section {
  display: block;
}

/* Override WP default block margins */
.wp-block-globotech-hero,
.wp-block-globotech-page-hero {
  margin-top: 0;
  margin-bottom: 0;
}

/* ── ALIGN WIDE / FULL ────────────────────────────────────────────────────── */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  max-width: none;
  width: 100%;
}

/* ── BLOCK INNER SPACING ──────────────────────────────────────────────────── */
.block-section {
  padding: 100px 0;
}
@media (max-width: 768px) {
  .block-section { padding: 60px 0; }
}

/* ── SECTION HEADER ───────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal, #33c5f3);
  background: rgba(51,197,243,0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── HERO BLOCK ───────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d0f14;
}
.hero-section .hero-photo {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.hero-section .overlay-1 {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(13,15,20,0.9) 0%, rgba(13,15,20,0.6) 100%);
}
.hero-section .overlay-2 {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(51,197,243,0.08) 0%, transparent 70%);
}
.hero-section .hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .hero-section .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* ── PAGE HERO BLOCK ──────────────────────────────────────────────────────── */
.page-hero-section {
  padding: 140px 0 80px;
  background: #0d0f14;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(51,197,243,0.08) 0%, transparent 70%);
}
.page-hero-section .hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal, #33c5f3);
  background: rgba(51,197,243,0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.page-hero-section h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.page-hero-section .hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── STATS BAND BLOCK ─────────────────────────────────────────────────────── */
.stats-band {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 48px 0;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
@media (max-width: 768px) {
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-band__grid { grid-template-columns: 1fr; }
}
.stat-val {
  display: block;
  font-size: 40px;
  font-weight: 900;
  color: var(--teal, #33c5f3);
  line-height: 1;
}
.stat-lbl {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── BENTO GRID BLOCK ─────────────────────────────────────────────────────── */
.bento-section {
  padding: 100px 0;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.bc {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.bc:hover {
  border-color: rgba(51,197,243,0.25);
  transform: translateY(-4px);
}
.bc-ai {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bc-ai { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bc-ai { grid-column: span 1; }
}

/* ── PROCESS STEPS BLOCK ──────────────────────────────────────────────────── */
.process-section {
  padding: 100px 0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.ps-step {
  position: relative;
}
.ps-num {
  font-size: 48px;
  font-weight: 900;
  color: rgba(51,197,243,0.15);
  line-height: 1;
  margin-bottom: 16px;
}
.connector {
  position: absolute;
  top: 28px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.07);
  z-index: 1;
  overflow: hidden;
}
.conn-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--teal, #33c5f3);
}
.conn-dot {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal, #33c5f3);
}
@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
  .connector { display: none; }
}

/* ── TECH TABS BLOCK ──────────────────────────────────────────────────────── */
.tech-tabs-section {
  padding: 100px 0;
}
.tech-tab-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.tech-tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.25s;
}
.tech-tab-btn:hover {
  background: rgba(51,197,243,0.08);
  color: rgba(255,255,255,0.9);
  border-color: rgba(51,197,243,0.2);
}
.tech-tab-btn.active {
  background: var(--teal, #33c5f3);
  color: #fff;
  border-color: transparent;
}
.tech-tab-panel {
  display: none;
}
.tech-tab-panel.active {
  display: block;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  transition: all 0.25s;
}
.tech-item:hover {
  background: rgba(51,197,243,0.06);
  border-color: rgba(51,197,243,0.2);
  color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}
.tech-item img {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: brightness(0.8);
}
.tech-item:hover img { filter: brightness(1); }

/* ── FAQ ACCORDION BLOCK ──────────────────────────────────────────────────── */
.faq-section {
  padding: 100px 0;
}
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .faq-inner { grid-template-columns: 1fr; }
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover { color: #fff; }
.faq-q.open { color: var(--teal, #33c5f3); }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
  font-size: 16px;
  line-height: 1;
}
.faq-q.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(51,197,243,0.15);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.25,0.46,0.45,0.94), padding 0.4s;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.faq-a.open {
  max-height: 500px;
  padding-bottom: 20px;
}

/* ── CTA SECTION BLOCK ────────────────────────────────────────────────────── */
.cta-block {
  padding: 100px 0;
  background: linear-gradient(135deg, #0d1821 0%, #0f1117 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(51,197,243,0.07) 0%, transparent 70%);
}
.cta-block .cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51,197,243,0.12) 0%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-block .container { position: relative; z-index: 1; }

/* ── RESULTS METRICS BLOCK ────────────────────────────────────────────────── */
.results-section {
  padding: 100px 0;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
}
.metrics-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.metric-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.metric-card .metric-val {
  font-size: 36px;
  font-weight: 900;
  color: var(--teal, #33c5f3);
  line-height: 1;
}
.metric-card .metric-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chart-bars { display: flex; flex-direction: column; gap: 16px; }
.chart-row { }
.chart-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}
.chart-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal, #33c5f3), #1ab0e0);
  transition: width 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ── CONTACT FORM BLOCK ───────────────────────────────────────────────────── */
.contact-section {
  padding: 100px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; }
}
.contact-form-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: var(--fb, 'Inter', sans-serif);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal, #33c5f3);
  box-shadow: 0 0 0 3px rgba(51,197,243,0.12);
  outline: none;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px;
}
.contact-info-card .info-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(51,197,243,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--teal, #33c5f3);
  font-size: 18px;
}
.contact-info-card .info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.contact-info-card .info-val {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.contact-info-card a { color: inherit; text-decoration: none; }
.contact-info-card a:hover { color: var(--teal, #33c5f3); }

/* ── BLOG GRID BLOCK ──────────────────────────────────────────────────────── */
.blog-section {
  padding: 100px 0;
}
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.blog-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.25s;
}
.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--teal, #33c5f3);
  color: #fff;
  border-color: transparent;
}
.blog-grid-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 900px) {
  .blog-grid-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid-wrap { grid-template-columns: 1fr; }
}
.blog-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(51,197,243,0.25);
}
.blog-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: rgba(51,197,243,0.05);
}
.blog-card__body { padding: 24px; }
.blog-card__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal, #33c5f3);
  margin-bottom: 10px;
}
.blog-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--teal, #33c5f3); }
.blog-card__excerpt {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 16px;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.blog-card__meta .sep { opacity: 0.5; }

/* ── TEAM GRID BLOCK ──────────────────────────────────────────────────────── */
.team-section {
  padding: 100px 0;
}
.team-grid-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 900px) {
  .team-grid-wrap { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .team-grid-wrap { grid-template-columns: repeat(2, 1fr); }
}
.team-card {
  text-align: center;
}
.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 2px solid rgba(255,255,255,0.06);
}
.team-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 13px;
  color: var(--teal, #33c5f3);
}
