/* ============================================================
   ECO CONFORTSISTEM — services.css
   Niche landing pages only. Cascades after style.css.
   No new fonts, no new colors — reuses CSS variables from style.css.
   ============================================================ */

/* ── Page layout ──────────────────────────────────────────── */
.service-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
}

/* ── Hero (niche pages) ───────────────────────────────────── */
.niche-hero {
  position: relative;
  padding: 12rem 8vw 6rem;
  border-bottom: 1px solid rgba(0, 201, 167, 0.12);
  overflow: hidden;
  background-color: var(--bg);
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.niche-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--mint), var(--orange));
  z-index: 3;
}
.niche-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(9, 22, 30, 0.82) 0%, rgba(9, 22, 30, 0.55) 50%, rgba(9, 22, 30, 0.25) 100%),
    radial-gradient(ellipse 70% 60% at 0% 50%, rgba(0, 201, 167, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.niche-hero .niche-hero-inner { position: relative; z-index: 2; }
@media (max-width: 768px) {
  .niche-hero::after {
    background:
      linear-gradient(to bottom, rgba(9, 22, 30, 0.7) 0%, rgba(9, 22, 30, 0.85) 100%),
      radial-gradient(ellipse 70% 60% at 0% 50%, rgba(0, 201, 167, 0.06) 0%, transparent 70%);
  }
}
.niche-hero-inner { position: relative; max-width: 860px; }
.niche-hero .section-label { margin-bottom: 1.5rem; }
.niche-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}
.niche-hero h1 span { display: inline-block; line-height: 1.05; }
.niche-hero h1 span { color: var(--mint); }
.niche-hero-tagline {
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 560px;
}
.niche-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Section wrapper (all niche sections) ────────────────── */
.niche-section {
  padding: 5rem 8vw;
  border-bottom: 1px solid rgba(232, 244, 242, 0.06);
  position: relative;
  z-index: 10;
}
.niche-section:nth-child(odd) { background: var(--bg); }
.niche-section:nth-child(even) { background: #050d12; }
.niche-section-inner { max-width: 1100px; margin: 0 auto; }

/* ── Benefits / steps list ────────────────────────────────── */
.steps-list {
  list-style: none;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.step-item {
  background: rgba(5, 13, 18, 0.8);
  border-left: 3px solid var(--mint);
  padding: 1.75rem 1.5rem;
  border-radius: 0 2px 2px 0;
  transition: border-color 250ms cubic-bezier(0.32, 0.72, 0, 1),
              transform 250ms cubic-bezier(0.32, 0.72, 0, 1);
}
.step-item:hover { border-color: var(--orange); transform: translateX(4px); }
.step-item .service-num { display: block; margin-bottom: 0.6rem; }
.step-item h3 {
  font-family: var(--font-d);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.step-item p {
  font-size: 0.875rem;
  color: rgba(232, 244, 242, 0.65);
  line-height: 1.7;
  font-weight: 300;
}

/* ── Brand / product grid ─────────────────────────────────── */
.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 201, 167, 0.07);
  border: 1px solid rgba(0, 201, 167, 0.2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: background 250ms cubic-bezier(0.32, 0.72, 0, 1),
              border-color 250ms cubic-bezier(0.32, 0.72, 0, 1);
}
.brand-tag:hover { background: rgba(0, 201, 167, 0.14); border-color: var(--mint); }

/* ── Gallery marquee ──────────────────────────────────────── */
.gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-left: calc(-8vw);
  margin-right: calc(-8vw);
  padding: 0;
  overflow: hidden;
  width: calc(100% + 16vw);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.gallery-grid-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  width: max-content;
  animation: galleryScroll 60s linear infinite;
  will-change: transform;
}
@keyframes galleryScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.gallery-grid figure {
  flex-shrink: 0;
  width: 340px;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #0d1e28;
  border: 1px solid rgba(0, 201, 167, 0.08);
  transition: border-color 250ms cubic-bezier(0.32, 0.72, 0, 1);
}
.gallery-grid figure:hover { border-color: rgba(0, 201, 167, 0.3); }
.gallery-grid img {
  display: block;
  width: 100%;
  height: 255px;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(0.32, 0.72, 0, 1);
}
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Price table ──────────────────────────────────────────── */
.price-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.price-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 201, 167, 0.3);
  font-family: var(--font-b);
}
.price-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(232, 244, 242, 0.07);
  color: rgba(232, 244, 242, 0.8);
  line-height: 1.5;
  font-weight: 300;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: rgba(0, 201, 167, 0.04); }
.price-table .price-val {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mint);
  white-space: nowrap;
}
.price-table .price-note { font-size: 0.78rem; color: var(--muted); }

