/* Allgood Property Management: small additions to Tailwind (plain CSS) */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: .5rem;
  background: #1B2629;
  color: #F6F3EE;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus states */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #C8963E;
  outline-offset: 3px;
  border-radius: .375rem;
}
main:focus { outline: none; }

/* Hero background */
.hero-bg {
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(200, 150, 62, .18), transparent 60%),
    radial-gradient(ellipse 70% 80% at 10% 100%, rgba(31, 95, 91, .65), transparent 65%),
    linear-gradient(135deg, #1B2629 0%, #1F3A3A 55%, #1F5F5B 100%);
}

/* Nav and footer links */
.nav-link {
  color: #1B2629;
  text-decoration: none;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-link:hover { color: #1F5F5B; border-bottom-color: #C8963E; }

.footer-link {
  color: rgba(246, 243, 238, .8);
  text-decoration: underline;
  text-decoration-color: rgba(200, 150, 62, .6);
  text-underline-offset: 4px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer-link:hover { color: #F6F3EE; text-decoration-color: #C8963E; }

/* Section labels */
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1F5F5B;
}
.eyebrow-dark { color: #E2BD7A; }

/* Cards */
.card {
  border: 1px solid rgba(27, 38, 41, .1);
  border-radius: 1rem;
  background: #F6F3EE;
  padding: 2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(27, 38, 41, .35); }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .875rem;
  background: #1F5F5B;
  color: #F6F3EE;
  box-shadow: inset 0 -3px 0 #C8963E;
}

/* Key facts */
.fact-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4A5659;
}
.fact-value {
  margin-top: .5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: #1B2629;
}

/* Legal modals */
.legal-modal {
  width: min(44rem, calc(100% - 2rem));
  max-height: min(85vh, 52rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #FFFFFF;
  color: #1B2629;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.legal-modal[open] { display: flex; flex-direction: column; }
.legal-modal::backdrop { background: rgba(27, 38, 41, .65); }
.legal-body { overflow-y: auto; line-height: 1.65; }
.legal-body h3 {
  margin-top: 1.5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
}
.legal-body p, .legal-body ul { margin-top: .5rem; color: #4A5659; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; }
.legal-body li + li { margin-top: .25rem; }

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}
