/* Haven Property Management Group — site-wide chrome (nav, footer, hero, buttons)
   Pairs with haven-brand.css which supplies the section-level component styles
   (.haven / .havenp / .havena / .havenw / .haveng patterns used per page). */

:root {
  --teal-900: #0c5447;
  --teal-800: #115e50;
  --teal-700: #14695a;
  --teal-600: #1c7867;
  --navy: #16243f;
  --navy-2: #223456;
  --mute: #6a7589;
  --line: #e8ebf1;
  --cream: #faf8f2;
  --gold: #e3b977;
  --accent-teal: #1bbf9f;
  --accent-teal-deep: #149a80;

  /* aliases so havenp-* component classes (scoped to .havenp in haven-brand.css)
     also work when reused directly under site.css layout wrappers */
  --p-navy: #16243f;
  --p-teal: #1bbf9f;
  --p-teal-deep: #149a80;
  --p-ink: #16243f;
  --p-mute: #6a7589;
  --p-line: #e8ebf1;
  --p-line-on-dark: rgba(255,255,255,0.13);
  --p-line-on-teal: rgba(255,255,255,0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- shared buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--teal-800); }
.btn-cream:hover { box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.btn-teal { background: var(--accent-teal); color: #fff; box-shadow: 0 14px 30px -10px rgba(27,191,159,.55); }
.btn-teal:hover { background: var(--accent-teal-deep); }
.btn-navy-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-navy-outline:hover { background: var(--navy); color: #fff; }
.btn-white-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-white-outline:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 11px 22px; font-size: 14.5px; }

/* ---------- top nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo img { height: 52px; width: auto; }
.site-links { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: center; }
.site-links a {
  font-size: 14.5px; font-weight: 500; color: var(--navy); text-decoration: none;
  padding: 8px 2px; border-bottom: 2px solid transparent; transition: border-color .15s ease, color .15s ease;
}
.site-links a:hover { color: var(--teal-700); }
.site-links a.active { color: var(--teal-700); border-color: var(--accent-teal); font-weight: 600; }
.site-nav-cta { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.site-phone { font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .site-links { display: none; }
  .site-phone { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 2; }
  .site-nav-inner { height: 72px; }
  .site-logo img { height: 42px; }
  .mobile-menu {
    display: none; flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 14px 4px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--navy);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a.active { color: var(--teal-700); font-weight: 600; }
  .mobile-menu .btn { margin-top: 14px; }
}
@media (min-width: 981px) { .mobile-menu { display: none !important; } }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.82); }
.site-footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 64px 32px 40px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 320px; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin: 0 0 18px;
}
.footer-col a, .footer-col p {
  display: block; font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.82);
  text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 32px;
  max-width: 1240px; margin: 0 auto; font-size: 13.5px; color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 780px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 34px; padding: 48px 24px 32px; }
  .footer-bottom { padding: 18px 24px; }
}

/* ---------- generic page hero ---------- */
.page-hero {
  background: var(--teal-700); color: #fff; text-align: center;
  padding: 84px 32px 76px;
}
.page-hero .eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 16px; display: block;
}
.page-hero h1 { font-size: 48px; font-weight: 700; line-height: 1.06; letter-spacing: -.015em; max-width: 780px; margin: 0 auto; text-wrap: balance; }
.page-hero p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 620px; margin: 18px auto 0; }
@media (max-width: 620px) { .page-hero h1 { font-size: 34px; } .page-hero { padding: 56px 22px 48px; } }

/* ---------- FAQ accordion ---------- */
details summary::-webkit-details-marker { display: none; }
details summary::marker { content: ""; }
details[open] summary svg { transform: rotate(180deg); }
details summary svg { transition: transform .15s ease; }

/* ---------- placeholder image frame ---------- */
.img-placeholder { border-radius: 20px; overflow: hidden; }
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- mobile grid collapse ----------
   Many section layouts set grid-template-columns inline (repeat(3,1fr),
   repeat(4,1fr), asymmetric "1.1fr 1fr" splits, etc). These rules force
   those grids to reflow on small screens without having to touch every
   inline style individually. */
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 700px) {
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 540px) {
  .btn, .haven-btn, .havenp-btn { width: 100%; }
  h1 { font-size: 32px !important; }
  .haven-inner, .havenp-inner { padding-left: 22px !important; padding-right: 22px !important; }
  .haven-h2 { font-size: 32px !important; }
  .havenp-h2 { font-size: 30px !important; }
  .haven-sub, .havenp-sub { font-size: 16px !important; }
}
