.tenant-page { background: #fff; }

.tenant-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 112px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 181, 46, .20), transparent 24%),
    radial-gradient(circle at 12% 120%, rgba(119, 40, 181, .48), transparent 34%),
    linear-gradient(135deg, var(--purple-950), var(--purple-800));
}

.tenant-hero::after {
  position: absolute;
  right: -90px;
  bottom: -210px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
  content: "";
}

.tenant-hero-inner { position: relative; z-index: 1; max-width: 900px; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.breadcrumbs a:hover { color: var(--gold-light); }

.tenant-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(217, 181, 46, .46);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tenant-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.tenant-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(17px, 2vw, 20px);
}

.tenant-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.tenant-quick { position: relative; z-index: 4; margin-top: -50px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.quick-action {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease;
}

button.quick-action { width: 100%; }
.quick-action:hover { transform: translateY(-3px); border-color: rgba(83, 17, 154, .28); }
.quick-action strong, .quick-action small { display: block; }
.quick-action strong { color: var(--purple-900); font-size: 15px; }
.quick-action small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.quick-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--purple-700);
  font-size: 20px;
  font-weight: 900;
}

.whatsapp-icon { background: var(--green); }
.emergency-action .quick-icon { background: #c93a3a; }

.rights-section { padding-top: 122px; }
.rights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.right-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(45, 8, 80, .07);
}

.right-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--purple-700);
  font-weight: 900;
}

.right-card h3 { margin: 0 0 9px; color: var(--purple-900); font-size: 17px; line-height: 1.3; }
.right-card p { margin: 0; color: var(--muted); font-size: 13px; }

.rights-help {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid rgba(83, 17, 154, .14);
  border-radius: 15px;
  background: var(--purple-50);
}

.rights-help strong { color: var(--purple-900); }
.rights-help p { margin: 0; color: var(--muted); font-size: 13px; }
.rights-help div { display: flex; gap: 9px; }
.rights-help a { padding: 8px 12px; border-radius: 7px; color: #fff; background: var(--purple-700); font-size: 12px; font-weight: 800; }

.repair-section,
.emergency-section,
.tenant-faq-section { scroll-margin-top: 80px; }

.repair-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: 56px; }
.repair-copy { position: sticky; top: 112px; }
.repair-copy .section-heading { margin-inline: 0; }
.repair-copy > p { max-width: 560px; color: var(--muted); }

