/* ============================================================
   BARUCH COMMUNITY BUILDERS — Home Page Styles
   ============================================================ */

/* ─── Hero Section ─── */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* Modern small viewport height */
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,40,23,0.9) 0%,
    rgba(26,93,59,0.75) 40%,
    rgba(11,40,23,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(243,146,0,0.15);
  border: 1px solid rgba(243,146,0,0.3);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.4s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 span {
  color: var(--accent);
  position: relative;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.2s both;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { top: 6px; opacity: 1; }
  80% { top: 20px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── About Snapshot ─── */
.about-snapshot {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: 32px;
  right: -20px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 160px;
}

.about-badge .number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.about-badge .label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.mv-card {
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.mv-card:hover {
  background: var(--primary);
  border-left-color: var(--accent);
  transform: translateY(-4px);
}

.mv-card:hover h4,
.mv-card:hover p {
  color: var(--white);
}

.mv-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.mv-card p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.6;
}

/* ─── Services Grid ─── */
.services-section {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(26,93,59,0.1), rgba(26,93,59,0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

.service-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(26,93,59,0.06);
  line-height: 1;
}

/* ─── Why Choose Us ─── */
.why-section { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--off-white);
  transform: translateX(8px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(243,146,0,0.3);
}

.feature-item h4 {
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

.why-image-stack {
  position: relative;
  height: 520px;
}

.why-img-1, .why-img-2 {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.why-img-1 {
  width: 75%;
  height: 380px;
  top: 0;
  right: 0;
}

.why-img-2 {
  width: 60%;
  height: 260px;
  bottom: 0;
  left: 0;
  border: 6px solid var(--white);
}

/* ─── Sectors / Clients ─── */
.clients-section { background: var(--off-white); }

.sectors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}

.sector-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--white);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-dark);
  transition: var(--transition);
  cursor: default;
}

.sector-pill:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sector-pill span { font-size: 1.2rem; }

/* ─── CTA Section ─── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(243,146,0,0.06);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  bottom: -150px;
  left: -80px;
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Responsive index ─── */
@media (max-width: 1024px) {
  .about-grid, .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-image-main { height: 400px; }
  .why-image-stack { height: 400px; }
}

@media (max-width: 768px) {
  .hero { text-align: center; padding: 140px 0 100px; }
  .hero-content { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-scroll { display: none; }
  .about-image-main { height: 320px; }
  .why-image-stack { height: 320px; }
  .service-card { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-badge { right: 10px; bottom: 10px; padding: 12px 16px; min-width: 120px; }
  .about-badge .number { font-size: 1.8rem; }
  .about-badge .label { font-size: 0.65rem; }
  .why-image-stack { height: 280px; }
  .sector-pill { padding: 10px 18px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .about-image-main { height: 240px; }
  .why-image-stack { height: 220px; }
  .feature-item { padding: 16px; gap: 16px; }
  .feature-icon { width: 44px; height: 44px; font-size: 1.2rem; }
}
