/* ============================================
   APEX AUTOMATIONS — Sections CSS
   Task 3: What We Do + Featured Work + CTA
   ============================================ */

/* ── Section Shared ── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: #d4a843;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 600;
  color: #f5f5f5;
  line-height: 1.25;
  margin-bottom: 60px;
}

.gold-text {
  color: #d4a843;
}

/* ── What We Do ── */
#what-we-do {
  padding: 140px 0;
  position: relative;
}

.wwd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.wwd-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 16px;
  padding: 40px 32px;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  opacity: 0;
  transform: translateY(40px);
}

.wwd-card:hover {
  border-color: rgba(212, 168, 67, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(212, 168, 67, 0.08);
}

.wwd-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.wwd-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 12px;
}

.wwd-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #a0a0a0;
  line-height: 1.6;
}

/* ── Featured Work ── */
#featured-work {
  padding: 140px 0;
  position: relative;
}

.fw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.fw-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(40px);
}

.fw-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
}

.fw-item:hover .fw-bg {
  transform: scale(1.05);
}

.fw-overlay {
  position: relative;
  z-index: 2;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  transition: background 0.4s;
}

.fw-item:hover .fw-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}

.fw-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4a843;
  margin-bottom: 12px;
  font-weight: 700;
}

.fw-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #f5f5f5;
  margin-bottom: 8px;
}

.fw-overlay p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #a0a0a0;
  line-height: 1.5;
  margin-bottom: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s, opacity 0.4s;
}

.fw-item:hover .fw-overlay p {
  max-height: 60px;
  opacity: 1;
}

.fw-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #d4a843;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
}

.fw-item:hover .fw-link {
  opacity: 1;
  transform: translateY(0);
}

.fw-cta {
  text-align: center;
}

/* ── Buttons ── */
.btn-outline {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: #d4a843;
  border: 1px solid rgba(212, 168, 67, 0.4);
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}

.btn-outline:hover {
  background: rgba(212, 168, 67, 0.08);
  border-color: #d4a843;
}

.btn-primary {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0a0a0a;
  background: #d4a843;
  padding: 16px 48px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: #e8c86a;
  transform: translateY(-2px);
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 160px 0 80px;
}

.cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
}

.cta-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: #a0a0a0;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.cta-section .btn-primary {
  opacity: 0;
  transform: translateY(20px);
}

.cta-contact {
  margin-top: 48px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #555;
  display: flex;
  justify-content: center;
  gap: 12px;
  opacity: 0;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid #1a1a1a;
}

.site-footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #444;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section-heading { font-size: 30px; }
  .wwd-cards { grid-template-columns: 1fr; gap: 20px; }
  .fw-grid { grid-template-columns: 1fr; gap: 20px; }
  .fw-item { height: 280px; }
  .cta-heading { font-size: 36px; }
  .cta-sub { font-size: 16px; }
  .cta-contact { flex-direction: column; gap: 6px; }

  /* Show project details on mobile */
  .fw-item .fw-overlay p {
    max-height: 60px;
    opacity: 1;
  }

  .fw-item .fw-link {
    opacity: 1;
    transform: translateY(0);
  }

  .fw-item .fw-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
  }
}

@media (max-width: 480px) {
  .section-heading { font-size: 26px; margin-bottom: 40px; }
  .wwd-card { padding: 28px 24px; }
  .cta-heading { font-size: 28px; }
}