.response-times { display: grid; gap: 10px; margin-top: 28px; }
.response-times > div { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.response-times strong { color: var(--purple-900); font-size: 14px; }
.response-times small { color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #2aaf62; }
.status-dot.urgent { background: #df9c23; }
.status-dot.emergency { background: #cb3636; }

.repair-warning { margin-top: 20px; padding: 20px; border-left: 4px solid #cb3636; border-radius: 10px; background: #fff4f4; }
.repair-warning strong { color: #8e2020; }
.repair-warning p { margin: 5px 0 10px; color: #755656; font-size: 13px; }
.repair-warning button { padding: 0; border: 0; color: #8e2020; background: transparent; font-weight: 800; }

.repair-form h3 { margin: 0; color: var(--purple-900); font-family: Georgia, "Times New Roman", serif; font-size: 30px; }
.repair-form > p { margin: 5px 0 22px; color: var(--muted); }

.urgency-fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.urgency-fieldset legend { margin-bottom: 8px; color: var(--purple-900); font-size: 13px; font-weight: 800; }
.urgency-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.urgency-options label { position: relative; }
.urgency-options input { position: absolute; opacity: 0; }
.urgency-options span { display: grid; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.urgency-options input:checked + span { border-color: var(--purple-700); color: var(--purple-800); background: var(--purple-100); box-shadow: inset 0 0 0 1px var(--purple-700); }
.urgency-options input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.repair-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.repair-actions .button { padding-inline: 12px; }

.emergency-section { color: #fff; background: linear-gradient(135deg, var(--purple-950), var(--purple-800)); }
.emergency-section .section-heading { color: #fff; }
.emergency-section .section-intro { color: rgba(255, 255, 255, .72); }
.emergency-section .eyebrow { color: var(--gold-light); border-color: rgba(217, 181, 46, .42); background: rgba(255, 255, 255, .06); }
.emergency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.emergency-card { position: relative; padding: 28px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 18px; background: rgba(255, 255, 255, .07); box-shadow: 0 16px 36px rgba(0, 0, 0, .14); }
.emergency-symbol { display: grid; width: 46px; height: 46px; margin-bottom: 22px; place-items: center; border-radius: 13px; color: var(--purple-900); background: var(--gold); font-weight: 900; }
.emergency-card.gas .emergency-symbol { color: #fff; background: #cb3636; }
.emergency-card.power .emergency-symbol { color: var(--purple-900); background: var(--gold-light); }
.emergency-card p { margin: 0 0 5px; color: rgba(255, 255, 255, .64); font-size: 12px; }
.emergency-card h3 { margin: 0 0 16px; color: #fff; font-size: 18px; }
.emergency-card a { color: var(--gold-light); font-size: clamp(21px, 2.5vw, 28px); font-weight: 900; }
.emergency-card small { display: block; margin-top: 8px; color: rgba(255, 255, 255, .62); }

.tenant-faq-wrap { max-width: 920px; }
.tenant-faq-list { display: grid; gap: 12px; }
.tenant-faq-list details { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 26px rgba(45, 8, 80, .05); }
.tenant-faq-list summary { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; color: var(--purple-900); font-weight: 800; cursor: pointer; list-style: none; }
.tenant-faq-list summary::-webkit-details-marker { display: none; }
.tenant-faq-list summary::after { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border: 1px solid var(--purple-700); border-radius: 50%; content: "+"; font-size: 20px; font-weight: 400; }
.tenant-faq-list details[open] summary::after { content: "−"; }
.tenant-faq-list details > div { padding: 0 54px 22px 22px; }
.tenant-faq-list p { margin: 0; color: var(--muted); }

.tenant-help { padding: 54px 0; color: #fff; background: linear-gradient(100deg, var(--purple-800), var(--purple-900)); }
.tenant-help-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.tenant-help h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.tenant-help p { margin: 8px 0 0; color: rgba(255, 255, 255, .72); }
.tenant-help .eyebrow { margin-bottom: 14px; color: var(--gold-light); border-color: rgba(217, 181, 46, .42); background: rgba(255, 255, 255, .06); }
.tenant-help-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.tenant-footer-grid { grid-template-columns: 1.3fr .8fr .9fr 1fr; }

@media (max-width: 1050px) {
  .tenant-page .main-nav { overflow-y: auto; }
  .rights-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .tenant-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .tenant-footer-grid > :last-child { grid-column: 2 / 4; }
}

@media (max-width: 820px) {
  .tenant-hero { padding: 72px 0 100px; }
  .rights-section { padding-top: 106px; }
  .repair-grid { grid-template-columns: 1fr; gap: 42px; }
  .repair-copy { position: static; }
  .emergency-grid { grid-template-columns: 1fr; }
  .tenant-help-inner { align-items: flex-start; flex-direction: column; }
  .tenant-footer-grid { grid-template-columns: 1fr 1fr; }
  .tenant-footer-grid > :last-child { grid-column: auto; }
  .rights-help { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .tenant-hero { padding: 56px 0 88px; }
  .tenant-hero-actions { display: grid; }
  .quick-grid,
  .rights-grid { grid-template-columns: 1fr; }
  .tenant-quick { margin-top: -38px; }
  .quick-action { min-height: 88px; }
  .rights-section { padding-top: 90px; }
  .rights-help div { display: grid; }
  .urgency-options,
  .repair-actions { grid-template-columns: 1fr; }
  .response-times > div { grid-template-columns: 12px 1fr; }
  .response-times small { grid-column: 2; }
  .tenant-faq-list summary { min-height: 66px; padding: 17px 18px; font-size: 14px; }
  .tenant-faq-list details > div { padding: 0 42px 20px 18px; }
  .tenant-help-actions { display: grid; width: 100%; }
  .tenant-footer-grid { grid-template-columns: 1fr; }
}
