/* v580.css — Convergent Cloud Computing v5.8.0 visual enhancements
   Typography, hero, service cards, sectors, why-us, governance, micro-details,
   team, testimonials, custom cursor, reveal animations.
   Decision log: Photos sourced via CSS-only placeholders (cannot fetch autonomously).
   Real photos should be placed in assets/images/{srv,sectors,team}/ and
   referenced in HTML img[src] attributes. ============================================= */

/* ── Google Fonts: Playfair Display + Epilogue ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Epilogue:wght@300;400;500;600&display=swap');

:root {
  --ff-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:    'Epilogue', 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --cyan:       #00c8d7;
  --cyan-dim:   rgba(0,200,215,.15);
}

/* ── Typography: apply new fonts ─────────────────────────────────────────── */
body { font-family: var(--ff-body); }

h1, h2, h3,
.section-title,
.hero h1,
.section-kicker,
.partner-name,
.stat-value,
.kpi-num {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -.01em;
}

/* Keep nav, form labels, tags as Epilogue */
.nav-link, label, .pg-tags, .tag, .badge { font-family: var(--ff-body); }

/* ── Section kicker lines ─────────────────────────────────────────────────── */
.section-label::before,
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--cyan);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

/* Custom cursor removed — standard browser cursor restored */

/* ── Scrolled nav ─────────────────────────────────────────────────────────── */
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
  border-bottom-color: rgba(0,82,204,.12);
  padding-top: 0; padding-bottom: 0;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.scrolled .navbar { height: 56px; }

/* ── Hero: photo background + dark overlay ────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: #060e1c;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .22;
  filter: saturate(.4) brightness(.7);
}
/* dark gradient overlay on top of photo */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(135deg, rgba(6,14,28,.92) 0%, rgba(11,21,38,.80) 55%, rgba(14,31,61,.85) 100%);
  pointer-events: none;
}
/* grain + grid on top of gradient */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E"),
    linear-gradient(rgba(0,200,215,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,215,.04) 1px, transparent 1px);
  background-size: 200px 200px, 40px 40px, 40px 40px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 3; }
/* Hero text on dark bg */
.hero .hero-subtitle { color: rgba(255,255,255,.75); }
.hero .hero-tagline   { color: rgba(255,255,255,.55); }

/* ── Service card top bar ─────────────────────────────────────────────────── */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,82,204,.14);
}

/* ── Service card photo ───────────────────────────────────────────────────── */
.srv-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  border-radius: 6px 6px 0 0;
  margin-bottom: 12px;
  filter: saturate(.35) brightness(.55);
  transition: filter .5s ease, transform .5s ease;
}
.service-card:hover .srv-img {
  filter: saturate(.6) brightness(.7);
  transform: scale(1.03);
}

