/* ═══════════════════════════════════════════════════
   Service Pages — Component Styles
   Pembroke Pines Roof Repair · 2025
   ═══════════════════════════════════════════════════ */

/* ── Service Hero ── */
.svc-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 40%, #0a1e3d 100%);
  padding: 9rem 0 4.5rem;
}

@media (max-width: 767px) {
  .svc-hero { padding: 7.5rem 0 3rem; }
}

.svc-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .svc-hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.svc-hero-text { position: relative; z-index: 10; }

.svc-hero .hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.svc-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}

.svc-hero-glow-1 {
  width: 400px; height: 400px;
  top: -10%; left: 10%;
  background: radial-gradient(circle, rgba(14,165,233,.15), transparent 70%);
  animation: glowPulse 8s ease-in-out infinite;
}

.svc-hero-glow-2 {
  width: 350px; height: 350px;
  bottom: -5%; right: 5%;
  background: radial-gradient(circle, rgba(249,115,22,.12), transparent 70%);
  animation: glowPulse 10s ease-in-out 3s infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Hero Badge */
.svc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.25rem;
  background: rgba(14,165,233,.12);
  border: 1px solid rgba(14,165,233,.3);
  backdrop-filter: blur(10px);
  border-radius: 9999px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.svc-hero-badge .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Hero Breadcrumb */
.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
}

.svc-breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color 0.2s;
}

.svc-breadcrumb a:hover { color: #fff; }

.svc-breadcrumb svg {
  width: 14px; height: 14px;
  opacity: 0.5;
}

/* Hero H1 */
.svc-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4.8vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.svc-hero h1 mark {
  background: linear-gradient(135deg, #38BDF8 0%, var(--accent) 50%, #7DD3FC 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-color: transparent;
}

.svc-hero-desc {
  color: rgba(255,255,255,.72);
  font-size: clamp(0.9rem, 1.7vw, 1.04rem);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 620px;
}

/* Hero CTAs */
.svc-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 767px) {
  .svc-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .svc-hero-cta .btn { justify-content: center; }
}

/* Hero Visual / Image */
.svc-hero-visual { position: relative; }

.svc-hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.svc-hero-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .svc-hero-img-wrap img { min-height: 260px; }
}

/* Floating Badges on Hero Image */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  z-index: 5;
  animation: floatBadge 4s ease-in-out infinite;
}

.fb-1 { top: 12%; left: -8%; animation-delay: 0s; }
.fb-2 { bottom: 20%; right: -6%; animation-delay: 1.5s; }
.fb-3 { bottom: 5%; left: 5%; animation-delay: 3s; }

@media (max-width: 1023px) {
  .fb-1 { left: 3%; top: 8%; }
  .fb-2 { right: 3%; }
  .fb-3 { left: 3%; }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float-badge-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: #fff;
  flex-shrink: 0;
}

.float-badge-icon.bg-primary { background: var(--primary); }
.float-badge-icon.bg-accent { background: var(--accent); }
.float-badge-icon.bg-success { background: #10b981; }
.float-badge-icon.bg-cta { background: var(--cta); }

.float-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.float-badge-text span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Section Shared ── */
.svc-section {
  padding: 5rem 0;
}

.svc-section-alt {
  padding: 5rem 0;
  background: var(--bg-alt);
}

@media (max-width: 767px) {
  .svc-section, .svc-section-alt { padding: 3.5rem 0; }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(14,165,233,.15);
  border-radius: 9999px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.svc-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.svc-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.svc-section-desc {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Warning Signs Cards ── */
.sign-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .sign-grid { grid-template-columns: repeat(2, 1fr); } }

.sign-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  transition: all 0.35s;
  box-shadow: var(--shadow-xs);
}

.sign-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(239,68,68,.15);
}

.sign-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,.1);
  color: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
}

.sign-icon svg { width: 20px; height: 20px; }

.sign-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
}

.sign-card p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ── Homeowner Check Cards ── */
.check-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) { .check-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .check-strip { grid-template-columns: repeat(3, 1fr); } }

.check-card {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
}

.check-card:hover {
  border-color: rgba(16,185,129,.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,.06);
}

.check-card-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,.1);
  border-radius: 0.5rem;
  color: #10b981;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.check-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.check-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .check-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ── Problem Grid Cards ── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.35s;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(12,35,64,.08);
  border-color: rgba(12,35,64,.18);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  opacity: 0.7;
}

