/* Seven Hills Property Management L.L.C. — shared styles
   Brand colors: Night Blue #1F2A44 (primary), Sage #5E7A68 (secondary),
   Cream #F4EFE6 (text on dark / page background), Light Sage #A9C1AE (accents).
   Fonts: Cinzel SemiBold for headings and the brand name;
   Montserrat Regular / SemiBold for body text. */

:root {
  --night: #1f2a44;
  --sage: #5e7a68;
  --cream: #f4efe6;
  --light-sage: #a9c1ae;
  --white: #fff;
  --text: var(--night);
  --muted: #3d4a5c;
  --line: #d9d2c6;
  --cream-dark: #e8e0d4;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(31, 42, 68, 0.08);
  --max: 70rem;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --header-pad: 0.85rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--night);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--sage);
}

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--night);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 80;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--header-pad) 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
}

.logo img {
  width: min(300px, calc(100vw - 7.5rem));
  height: auto;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  background: transparent;
  border: 1px solid var(--night);
  color: var(--night);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle-bars {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  margin: 0.22rem auto;
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.1rem;
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.05rem;
}

.site-nav a {
  color: var(--night);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--sage);
  color: var(--night);
}

.portal-links {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Buttons inside the nav must beat .site-nav a color/border rules.
   Otherwise solid Night Blue buttons get Night Blue text and look empty. */
.site-nav a.btn {
  color: var(--cream);
  border: 2px solid var(--night);
  white-space: nowrap;
}
.site-nav a.btn:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
.site-nav a.btn-outline {
  background: transparent;
  color: var(--night);
  border-color: var(--night);
}
.site-nav a.btn-outline:hover {
  background: var(--night);
  color: var(--cream);
  border-color: var(--night);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--night);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--night);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.btn:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--night);
  border-color: var(--night);
}

.btn-outline:hover {
  background: var(--night);
  color: var(--cream);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.9rem 1.4rem;
  min-width: 12.5rem;
}

.btn-on-dark {
  background: var(--light-sage);
  border-color: var(--light-sage);
  color: var(--night);
}

.btn-on-dark:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--night);
}

.btn-on-dark.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--light-sage);
}

.btn-on-dark.btn-outline:hover {
  background: var(--light-sage);
  color: var(--night);
}

/* ---------- Layout ---------- */
.main {
  flex: 1 0 auto;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.25rem 0;
}

.section-muted {
  background: var(--cream-dark);
}

h1, h2, h3,
.section h1,
.section h2,
.hero h1,
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

.section h1,
.section h2,
.hero h1 {
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.section h1,
.hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.section h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.kicker {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night);
  margin-bottom: 0.6rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 3.5rem 0 0;
  overflow: hidden;
}

.hero-mist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 100%);
}

.hero-mist svg {
  display: block;
  width: 140%;
  height: 100%;
  margin-left: -20%;
}

.mist-layer {
  transform-box: fill-box;
  transform-origin: center;
}

.mist-layer-a {
  animation: mist-drift-a 64s ease-in-out infinite;
}

.mist-layer-b {
  animation: mist-drift-b 82s ease-in-out infinite;
}

.mist-layer-c {
  animation: mist-drift-c 70s ease-in-out infinite;
}

@keyframes mist-drift-a {
  0%, 100% { transform: translateX(-6%); }
  50% { transform: translateX(8%); }
}

@keyframes mist-drift-b {
  0%, 100% { transform: translateX(5%); }
  50% { transform: translateX(-7%); }
}

@keyframes mist-drift-c {
  0%, 100% { transform: translateX(-4%); }
  50% { transform: translateX(6%); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-hills {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  line-height: 0;
}

.hero-hills img {
  width: 100%;
  height: auto;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.1rem;
}

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

.icon {
  width: 2.15rem;
  height: 2.15rem;
  color: var(--sage);
}

.placeholder-panel {
  background: var(--white);
  border: 2px dashed var(--sage);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.placeholder-panel p {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  color: var(--muted);
}

.note {
  background: var(--cream-dark);
  border-left: 4px solid var(--sage);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form .field {
  display: block;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  font: inherit;
  color: var(--night);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--night);
  background: var(--white);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form .req {
  color: var(--sage);
}

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

.contact-list li {
  margin: 0.4rem 0;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin: 0.6rem 0 0.2rem;
  color: var(--muted);
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--cream);
  padding: 2.75rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--light-sage);
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: minmax(10rem, 14rem) 1fr 1fr;
    align-items: start;
  }
}

.footer-logo {
  display: inline-block;
  background: transparent;
  border-radius: 0;
  padding: 0.15rem 0;
}

.footer-logo img {
  width: 180px;
  height: auto;
}

.footer-nav ul,
.footer-contact p {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li {
  margin: 0.35rem 0;
}

.footer-nav a,
.footer-contact a {
  color: var(--cream);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--light-sage);
}

.footer-heading {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-sage);
  margin: 0 0 0.7rem;
}

.eho {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--light-sage);
}

.eho img,
.eho svg {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  color: var(--cream);
}

.copyright {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--light-sage);
}

/* ---------- Responsive nav ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.15rem;
    gap: 0.75rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    display: block;
    padding: 0.5rem 0;
  }

  .portal-links {
    flex-direction: column;
  }

  .portal-links .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn-lg {
    width: 100%;
    min-width: 0;
  }

  .logo img {
    width: min(260px, calc(100vw - 7rem));
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.list-plain {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.list-plain li {
  margin: 0.35rem 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}


/* ---------- AppFolio listings embed ---------- */
.listings-embed {
  margin: 1.75rem 0 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem;
  min-height: 12rem;
  overflow: hidden;
}

.listings-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--white);
}

.listings-embed noscript p {
  margin: 1.25rem;
  color: var(--muted);
}

.listings-fallback {
  max-width: 42rem;
}

/* ---------- Scroll reveals ----------
   Hidden only when JS ran (html.js) and motion is allowed.
   Without JS, or with prefers-reduced-motion, everything stays visible. */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-inner,
  html.js .section,
  html.js .card,
  html.js .form,
  html.js .faq details,
  html.js .listings-embed {
    opacity: 0;
    transform: translateY(1.15rem);
    transition: opacity 0.85s ease, transform 0.85s ease;
    transition-delay: var(--reveal-delay, 0s);
  }

  html.js .hero-inner.is-visible,
  html.js .section.is-visible,
  html.js .card.is-visible,
  html.js .form.is-visible,
  html.js .faq details.is-visible,
  html.js .listings-embed.is-visible {
    opacity: 1;
    transform: none;
  }

  html.js .hero-inner.is-leaving,
  html.js .section.is-leaving,
  html.js .card.is-leaving,
  html.js .form.is-leaving,
  html.js .faq details.is-leaving,
  html.js .listings-embed.is-leaving {
    opacity: 0.22;
    transform: translateY(-0.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mist-layer-a,
  .mist-layer-b,
  .mist-layer-c {
    animation: none;
  }
}
