/* ============================================================
   CREATIONS — Quartz & Granite Countertops
   services.css  |  Services page styles
   ============================================================ */

/* ── Page Hero (shared between services & contact) ─────────── */
.page-hero {
  position: relative;
  padding-top: var(--header-h);
  padding-bottom: 5rem;
  overflow: hidden;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 60%, rgba(90,80,70,0.15) 0%, transparent 65%),
    linear-gradient(160deg, #0e0e0e 0%, #1a1a18 50%, #141414 100%);
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  animation: heroReveal 0.9s var(--ease) both;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--clr-white);
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Service Detail Blocks ──────────────────────────────────── */
.service-detail-block {
  padding: var(--gap-lg) 0;
}

.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.service-detail-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: var(--clr-accent);
  margin-top: 0.4rem;
}
.service-detail-icon svg {
  width: 100%;
  height: 100%;
}

.service-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--clr-white);
  line-height: 1.15;
}

.service-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail-body--reverse .service-detail-text { order: 2; }
.service-detail-body--reverse .service-detail-visual { order: 1; }

.service-feature-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-feature-list li {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.service-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--clr-accent);
}

/* Service visual blocks (placeholder stone textures) */
.service-detail-visual {
  height: 340px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.service-detail-visual:hover { transform: scale(1.01); }

.sv-install {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(90,80,65,0.6) 0%, transparent 55%),
    linear-gradient(145deg, #3a3530 0%, #2a2520 55%, #30291e 100%);
}
.sv-repair {
  background:
    radial-gradient(ellipse at 65% 35%, rgba(110,100,88,0.5) 0%, transparent 50%),
    linear-gradient(130deg, #6a6560 0%, #525050 100%);
}
.sv-fabrication {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(200,169,110,0.1) 0%, transparent 60%),
    linear-gradient(160deg, #c8c4be 0%, #b0ada8 55%, #c4c2bc 100%);
}
.sv-sealing {
  background:
    repeating-linear-gradient(
      72deg,
      transparent,
      transparent 28px,
      rgba(90,85,80,0.18) 28px,
      rgba(90,85,80,0.18) 29px
    ),
    linear-gradient(140deg, #888480 0%, #706e6a 100%);
}

/* Subtle overlay grain on service visuals */
.service-detail-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.service-divider {
  height: 1px;
  background: var(--clr-border);
  width: 100%;
}

/* ── Materials Section ──────────────────────────────────────── */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  margin-top: 3rem;
}

.material-card {
  background: var(--clr-bg-alt);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.material-swatch {
  height: 160px;
  transition: transform 0.5s var(--ease);
}
.material-card:hover .material-swatch { transform: scale(1.04); }

.ms-quartz {
  background:
    radial-gradient(ellipse at 40% 50%, rgba(200,196,190,0.6) 0%, transparent 60%),
    linear-gradient(145deg, #dedad4 0%, #c8c4be 60%, #d0ccc6 100%);
}
.ms-granite {
  background:
    repeating-conic-gradient(rgba(60,55,50,0.15) 0%, transparent 0.3%),
    linear-gradient(150deg, #3a3530 0%, #2c2a26 60%, #3a3530 100%);
}
.ms-marble {
  background:
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 18px,
      rgba(180,175,170,0.25) 18px,
      rgba(180,175,170,0.25) 19px
    ),
    linear-gradient(160deg, #f0ede8 0%, #e0ddd8 60%, #ece9e4 100%);
}
.ms-quartzite {
  background:
    radial-gradient(ellipse at 55% 40%, rgba(180,160,130,0.3) 0%, transparent 55%),
    linear-gradient(145deg, #c0b8a8 0%, #a8a098 60%, #b8b0a0 100%);
}

.material-info {
  padding: 1.5rem;
  flex: 1;
}

.material-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--clr-white);
  margin-bottom: 0.6rem;
}

.material-desc {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--clr-stone-mid);
  font-weight: 300;
}

/* ── Beyond Block ───────────────────────────────────────────── */
.service-beyond-block {
  padding-top: var(--gap-lg);
  padding-bottom: var(--gap-sm);
}

.service-beyond-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 3.5rem 3.5rem;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}

/* Subtle warm glow in the corner */
.service-beyond-inner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(200,169,110,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.service-beyond-text {
  position: relative;
  z-index: 1;
}

.service-beyond-qualities {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.beyond-quality-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.beyond-quality-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--clr-accent);
  flex-shrink: 0;
}

.beyond-quality-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--clr-stone-light);
}

@media (max-width: 900px) {
  .service-beyond-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 2rem;
  }
}


@media (max-width: 1024px) {
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .service-detail-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-detail-body--reverse .service-detail-text { order: 1; }
  .service-detail-body--reverse .service-detail-visual { order: 2; }
  .service-detail-visual { height: 240px; }
}

@media (max-width: 600px) {
  .materials-grid { grid-template-columns: 1fr; }
  .service-detail-header { flex-direction: column; gap: 1rem; }
}