.problem-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(239,68,68,.08), rgba(245,158,11,.05));
  border: 1px solid rgba(239,68,68,.12);
  border-radius: 0.75rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.problem-card-icon svg { width: 22px; height: 22px; }

.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: var(--font-body);
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.problem-card .symptoms {
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

.problem-card .symptoms li {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
}

.problem-card .symptoms li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cta);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ── Diagnosis Timeline ── */
.diag-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 3rem;
}

.diag-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--cta), rgba(14,165,233,.15));
  border-radius: 3px;
}

.diag-step {
  position: relative;
  margin-bottom: 2.5rem;
}

.diag-step:last-child { margin-bottom: 0; }

.diag-dot {
  position: absolute;
  left: -3rem;
  top: 0.25rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(14,165,233,.25);
}

.diag-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
  font-family: var(--font-body);
}

.diag-step p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── Repair Options Cards ── */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) { .options-grid { grid-template-columns: repeat(3, 1fr); } }

.repair-option {
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.8));
  border: 1px solid rgba(12,35,64,.1);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.35s;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.repair-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(12,35,64,.08);
  border-color: rgba(14,165,233,.3);
}

.repair-option-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tag-common { background: rgba(14,165,233,.12); color: var(--accent-dark); }
.tag-moderate { background: rgba(245,158,11,.12); color: #D97706; }
.tag-major { background: rgba(239,68,68,.1); color: #dc2626; }

.repair-option h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.repair-option p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ── Content Image Section ── */
.svc-image-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .svc-image-text { grid-template-columns: 1fr 1fr; }
  .svc-image-text.reverse { direction: rtl; }
  .svc-image-text.reverse > * { direction: ltr; }
}

.svc-content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.svc-content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
}

.svc-content-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.svc-content-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.svc-content-text p:last-child { margin-bottom: 0; }

/* ── FAQ Accordion ── */
.svc-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.svc-faq-item {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--card);
  transition: all 0.3s;
}

.svc-faq-item:hover {
  border-color: rgba(14,165,233,.2);
}

.svc-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  gap: 1rem;
  transition: color 0.2s;
}

.svc-faq-question:hover { color: var(--accent-dark); }

.svc-faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--bg-alt);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s;
}

.svc-faq-chevron svg {
  width: 14px; height: 14px;
  stroke: var(--text-muted);
  transition: transform 0.3s;
}

.svc-faq-item.active .svc-faq-chevron {
  background: var(--accent-soft);
}

.svc-faq-item.active .svc-faq-chevron svg {
  transform: rotate(180deg);
  stroke: var(--accent-dark);
}

.svc-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.svc-faq-item.active .svc-faq-answer {
  max-height: 500px;
}

.svc-faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
}

.svc-faq-answer-inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ── Internal Links Bar ── */
.internal-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 1.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(14,165,233,.08);
  border-radius: var(--radius);
}

.internal-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: var(--card);
  border: 1px solid rgba(12,35,64,.1);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dark);
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
}

.internal-link-pill:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,165,233,.2);
}

.internal-link-pill svg { width: 14px; height: 14px; }

/* ── CTA Block ── */
.svc-cta-block {
  position: relative;
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 60%, #0a1e3d 100%);
  border-radius: 1.5rem;
  overflow: hidden;
}

.svc-cta-block .cta-glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(14,165,233,.2), transparent 70%);
  border-radius: 50%;
  top: -20%; right: -10%;
  filter: blur(60px);
  pointer-events: none;
}

.svc-cta-block h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.svc-cta-block p {
  position: relative;
  color: rgba(255,255,255,.7);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.svc-cta-buttons {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── Homepage Link Highlight ── */
.homepage-link {
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(14,165,233,.3);
  transition: all 0.2s;
}

.homepage-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Section Content Paragraphs ── */
.svc-text-block {
  max-width: 800px;
  margin: 0 auto;
}

.svc-text-block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.svc-text-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-body);
}

.svc-text-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── Why This Matters / Local Relevance Section ── */
.relevance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 1.25rem;
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.relevance-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.relevance-card h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 1rem;
  position: relative;
}

.relevance-card p {
  color: rgba(255,255,255,.75);
  font-size: 0.95rem;
  line-height: 1.75;
  position: relative;
  margin-bottom: 1rem;
}

.relevance-card p:last-child { margin-bottom: 0; }

/* ── Responsive Print ── */
@media print {
  .svc-hero, .svc-cta-block, .float-badge, .internal-links-bar { display: none; }
}
