/*
 * sections.css
 * ─────────────────────────────────────────────────────────
 * Styles for all content sections:
 *   - Before / After
 *   - Why Choose Us cards
 *   - Services grid
 *   - Process steps
 *   - Reviews
 *   - Blog / Tips
 * ─────────────────────────────────────────────────────────
 */

/* ── Before / After ──────────────────────────────────── */
.ba-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ba-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ba-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(5, 36, 109, 0.25);
}

.ba-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 36, 109, 0.78) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  z-index: 3;
  pointer-events: none;
}

.ba-card:hover .ba-hover-overlay {
  opacity: 1;
}

.ba-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 1px;
  z-index: 2;
}

.ba-label.after {
  background: var(--red);
}

.ba-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder gradient rooms */
.room-before { background: linear-gradient(145deg, #c8bba0 0%, #a89880 50%, #c8bba0 100%); }
.room-after  { background: linear-gradient(145deg, #b8c4d4 0%, #8fa2be 50%, #c4cfde 100%); }

.room-floor {
  width: 90%;
  height: 22px;
  background: #8b6f47;
  border-radius: 4px 4px 0 0;
}

.room-floor.light {
  background: #c4a97a;
}

/* ── Why Choose Us ───────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform 0.2s;
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.why-card h3 {
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.why-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ── Services ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.svc-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.svc-card:hover {
  transform: translateY(-4px);
}

.svc-img {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.svc-img-int { background: linear-gradient(135deg, #dce6f4, #b8c8e8); }
.svc-img-ext { background: linear-gradient(135deg, #e8f4e0, #b4d8a0); }
.svc-img-com { background: linear-gradient(135deg, #fdecea, #f5c4be); }
.svc-img-cab { background: linear-gradient(135deg, #fef9e0, #f5e6a0); }

.svc-body {
  padding: 18px 20px 22px;
}

.svc-body h3 {
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 6px;
}

.svc-body p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ── Process Steps ───────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}

.step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 36px;
  font-size: 1.8rem;
  color: var(--red);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step h3 {
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 6px;
}

.step p {
  font-size: 0.88rem;
  color: var(--gray);
}

/* ── Reviews ─────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer-info h4 { font-size: 1rem;   color: var(--blue); }
.reviewer-info p  { font-size: 0.82rem; color: var(--gray); }

.stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.95rem;
  font-style: italic;
}

/* ── Blog / Tips ─────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.bi-1 { background: linear-gradient(135deg, #d4e4f7, #a8c8ef); }
.bi-2 { background: linear-gradient(135deg, #fdf0d4, #f5d89a); }
.bi-3 { background: linear-gradient(135deg, #dff5e4, #a0d8b0); }

.blog-body {
  padding: 20px;
}

.blog-cat {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.blog-body h3 {
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.blog-body p {
  font-size: 0.88rem;
  color: var(--gray);
}

.blog-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.blog-link:hover {
  text-decoration: underline;
}
