/* site-footer-forms.css — split from shared.css (lines 623-838), 2026-08-17.
   section/footer frame, footer grid + contact + signup, .form-label/.form-control, shared breakpoints
   LOAD ORDER IS LOAD-BEARING. Link in this exact sequence, after nothing and
   before the engine-*.css layer:
     site-fonts.css -> site-base.css -> site-atoms.css -> site-chrome.css -> site-page-furniture.css -> site-footer-forms.css -> site-marketing.css -> site-extras.css
   Slices are CONTIGUOUS: rule order is unchanged from shared.css, so the cascade is
   equivalent by construction. Some selectors are redefined in a later module on
   purpose — do not reorder, and do not "tidy" rules between files.
   shared.css itself is UNTOUCHED on disk and still serves the other 17 pages. */
section:not(.page-hero),
footer {
  position: relative;
}
section:not(.page-hero)::before,
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ── FOOTER ── */
footer {
  background: var(--pine);
  padding: 5rem 4vw 3rem;
}
@media (max-width: 640px) {
  footer { padding: 2.6rem 5vw 1.6rem; }
  .footer-signup { margin-bottom: 1.7rem; padding-bottom: 1.7rem; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4vw;
  margin-bottom: 4rem;
}
/* .footer-brand .nav-logo sizing is handled in the logo section above */
.footer-contact {
  font-size: 0.78rem;
  color: var(--sage);
  line-height: 1.75;
  display: -ms-grid;
  display: grid;
  grid-template-columns: auto auto;
  /* Centre the two tracks as a pair on the page… */
  -webkit-justify-content: center;
  justify-content: center;
  /* …centre each column's contents within its own track… */
  justify-items: center;
  /* …and centre the phone block against the address block vertically. */
  -webkit-align-items: center;
  align-items: center;
  column-gap: 1.5rem;
  text-align: center;
  margin-top: 1.2rem;
}
/* Email sits on its own row, centred under both columns. */
.footer-contact .footer-email { grid-column: 1 / -1; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact > div, .footer-phones > div { white-space: nowrap; }
/* Address lines stack in column 1 */
.footer-contact > div:first-child { grid-column: 1; grid-row: 1; }
.footer-contact > div:nth-child(2) { grid-column: 1; grid-row: 2; }
/* Phones sit in column 2, vertically centered against the address */
.footer-phones {
  grid-column: 2;
  grid-row: 1 / 3;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  /* Was flex-start, which top-aligned the phones against a two-line address
     block and left "Office:" sitting high. Centre them instead. */
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  margin-top: 0;
}
.footer-bottom {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1;
  gap: 1rem;
}
.footer-copy { font-size: 0.7825rem; letter-spacing: 0.1em; color: var(--sage); }
.footer-email { grid-column: 1 / -1; font-size: 0.7825rem; letter-spacing: 0.07em; color: var(--sage); text-align: center; transition: color 0.2s; margin-top: 0.5rem; }
.footer-email:hover { color: var(--gold); }

/* ── FOOTER SIGNUP (inline email capture — replaces the old slide-up popup) ── */
.footer-signup { text-align: center; max-width: 460px; margin: 0 auto 1rem; }
.footer-signup-eyebrow { font-family: var(--display); font-style: italic; font-size: 1.55rem; font-weight: 600; color: var(--gold); letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.footer-signup-text { font-size: 0.75rem; color: var(--sage); letter-spacing: 0.02em; white-space: nowrap; margin-bottom: 0.35rem; }
.footer-signup-form { display: block; }
.footer-signup-input { width: 100%; padding: 0.72rem 0.95rem; background: var(--forest); border: 1px solid var(--gold-line); border-radius: var(--radius-sm); color: var(--parchment); font-family: var(--body); font-size: 16px; outline: none; transition: border-color 0.18s; -webkit-appearance: none; margin-bottom: 1.15rem; }
.footer-signup-input::placeholder { color: rgba(146,154,160,0.7); }
.form-control::placeholder { color: rgba(146,154,160,0.7); }
/* Autofill on mobile paints inputs yellow-green — force the theme colors */
.form-control:-webkit-autofill, .footer-signup-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--forest) inset;
  -webkit-text-fill-color: var(--parchment);
  caret-color: var(--parchment);
}
.footer-signup-input:focus { border-color: var(--gold); }
.footer-signup-note { font-size: 0.75rem; color: var(--sage); text-align: center; line-height: 1.5; }
.footer-signup-btn { justify-self: center; padding: 0.72rem 1.6rem; background: rgba(201, 169, 110, 0.10); color: var(--parchment); border: 2px solid var(--gold); border-radius: var(--radius-sm); font-family: var(--body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background 0.18s; }
.footer-signup-btn:hover { background: rgba(201, 169, 110, 0.28); }
.footer-signup-btn:disabled { opacity: 0.6; cursor: default; }
.footer-signup-msg { font-size: 0.82rem; margin-top: 0.7rem; min-height: 1.1em; }
.footer-signup-msg.ok { color: var(--parchment); font-family: var(--display); font-style: italic; font-size: 1.05rem; }
.footer-signup-msg.err { color: #cf9a86; }
.footer-legal { display: -webkit-flex; display: flex; gap: 1.6rem; }
.footer-legal a { font-size: 0.7825rem; letter-spacing: 0.1em; color: var(--sage); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ── FORM CONTROLS (shared) ── */
.form-label {
  display: block;
  font-size: 0.7625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--forest);
  border: 1px solid var(--gold-line);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 16px; /* 16px min prevents iOS Safari focus-zoom */
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius-sm);
}
.form-control:focus { border-color: var(--gold); }
.form-control option { background: var(--forest); color: var(--parchment); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
/* Mid-width: tighten the Instagram divider padding so the flat nav links stay
   comfortable instead of cramping just above the collapse point. (Nav breakpoints
   raised twice on 2026-07-29 as the flat nav grew to seven items — Book Now +
   Owner Portal joined during Elec's Phase-2 review round.) */
@media (max-width: 1360px) {
  .nav-instagram { padding-right: 1rem; }
}
/* Once even the icon-only nav runs out of room, collapse the flat nav into the
   hamburger + hover/focus dropdown. */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-menu-wrap { display: block; }
  .nav-hamburger { display: -webkit-flex; display: flex; }
  .nav-hamburger:hover span, .nav-menu-wrap.menu-open .nav-hamburger span { background: var(--parchment); box-shadow: 0 0 6px rgba(201,169,110,0.45); }
  /* Collapsed: the Instagram icon sits beside the hamburger — drop its divider + padding */
  .nav-instagram { border-right: none; padding-right: 0; }
}
@media (max-width: 768px) {

  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Contact column is short blocks — center the whole thing on mobile so the
     heading, phone, hours, and email line up down the middle */
  .contact-info { text-align: center; }

}
@media (max-width: 640px) {
  /* Nav: keep the Instagram icon (handle text already dropped at 1260px); tighten padding */
  nav { padding: 1rem 4vw; }

  /* Footer bottom row: stack on small screens */
  .footer-bottom {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }
  .footer-legal { gap: 1.2rem; }

  /* Footer contact stays a 2-up (address | phones) grid on mobile too */

}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 10rem 5vw 4rem; }
  .page-hero h1 { font-size: clamp(1.52rem, 6.74vw, 2.05rem); }

  /* Scale logo down at very narrow screens, tighten nav further */
  nav { padding: 0.75rem 3vw; }
  .nav-logo strong { font-size: 1.75rem; }
  .nav-logo span { font-size: 1.95rem; }
}

/* ── ACCESSIBILITY ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── SERVICE PAGE SHARED COMPONENTS ── */
/* Authoritative styles for cleaning, maintenance, residence-inspections,
   property-liaison, design, concierge — and related-services on property-management */

