/* ============================================
   SIHIA AFRICA LTD — SMART HOME PAGE CSS
   Blue × Gold × White Premium Design
   ============================================ */

/* Hero inherits .page-hero from sound.css */

/* ── Automation Systems Grid ───────────────── */
.automation-section {
  background: var(--off-white);
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.auto-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.auto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.auto-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.5);
}

.auto-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(29,78,216,0.25) 60%, transparent 100%);
  z-index: 2;
}

.auto-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.auto-card h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.auto-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}

.auto-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auto-features-list li {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auto-features-list li::before {
  content: '✓';
  color: var(--gold-light);
}

/* ── AI Platform Section ──────────────────── */
.ai-platform-section {
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.platform-visual {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.platform-hub {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-core {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 2;
  position: relative;
  box-shadow: 0 0 40px rgba(29,78,216,0.6), 0 0 80px rgba(29,78,216,0.2);
}

.hub-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(96,165,250,0.3);
  animation: pulseHub 3s ease-out infinite;
}

.hub-ring:nth-child(2) { width: 120px; height: 120px; animation-delay: 0.5s; }
.hub-ring:nth-child(3) { width: 160px; height: 160px; animation-delay: 1s; }
.hub-ring:nth-child(4) { width: 180px; height: 180px; animation-delay: 1.5s; }

@keyframes pulseHub {
  0%   { opacity: 0.6; transform: scale(0.95); }
  50%  { opacity: 1;   transform: scale(1); }
  100% { opacity: 0.6; transform: scale(0.95); }
}

/* ── How We Work Section ─────────────────── */
.how-section {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.step-card {
  text-align: center;
  padding: var(--space-md);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--border-blue);
  background: var(--blue-pale);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-card:nth-child(2) .step-number { background: var(--gold); }
.step-card:nth-child(3) .step-number { background: var(--blue-dark); }

.step-card h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ── Packages Table ──────────────────────── */
.packages-section {
  background: var(--off-white);
}

.packages-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-blue);
  margin-top: var(--space-lg);
}

/* ── Testimonial / Results Strip ─────────── */
.results-section {
  background: var(--blue-dark);
  padding: var(--space-lg) 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  text-align: center;
}

.result-item {
  padding: var(--space-md);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: var(--radius-md);
}

.result-item .result-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 899px) {
  .automation-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .results-grid { grid-template-columns: 1fr; }
  .auto-card { height: 320px; }
}
