/* ============================================================
   SECTOR PAGE STYLES
   Hero with photo, floating UI cards, grid background
   ============================================================ */

/* ---- Sector Hero with Grid Background ---- */
.sector-hero {
  position: relative;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #F8FBFC 50%, var(--bg) 100%);
  overflow: hidden;
}

.sector-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(0deg, rgba(27, 75, 107, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 75, 107, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--border);
}

.sector-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sector-hero-content h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sector-hero-sub {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Hero Visual with Photo + Floating Cards ---- */
.sector-hero-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27, 75, 107, 0.15);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Floating Mockup Cards ---- */
.mockup-cards {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.mockup-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(27, 75, 107, 0.12);
  border: 1px solid rgba(27, 75, 107, 0.08);
  position: relative;
  min-width: 320px;
  max-width: 360px;
}

.mockup-card::before {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--accent) 0,
    var(--accent) 4px,
    transparent 4px,
    transparent 8px
  );
}

.mockup-label {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- Dashboard Summary Card ---- */
.mockup-card-summary {
  background: linear-gradient(135deg, #fff 0%, #FAFBFC 100%);
}

.mockup-title {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mockup-stat-item {
  display: flex;
  flex-direction: column;
}

.mockup-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.mockup-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ---- Lead/Client List in Mockup ---- */
.mockup-list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mockup-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(27, 75, 107, 0.06);
}

.mockup-list-item:last-child {
  border-bottom: none;
}

.mockup-item-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mockup-badge-immoweb {
  background: #FF6B35;
  color: #fff;
}

.mockup-badge-zimmo {
  background: #00A8E8;
  color: #fff;
}

.mockup-badge-facebook {
  background: #1877F2;
  color: #fff;
}

.mockup-badge-website {
  background: var(--accent);
  color: #fff;
}

.mockup-item-content {
  flex: 1;
  min-width: 0;
}

.mockup-item-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.mockup-item-details {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.mockup-item-status {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
}

.status-answered {
  background: #D1FAE5;
  color: #065F46;
}

.status-scheduled {
  background: #DBEAFE;
  color: #1E40AF;
}

.status-pending {
  background: #FEF3C7;
  color: #92400E;
}

.status-waiting {
  background: #FEE2E2;
  color: #991B1B;
}

.status-completed {
  background: #E0E7FF;
  color: #3730A3;
}

/* ---- Appointment/Time-based List ---- */
.mockup-agenda-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(27, 75, 107, 0.06);
}

.mockup-agenda-item:last-child {
  border-bottom: none;
}

.mockup-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.mockup-agenda-content {
  min-width: 0;
}

.mockup-agenda-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.15rem;
}

.mockup-agenda-details {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.mockup-type-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
}

.type-testdrive {
  background: #DBEAFE;
  color: #1E40AF;
}

.type-tradein {
  background: #FEF3C7;
  color: #92400E;
}

.type-service {
  background: #E0E7FF;
  color: #3730A3;
}

.type-auto {
  background: #DBEAFE;
  color: #1E40AF;
}

.type-woning {
  background: #D1FAE5;
  color: #065F46;
}

.type-familiale {
  background: #FEE2E2;
  color: #991B1B;
}

/* ---- Subsectors Grid ---- */
.subsector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.subsector-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  transition: all 0.3s ease;
}

.subsector-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.subsector-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.subsector-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  flex-shrink: 0;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Deep Sections (alternating text + visual) ---- */
.deep-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.deep-section-reverse {
  direction: rtl;
}

.deep-section-reverse > * {
  direction: ltr;
}

.deep-content h2 {
  margin-bottom: 1.25rem;
}

.deep-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.deep-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Flow Visual ---- */
.flow-visual {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.flow-visual-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.flow-visual-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--accent-soft);
  border-radius: 50%;
  flex-shrink: 0;
}

.flow-visual-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  max-width: 100px;
  line-height: 1.3;
}

.flow-visual-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Timeline Visual ---- */
.timeline-visual {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 40px;
  bottom: -16px;
  width: 2px;
  background: var(--border);
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-content strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-content span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Integrations Grid ---- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.integration-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.integration-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.integration-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.integration-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Implementation Grid ---- */
.implementation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.implementation-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.implementation-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.implementation-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent);
}

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

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

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-open .faq-question svg {
  transform: rotate(180deg);
}

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

.faq-open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Larger Dashboard Mockup Section ---- */
.dashboard-mockup-section {
  padding: 3rem 0;
}

.dashboard-mockup-large {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(27, 75, 107, 0.12);
  border: 1px solid rgba(27, 75, 107, 0.08);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.dashboard-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-stat-card {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.25rem;
  line-height: 1;
}

.dashboard-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dashboard-list-section {
  margin-top: 2rem;
}

.dashboard-list-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0 0 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .sector-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sector-hero-visual {
    order: 2;
    min-height: auto;
  }

  .hero-photo-wrapper {
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }

  .mockup-cards {
    position: absolute;
    left: 5%;
    bottom: -40px;
    right: auto;
    transform: none;
    max-width: 80%;
  }

  .mockup-card {
    min-width: 100%;
    max-width: 100%;
  }

  .mockup-card::before {
    display: none;
  }

  .deep-section,
  .deep-section-reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .sector-hero {
    padding: 4rem 0 3rem;
  }

  .sector-hero-visual {
    position: relative;
    padding-bottom: 60px;
  }

  .hero-photo-wrapper {
    aspect-ratio: 4 / 3;
  }

  .mockup-cards {
    left: 5%;
    bottom: 10px;
    max-width: 85%;
  }

  .mockup-card {
    padding: 1rem 1.25rem;
  }

  .mockup-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .mockup-stat-value {
    font-size: 1.25rem;
  }

  .mockup-stat-label {
    font-size: 0.6875rem;
  }

  .subsector-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .flow-visual {
    flex-direction: column;
    gap: 1rem;
  }

  .flow-visual-arrow {
    transform: rotate(90deg);
  }

  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-mockup-large {
    padding: 1.5rem;
  }

  .dashboard-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .integrations-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-row {
    grid-template-columns: 1fr;
  }

  .mockup-agenda-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .mockup-list-item {
    flex-wrap: wrap;
  }

  .mockup-item-status {
    margin-left: auto;
  }
}

/* ============================================================
   PROJECT CARDS SECTION
   ============================================================ */

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-soft);
}

.project-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-soft) 100%);
}

.project-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--accent);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(27, 75, 107, 0.3);
}

.project-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.project-card.featured .project-icon {
  background: var(--accent);
  color: white;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.project-problem {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.project-features li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.project-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.project-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}

.project-learn-more {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s;
}

.project-learn-more:hover {
  color: var(--accent);
}

.projects-cta {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, white 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.projects-cta p {
  font-size: 1.0625rem;
  color: var(--text);
  margin: 0;
}

.projects-cta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  transition: opacity 0.2s;
}

.projects-cta a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