/* ── Geography list ───────────────────────────────────────── */
.geo-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.geo-list li {
  font-size: 0.82rem;
  color: rgba(232, 244, 242, 0.65);
  background: rgba(232, 244, 242, 0.05);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.geo-list li::before { content: '→ '; color: var(--mint); font-weight: 600; }

/* ── FAQ accordion ────────────────────────────────────────── */
.faq-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-list details {
  background: rgba(5, 13, 18, 0.8);
  border-left: 3px solid rgba(0, 201, 167, 0.3);
  border-radius: 0 2px 2px 0;
  overflow: hidden;
  transition: border-color 250ms cubic-bezier(0.32, 0.72, 0, 1);
}
.faq-list details[open] { border-left-color: var(--mint); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: var(--font-d);
  font-size: 1.3rem;
  color: var(--mint);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  font-weight: 400;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--mint); }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(232, 244, 242, 0.65);
  line-height: 1.75;
  font-weight: 300;
}

/* ── CTA contact block (niche pages) ─────────────────────── */
.niche-cta {
  background: linear-gradient(135deg, #061420 0%, #0c2132 50%, #061420 100%);
  padding: 5rem 8vw;
  text-align: center;
  border-top: 1px solid rgba(0, 201, 167, 0.15);
  position: relative;
  overflow: hidden;
}
.niche-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 201, 167, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.niche-cta-inner { position: relative; max-width: 600px; margin: 0 auto; }
.niche-cta h2 {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 0.95;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.niche-cta p { font-size: 0.95rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.7; font-weight: 300; }
.niche-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Internal links block ─────────────────────────────────── */
.internal-links {
  padding: 3.5rem 8vw;
  background: #050d12;
  border-top: 1px solid rgba(232, 244, 242, 0.06);
}
.internal-links-inner { max-width: 1100px; margin: 0 auto; }
.internal-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.internal-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(232, 244, 242, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(232, 244, 242, 0.12);
  border-radius: 2px;
  transition: color 250ms cubic-bezier(0.32, 0.72, 0, 1),
              border-color 250ms cubic-bezier(0.32, 0.72, 0, 1),
              background 250ms cubic-bezier(0.32, 0.72, 0, 1);
}
.internal-link-item:hover {
  color: var(--mint);
  border-color: var(--mint);
  background: rgba(0, 201, 167, 0.05);
}
.internal-link-item svg { flex-shrink: 0; }

/* ── Footer credit ────────────────────────────────────────── */
.footer-credit {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}
.footer-credit a {
  color: var(--mint);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-credit a:hover { opacity: 1; }

/* ── Special: PV subventii highlight box ─────────────────── */
.subventii-box {
  background: rgba(0, 201, 167, 0.06);
  border: 1px solid rgba(0, 201, 167, 0.25);
  border-left: 3px solid var(--mint);
  padding: 1.75rem 2rem;
  border-radius: 0 4px 4px 0;
  margin-top: 2rem;
}
.subventii-box h3 {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--mint);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.subventii-box p {
  font-size: 0.9rem;
  color: rgba(232, 244, 242, 0.75);
  line-height: 1.7;
  font-weight: 300;
}
.subventii-box ul { margin-top: 0.75rem; padding-left: 1.25rem; }
.subventii-box ul li {
  font-size: 0.875rem;
  color: rgba(232, 244, 242, 0.7);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .niche-hero { padding: 9rem 6vw 4rem; }
  .niche-hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .niche-hero-actions { flex-direction: column; align-items: flex-start; }
  .niche-hero-actions .cta-button { width: 100%; justify-content: center; }

  .niche-section { padding: 3.5rem 6vw; }
  .steps-list { grid-template-columns: 1fr; }
  .gallery-grid figure { width: 280px; }
  .gallery-grid img { height: 210px; }

  .niche-cta { padding: 4rem 6vw; }
  .niche-cta-actions { flex-direction: column; align-items: center; }
  .niche-cta-actions .cta-button { width: 100%; justify-content: center; }

  .internal-links { padding: 2.5rem 6vw; }
}
@media (max-width: 480px) {
  .gallery-grid figure { width: 240px; }
  .gallery-grid img { height: 180px; }
  .gallery-grid-track { animation-duration: 45s; }
}

/* Section detail link — used on homepage to point to dedicated niche pages */
.section-detail-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  color: var(--mint, #00C9A7);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 201, 167, 0.4);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 5;
}
.section-detail-link:hover {
  border-bottom-color: var(--mint, #00C9A7);
  transform: translateX(4px);
}

/* Accent section variant — for highlighted niche-sections (e.g. PV subvenții block) */
.niche-section--accent {
  background: linear-gradient(180deg, rgba(0,201,167,0.04) 0%, rgba(0,201,167,0.08) 100%);
  border-top: 1px solid rgba(0,201,167,0.18);
  border-bottom: 1px solid rgba(0,201,167,0.18);
  position: relative;
}
.niche-section--accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(0,201,167,0.06), transparent 50%);
  pointer-events: none;
}
.niche-section--accent .niche-section-inner { position: relative; z-index: 1; }
