/**
 * service-page.css — Shared styles for all service pages
 * Rung Siam Naka
 */

/* ── Service Hero ─────────────────────────────────────── */
.svc-hero {
  padding: 7rem 0 4rem;
  background: linear-gradient(160deg, #FFFBF7 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.svc-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.svc-hero__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.svc-hero__content { flex: 1; min-width: 0; }
.svc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  color: var(--orange);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.svc-hero__content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--t1);
}
.svc-hero__content p {
  font-size: 1rem;
  color: var(--t3);
  line-height: 1.75;
  max-width: 540px;
}
.svc-hero__stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.svc-stat__num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.svc-stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--t4);
  margin-top: 0.25rem;
}
.svc-hero__visual {
  flex-shrink: 0;
}
.svc-hero__icon-wrap {
  width: 200px; height: 200px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(var(--icon-color-rgb, 249,115,22), 0.08), rgba(var(--icon-color-rgb, 249,115,22), 0.03));
  border: 1px solid rgba(249,115,22,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--icon-color, var(--orange));
}
@media (max-width: 768px) {
  .svc-hero__visual { display: none; }
  .svc-hero__stats { gap: 1.25rem; }
}

/* ── Features Grid ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 1023px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  border-color: rgba(232,101,10,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--fc-color, var(--orange));
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.84rem;
  color: var(--t3);
  line-height: 1.65;
}

/* ── Products Grid ────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 1023px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  border-color: rgba(232,101,10,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}
.product-card__img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--bg-3);
}
.product-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  color: var(--ph-color, var(--orange));
  opacity: 0.35;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
}
.product-card__badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card__badge--new { background: #22c55e; }
.product-card__body {
  padding: 1.25rem;
  flex: 1; display: flex; flex-direction: column;
}
.product-card__cat {
  font-size: 0.72rem;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.product-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.product-card__desc {
  font-size: 0.8rem;
  color: var(--t4);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.product-card__price-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  font-family: 'Inter', sans-serif;
}
.product-card__price-unit {
  font-size: 0.75rem;
  color: var(--t4);
  margin-left: 0.2rem;
}

/* ── Quote CTA Banner ─────────────────────────────────── */
.quote-cta {
  margin-top: 3rem;
  background: linear-gradient(135deg, #FFF7F0, #FEF3E2);
  border: 1px solid rgba(232,101,10,0.2);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.quote-cta__content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1; min-width: 0;
}
.quote-cta__icon {
  font-size: 2rem;
  color: var(--orange);
  flex-shrink: 0;
}
.quote-cta__content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.25rem;
}
.quote-cta__content p {
  font-size: 0.85rem;
  color: var(--t3);
  line-height: 1.5;
}

/* ── Section Header ───────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--t1);
  margin: 0.75rem 0 0.5rem;
}
.section-header p {
  color: var(--t3);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Dropdown active states ───────────────────────────── */
.nav-link--active {
  color: var(--orange) !important;
}
.dropdown-item--active {
  background: rgba(249,115,22,0.06) !important;
}

/* ══════════════════════════════════════════════════
   Hero Photo Visual (replaces icon-only box)
   ══════════════════════════════════════════════════ */
.svc-hero__img-wrap {
  width: 360px;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.svc-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.svc-hero__img-wrap:hover .svc-hero__img {
  transform: scale(1.05);
}

/* gradient overlay for readability */
.svc-hero__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.0) 60%,
    rgba(0,0,0,0.25) 100%
  );
  pointer-events: none;
}

/* icon badge pinned to bottom-right */
.svc-hero__badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(10,18,32,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 2;
}

@media (max-width: 900px) {
  .svc-hero__img-wrap {
    width: 300px;
    height: 210px;
  }
}

@media (max-width: 768px) {
  .svc-hero__img-wrap {
    display: none;
  }
}
