/* Adero theme — resp_003 responsive layout (aderocanyon.org, skycrossingca.com):
   white utility bar (search + Resident Sign In box), then a full-width hero PHOTO with
   the logo (left) + nav (right) OVERLAID on a translucent dark band that fades into the
   photo; a dark charcoal notice strip below the hero, centered content, dark footer. */

:root {
  --ac-text: #55524f;
  --ac-white: #ffffff;
  --ac-border: #cccccc;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body, -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: var(--font-size-base, 16px);
  line-height: 1.55; color: var(--ac-text); background: var(--ac-white);
}
a { color: var(--brand-accent, #6d6a69); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Utility bar — pushed to the right (empty white at left), search + a full-height
   dark Resident Sign In box flush to the right edge (matches vendor header row). */
.ac-topbar {
  background: var(--ac-white);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 56px;
  border-bottom: 1px solid var(--ac-border);
}
body.sticky-header .ac-topbar { position: sticky; top: 0; z-index: 50; }

.ac-search { display: flex; align-items: center; max-width: 360px; flex: 0 1 360px; padding: 8px 18px; }
.ac-search input[type="search"] {
  border: 1px solid var(--ac-border); border-right: 0; padding: 8px 12px;
  font-size: 15px; width: 100%; border-radius: var(--radius, 0) 0 0 var(--radius, 0);
}
.ac-search button {
  background: var(--brand-primary, #363636); color: #fff; border: 1px solid var(--brand-primary, #363636);
  padding: 7px 14px; cursor: pointer; border-radius: 0 var(--radius, 0) var(--radius, 0) 0;
}
.ac-icon-search::before { content: "⌕"; font-style: normal; font-size: 16px; }

.ac-account { display: flex; align-items: stretch; gap: 0; }
.ac-userinfo { display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: #777; white-space: nowrap; }
.ac-signin {
  background: var(--brand-primary, #363636); color: #fff !important;
  display: inline-flex; align-items: center; padding: 0 22px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.ac-signin:hover { filter: brightness(0.9); text-decoration: none; }
body.btnstyle-outline .ac-signin {
  background: transparent; color: var(--brand-primary, #363636) !important;
  border: 1px solid currentColor; margin: 8px 12px;
}

/* Hero — full-width photo with the logo + nav OVERLAID at the top on a translucent
   dark band that fades into the photo (vendor resp_003: aderocanyon / skycrossing). */
.ac-hero {
  position: relative;
  background-size: cover; background-position: 50% 42%;
  min-height: var(--banner-height, 420px);
  background-color: #6d6a63;
}
.ac-navrow {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 32px; min-height: 104px;
  /* Uniform translucent charcoal band (matches vendor — no fade to transparent). */
  background: linear-gradient(180deg, rgba(38,36,36,.74) 0%, rgba(38,36,36,.55) 100%);
}
.ac-brand { flex-shrink: 0; text-decoration: none; }
.ac-brand:hover { text-decoration: none; }
.ac-brand img { height: 64px; width: auto; display: block; }
.ac-brand .ac-brand-text {
  color: #fff; font-size: 28px; font-weight: 700; font-family: var(--font-heading, Georgia, serif);
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}

.ac-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
.ac-nav ul.menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px;
}
.ac-nav a {
  display: block; color: #fff; font-size: 16px; font-weight: 600;
  padding: 10px 15px; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.ac-nav a:hover { background: rgba(255,255,255,.14); text-decoration: none; }

/* Dropdown submenus — white panel on desktop. */
.ac-nav li.has-children { position: relative; }
.ac-nav li.has-children > a::after { content: "▾"; font-size: 10px; margin-left: 5px; }
.ac-nav .submenu {
  /* Nav is right-aligned, so open dropdowns leftward (anchor the panel's right edge to
     the item) — left:0 would push the right-most menu's panel past the viewport and
     create a horizontal scrollbar. */
  display: none; position: absolute; top: 100%; left: auto; right: 0; min-width: 220px;
  max-width: 90vw; z-index: 60;
  list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--ac-border);
  box-shadow: 0 10px 26px rgba(0,0,0,.18); border-radius: 0 0 var(--radius, 0) var(--radius, 0);
}
.ac-nav li.has-children.open > .submenu { display: block; }
.ac-nav .submenu a {
  display: block; color: var(--ac-text); padding: 10px 18px; font-weight: 600;
  font-size: 14px; white-space: nowrap;
}
.ac-nav .submenu a:hover { background: #f0efed; color: var(--brand-primary, #363636); }

/* Notice / alert strip — dark charcoal bar under the hero (vendor resp_003). */
.ac-notice {
  background: var(--brand-primary, #363636); color: #fff;
  text-align: center; padding: 12px 16px; font-size: 15px; font-weight: 600;
}

/* Content */
.ac-main {
  max-width: var(--container-width, 960px); margin: 0 auto;
  padding: var(--content-pad, 32px) 20px 56px;
}
.page-title {
  color: var(--brand-primary, #363636); text-align: center;
  font-family: var(--font-heading, Georgia, serif); font-weight: 400;
}
.page-body ul { padding-left: 20px; }
.muted { color: #888; font-size: 14px; }
.error { color: #b00020; font-weight: 600; }
.saved { color: #1b7f2e; font-weight: 600; }
.badge {
  background: var(--brand-accent, #6d6a69); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 10px; margin-left: 8px;
}

/* Documents / gallery / forms */
.doc-folder h2 { border-bottom: 2px solid var(--ac-border); padding-bottom: 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
.gallery-cell {
  background: #eceae7; height: 120px; display: flex; align-items: center;
  justify-content: center; color: #777; border-radius: var(--radius, 6px);
}
.form label { display: block; margin: 12px 0; }
.form input[type="text"], .form input[type="email"], .form input[type="password"] {
  padding: 8px; width: 320px; max-width: 100%; border: 1px solid var(--ac-border);
  border-radius: var(--radius, 0);
}
.form button {
  background: var(--brand-primary, #363636); color: #fff; border: 0;
  padding: 10px 20px; font-size: 15px; cursor: pointer; margin-top: 12px;
  border-radius: var(--radius, 0);
}
.form button:hover { filter: brightness(0.9); }

/* Footer */
.ac-footer { background: var(--brand-primary, #363636); color: #cfcccb; margin-top: 40px; }
.ac-footer-inner {
  max-width: var(--container-width, 960px); margin: 0 auto; padding: 24px 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px;
}

@media (max-width: 820px) {
  .ac-topbar { flex-wrap: wrap; }
  .ac-search { flex: 1 1 100%; max-width: none; }
  .ac-hero { min-height: 260px; }
  /* Solid dark band (no fade) so the stacked menu stays legible over the photo. */
  .ac-navrow { flex-direction: column; align-items: stretch; padding: 12px 16px; gap: 10px;
    background: rgba(40,38,38,.9); }
  .ac-nav, .ac-nav ul.menu { justify-content: flex-start; }
  .ac-nav ul.menu { flex-direction: column; align-items: stretch; }
  .ac-nav li.has-children { position: static; }
  .ac-nav li.has-children > a::after { float: right; margin-top: 4px; }
  .ac-nav .submenu {
    display: none; position: static; box-shadow: none; border: 0; min-width: 0;
    padding: 0; background: rgba(255,255,255,.08);
  }
  .ac-nav li.has-children.open > .submenu { display: block; }
  .ac-nav .submenu a { color: #fff; padding: 8px 12px 8px 24px; font-weight: 400; }
  .ac-nav .submenu a:hover { background: rgba(255,255,255,.12); color: #fff; }
}