/* ── Why Us — 2-column split ─────────────────────────────────────────────── */
.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.why-photo-col {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 340px;
}
/* ── Why Us — 2-photo mosaic ─────────────────────────────────────────────── */
.why-mosaic {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
}
.why-mosaic-panel {
  position: relative;
  overflow: hidden;
  flex: 1.1;
}
.why-mosaic-panel--bottom {
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.why-mosaic-panel--bottom .why-mosaic-label {
  bottom: auto;
  top: 10px; left: 14px;
}
.why-mosaic-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.45) brightness(.6);
  display: block;
  transition: filter .5s ease, transform .6s ease;
}
/* Bottom panel: image fills behind stats card */
.why-mosaic-panel--bottom img {
  position: absolute; inset: 0;
}
.why-mosaic-panel:hover img {
  filter: saturate(.65) brightness(.72);
  transform: scale(1.03);
}
.why-mosaic-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,24,.75) 0%, transparent 55%);
  pointer-events: none;
}
.why-mosaic-label {
  position: absolute;
  bottom: 10px; left: 14px;
  font-size: .68rem; font-family: var(--ff-body);
  color: var(--cyan); letter-spacing: .07em;
  text-transform: uppercase; font-weight: 600;
  z-index: 2;
}
.why-stats-card {
  position: relative; z-index: 2;
  width: 100%; padding: 20px 22px;
  background: rgba(11,21,38,.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,200,215,.2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.why-stat { text-align: center; }
.why-stat-val {
  font-family: var(--ff-display); font-size: 1.4rem; font-weight: 900;
  color: var(--cyan); line-height: 1.1;
}
.why-stat-lbl { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 2px; }

@media (max-width: 900px) {
  .why-us-inner { grid-template-columns: 1fr; }
  .why-photo-col { display: none; }
}

/* ── Sector card left bar + CSS image placeholder ────────────────────────── */
.sector-card,
.solution-card {
  position: relative;
  padding-left: 0;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sector-card::after,
.solution-card::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
}
.sector-card:hover::after,
.solution-card:hover::after { transform: scaleY(1); }
.sector-card:hover,
.solution-card:hover { transform: translateX(3px); }

/* ── Sector card photo ────────────────────────────────────────────────────── */
.sector-img {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
  border-radius: 6px 6px 0 0;
  margin-bottom: 14px;
  filter: saturate(.35) brightness(.55);
  transition: filter .5s ease;
}
.sector-card:hover .sector-img,
.solution-card:hover .sector-img {
  filter: saturate(.6) brightness(.68);
}

/* ── Governance photo column enhancement ─────────────────────────────────── */
/* Works alongside existing .gov-layout flex in site.css.
   .gov-photo-col is added to .gov-illustration for enhanced styling. */
.gov-photo-col {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
/* Gradient overlay on the governance illustration */
.gov-photo-col::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,21,38,.6) 100%);
  pointer-events: none;
}

