/* ============================================
   InstallMe Ltd — uPVC Page Styles (upvc.css)
   ============================================ */

/* ── PAGE HEADER ── */
.page-header {
  padding: 140px 6% 70px;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--sand) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 122, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 14px;
}

.page-header p {
  color: var(--light-mid);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}


/* ── INTRO ── */
.upvc-intro {
  background: var(--warm-white);
  padding: 90px 6%;
}

.upvc-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.upvc-intro-text p {
  color: var(--mid);
  font-size: 1rem;
  margin-bottom: 16px;
  max-width: 500px;
}

.upvc-intro-image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 60px rgba(44, 34, 23, 0.15);
}

.upvc-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* ── BENEFITS ── */
.benefits {
  background: var(--cream);
  padding: 90px 6%;
}

.benefits-header {
  text-align: center;
}

.benefits-header .section-sub {
  margin: 0 auto 52px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--warm-white);
  border: 1px solid rgba(200, 169, 122, 0.3);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--mid);
  font-size: 0.92rem;
  line-height: 1.65;
}


/* ── COMPARISON TABLE ── */
.comparison {
  background: var(--sand);
  padding: 90px 6%;
}

.comparison-inner {
  max-width: 860px;
  margin: 0 auto;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--warm-white);
  font-size: 0.95rem;
}

thead tr {
  background: var(--deep);
  color: var(--cream);
}

thead th {
  padding: 16px 20px;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1rem;
}

thead th.highlight {
  background: var(--rust);
  color: #fff;
}

tbody tr {
  border-bottom: 1px solid rgba(200, 169, 122, 0.2);
  transition: background 0.2s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--cream);
}

tbody td {
  padding: 14px 20px;
  color: var(--mid);
}

tbody td:first-child {
  color: var(--deep);
  font-weight: 600;
}

tbody td.highlight {
  color: var(--rust);
  font-weight: 700;
}


/* ── FAQ ── */
.faq {
  background: var(--warm-white);
  padding: 90px 6%;
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--cream);
  border: 1px solid rgba(200, 169, 122, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--rust);
}

.faq-arrow {
  font-size: 1.1rem;
  color: var(--clay);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--rust) 0%, #8B3A18 100%);
  padding: 80px 6%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #fff;
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  font-size: 1.05rem;
  max-width: 500px;
  margin-inline: auto;
}


/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .upvc-intro-inner {
    grid-template-columns: 1fr;
  }

  .upvc-intro-image {
    aspect-ratio: 16 / 9;
  }

  thead th, tbody td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}