/* Chiranjeevi Group — global styles */
body {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

/* Section helpers */
.section-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #41506E;
  line-height: 1.25;
  margin-bottom: 1rem;
}

/* Header nav */
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover { color: #41506E; }
.nav-active { color: #41506E; border-bottom-color: #EB5564; }
.nav-dropdown:hover .dropdown-menu { display: block; }
#site-header.scrolled { box-shadow: 0 4px 20px rgba(65, 80, 110, .08); }

/* Banner grid pattern */
.banner-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Stat cards */
.stat-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.stat-num { font-size: 1.7rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: .8rem; color: #64748b; line-height: 1.4; }

/* Brand philosophy section background (about page) */
.philosophy-bg {
  background-image: url('/static/img/elements-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Element tiles (about page) */
.element-tile {
  background: rgba(20, 28, 45, .45);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 18px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.element-dot {
  display: block;
  width: 14px; height: 14px;
  border-radius: 9999px;
  margin: 0 auto 10px;
}

/* Synergy tiles (verticals page) */
.synergy-tile {
  background: #fff;
  border: 2px solid;
  border-radius: 14px;
  padding: 28px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #41506E;
  font-size: .9rem;
  box-shadow: 0 2px 10px rgba(65,80,110,.06);
}
.synergy-tile i { font-size: 1.4rem; }

/* Leader profile details toggle */
.leader-details summary { list-style: none; }
.leader-details summary::-webkit-details-marker { display: none; }
.leader-details .when-open { display: none; }
.leader-details[open] .when-open { display: inline; }
.leader-details[open] .when-closed { display: none; }

/* Accordion */
.spec-accordion summary { list-style: none; }
.spec-accordion summary::-webkit-details-marker { display: none; }

/* Forms */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #41506E;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none;
  border-color: #3796C8;
  box-shadow: 0 0 0 3px rgba(55,150,200,.15);
}

/* Footer socials */
.social-icon {
  width: 36px; height: 36px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 14px;
  transition: all .2s;
}
.social-icon:hover { background: #fff; color: #41506E; border-color: #fff; }

/* Contact social pills */
.contact-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  transition: all .2s;
}
.contact-social:hover { border-color: #41506E; color: #41506E; }

/* Smooth anchors */
html { scroll-behavior: smooth; }

/* Metallic gold text (hero: Energy) */
.metallic-gold {
  display: inline-block;
  padding: 0 0.12em 0.08em 0;
  margin-right: -0.04em;
  background: linear-gradient(105deg, #8C6D1F 0%, #D4AF37 25%, #F9E79B 48%, #D4AF37 62%, #B8860B 85%, #E6C25A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Vertical title colors */
.title-energy {
  display: inline-block;
  padding: 0 0.12em 0.08em 0;
  margin-right: -0.04em;
  background: linear-gradient(105deg, #8C6D1F 0%, #D4AF37 25%, #F9E79B 48%, #D4AF37 62%, #B8860B 85%, #E6C25A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.title-estates { color: #7CB342; }
.title-engineering { color: #8B5E3C; }

/* Enjoin hero video */
.enjoin-hero-video,
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Client logos marquee */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff, transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #fff, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-img {
  height: 220px;
  width: auto;
  flex-shrink: 0;
  margin-right: 60px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  /* one image + one gap = 25% of a 4-copy track */
  to { transform: translateX(-25%); }
}
@media (max-width: 640px) {
  .marquee-img { height: 150px; margin-right: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