/* ── Team section ─────────────────────────────────────────────────────────── */
.team { padding: 80px 0; background: var(--bg-light); }
.team .section-title { text-align: center; margin-bottom: 8px; }
.team .section-subtitle { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: left;
  position: relative;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
/* Image wrap with Unsplash photo */
.team-img-wrap {
  position: relative;
  overflow: hidden;
}
.team-img-wrap img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: top;
  filter: saturate(.4) brightness(.65);
  display: block;
  transition: filter .5s ease, transform .5s ease;
}
.team-card:hover .team-img-wrap img {
  filter: saturate(.65) brightness(.75);
  transform: scale(1.04);
}
.team-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,24,1) 0%, rgba(8,12,24,.4) 50%, transparent 100%);
}
/* Small avatar circle bottom-left of image */
.team-avatar-circle {
  position: absolute; bottom: 56px; left: 14px;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(0,200,215,.55);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.team-avatar-circle canvas { width: 100%; height: 100%; display: block; }
/* Badge positioned over image */
.team-badge {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  font-size: .68rem; font-family: var(--ff-body);
  color: var(--cyan); letter-spacing: .05em;
  font-weight: 600; text-transform: uppercase; line-height: 1.4;
}
/* Body below image */
.team-body { padding: 16px 16px 20px; }
.team-name {
  font-family: var(--ff-display);
  font-weight: 700; font-size: .95rem;
  color: var(--navy); margin-bottom: 4px;
}
.team-spec {
  font-size: .75rem; color: var(--text-light);
  font-family: var(--ff-body); font-weight: 300;
  margin-bottom: 8px;
}
.team-exp {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; color: var(--text-light);
  font-family: var(--ff-body);
}
.exp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ── Testimonials placeholder ─────────────────────────────────────────────── */
/* Section content omitted — no real testimonials available yet.
   To activate: uncomment the testi-grid HTML below and add real content. */
.testimonials {
  padding: 80px 0;
  background: var(--bg-white);
  /* display: none; — hidden until real testimonials are added */
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 28px;
  border-left: 4px solid var(--primary);
  position: relative;
}
.testi-card::before {
  content: '\201C';
  font-family: var(--ff-display);
  font-size: 4rem; color: var(--primary-light);
  position: absolute; top: 8px; left: 18px;
  line-height: 1;
}
.testi-text {
  font-family: var(--ff-body);
  font-style: italic; color: var(--text-mid);
  margin-top: 24px; line-height: 1.7;
}
.testi-author { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-mid); flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: .875rem; color: var(--navy); }
.testi-company { font-size: .75rem; color: var(--text-light); }
@media (max-width: 860px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* ── Reveal animations (r, r2, r3 stagger) ──────────────────────────────── */
.r, .r2, .r3 {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.r2 { transition-delay: .12s; }
.r3 { transition-delay: .24s; }
.r.revealed, .r2.revealed, .r3.revealed {
  opacity: 1;
  transform: none;
}

/* ── Form selects: constrain to container ────────────────────────────────── */
.form-group select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

/* ── WhatsApp trigger button (inline, looks like a link) ─────────────────── */
.wa-trigger {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--primary); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.wa-trigger:hover { color: var(--cyan); }
.wa-trigger--footer {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .875rem;
}
.wa-trigger--footer:hover { color: var(--cyan); text-decoration: underline; }

/* ── WhatsApp modal ───────────────────────────────────────────────────────── */
.wa-modal-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(4,8,18,.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.wa-modal-box {
  background: var(--bg-white, #fff);
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  text-align: center;
}
.wa-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text-light, #666);
  line-height: 1; padding: 4px 6px; border-radius: 4px;
}
.wa-modal-close:hover { color: var(--navy, #0b1a34); background: var(--bg-light, #f5f7fa); }
.wa-modal-icon { margin-bottom: 16px; }
.wa-modal-title {
  font-family: var(--ff-display);
  font-size: 1.15rem; font-weight: 800;
  color: var(--navy, #0b1a34);
  margin: 0 0 16px; line-height: 1.3;
}
.wa-modal-rec {
  font-size: .93rem; color: var(--text, #1a2a40);
  line-height: 1.65; margin-bottom: 10px;
}
.wa-modal-warn {
  font-size: .8rem; color: var(--text-light, #6b7280);
  background: var(--bg-light, #f5f7fa);
  border-left: 3px solid var(--gold, #f59e0b);
  padding: 8px 12px; border-radius: 0 6px 6px 0;
  text-align: left; margin-bottom: 20px;
}
.wa-modal-actions {
  display: flex; flex-direction: column; gap: 10px;
}
.wa-modal-btn {
  display: block; padding: 12px 20px; border-radius: 8px;
  font-family: var(--ff-body); font-size: .9rem; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: opacity .2s ease, transform .15s ease;
  cursor: pointer;
}
.wa-modal-btn:hover { opacity: .88; transform: translateY(-1px); }
.wa-modal-btn--primary {
  background: var(--primary, #0052cc); color: #fff;
}
.wa-modal-btn--secondary {
  background: none; color: var(--text-light, #6b7280);
  border: 1px solid var(--border, #e2e8f0);
  font-weight: 400; font-size: .82rem;
}
.wa-modal-btn--secondary:hover { color: var(--navy, #0b1a34); border-color: var(--navy, #0b1a34); }

/* ── Thanks / queue success state ───────────────────────────────────────── */
.thanks-inner { padding: 2rem 1rem; text-align: center; }
.thanks-queue-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-light, #f1f5f9); border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px; padding: .35rem 1rem;
  font-size: .8rem; color: var(--text-light, #6b7280);
  margin: .75rem auto 1.25rem; font-weight: 500;
}
.thanks-queue-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold, #f59e0b);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.7); }
}

/* ── Utility: reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .r, .r2, .r3 { opacity: 1; transform: none; transition: none; }
  .service-card, .sector-card { transition: none; }
  .cursor, .cursor-ring { display: none; }
  .thanks-queue-dot { animation: none; }
}
