/**
 * Hearts to Homes — Site-wide Navigation V2 (Phase B)
 * Nav, mega menus, mobile menu, standardized footer, RC breadcrumbs & entry links.
 */

/* NAV V2 */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(250,244,241,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(196,120,138,0.25); padding: 0 24px; box-shadow: 0 2px 20px rgba(196,120,138,0.10); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo-wrap { width: 44px; height: 44px; border-radius: 50%; background: var(--rose, #C4788A); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.nav-logo { width: 34px; height: 34px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; color: var(--rose-dark, #9e5a6a); line-height: 1.1; }
.nav-brand-sub { font-size: 9px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rose, #C4788A); }
.nav-links { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a { font-size: 10px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: #4a3038; text-decoration: none; transition: color 0.3s; white-space: nowrap; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--rose, #C4788A); }
.nav-cta { background: var(--rose, #C4788A) !important; color: #fff !important; font-weight: 600 !important; padding: 10px 18px !important; }
.nav-caret { font-size: 8px; margin-left: 4px; opacity: 0.7; }
.nav-item-dropdown { position: relative; }
/* Invisible hover bridge — keeps :hover active while cursor moves to mega-menu */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 14px;
}
.nav-item-dropdown > a { display: inline-flex; align-items: center; position: relative; z-index: 1; }
.mega-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 520px; background: rgba(255,252,250,0.98); backdrop-filter: blur(16px); border: 1px solid rgba(196,120,138,0.22); box-shadow: 0 24px 60px rgba(122,42,58,0.14); padding: 28px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s; z-index: 1001; }
.nav-item-dropdown:hover .mega-menu, .nav-item-dropdown:focus-within .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-item-dropdown > a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(196,120,138,0.30); border-radius: 2px; }
.mega-menu.communities-menu { min-width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nav-links > li > a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(196,120,138,0.30); border-radius: 2px; }
.mega-col-title { font-size: 9px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rose, #C4788A); margin-bottom: 12px; display: block; }
.mega-col a { display: block; font-size: 13px; color: #4a3038; text-decoration: none; padding: 6px 0; transition: color 0.2s; line-height: 1.4; }
.mega-col a:hover { color: var(--rose-dark, #9e5a6a); }
.mega-col a.mega-featured { font-weight: 500; color: #2A2522; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--rose-dark, #9e5a6a); }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(250,244,241,0.99); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(196,120,138,0.25); padding: 16px 32px 24px; z-index: 999; max-height: calc(100vh - 72px); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu > a { display: block; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #6b5060; text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(196,120,138,0.15); }
.mobile-menu > a:hover, .mobile-menu > a.active { color: var(--rose, #C4788A); }
.mobile-accordion { border-bottom: 1px solid rgba(196,120,138,0.15); }
.mobile-accordion summary { padding: 14px 0; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #6b5060; cursor: pointer; list-style: none; }
.mobile-accordion summary::-webkit-details-marker { display: none; }
.mobile-accordion .mobile-sub { padding: 0 0 12px 12px; }
.mobile-accordion .mobile-sub a { display: block; font-size: 13px; letter-spacing: 0.5px; text-transform: none; color: #4a3038; text-decoration: none; padding: 8px 0; }

/* RC breadcrumb trail (Phase B) */
.page-breadcrumb { font-size: 10px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: #9e5a6a; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-breadcrumb a { color: #7a5560; text-decoration: none; }
.page-breadcrumb a:hover { color: var(--rose-dark, #9e5a6a); }

/* RC entry link */
.rc-entry { margin: 0 0 20px; font-size: 13px; color: #5a4048; line-height: 1.6; }
.rc-entry a { color: var(--rose-dark, #9e5a6a); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(196,120,138,0.35); }
.rc-entry a:hover { color: var(--rose, #C4788A); border-bottom-color: var(--rose, #C4788A); }

/* V2 FOOTER */
footer.site-footer-v2 { background: radial-gradient(ellipse at 15% 0%, rgba(255,252,248,0.95) 0%, transparent 45%),
  radial-gradient(ellipse at 85% 100%, rgba(196,120,138,0.50) 0%, transparent 48%),
  linear-gradient(160deg, #fdf6f8 0%, #f5e0e6 40%, #e8c0cb 70%, #c4788a 100%);
  border-top: 1px solid rgba(196,120,138,0.30); padding: 60px 0 30px; }
footer.site-footer-v2 .footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
footer.site-footer-v2 .footer-logo-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
footer.site-footer-v2 .footer-logo-bg { width: 44px; height: 44px; border-radius: 50%; background: var(--cream, #F5ECE0); display: flex; align-items: center; justify-content: center; }
footer.site-footer-v2 .footer-logo { width: 34px; height: 34px; object-fit: contain; }
footer.site-footer-v2 .footer-brand-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: #2A2522; }
footer.site-footer-v2 .footer-tagline { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-style: italic; color: var(--rose, #C4788A); margin-bottom: 12px; }
footer.site-footer-v2 .footer-desc { font-size: 13px; color: #4a3038; line-height: 1.7; }
footer.site-footer-v2 .footer-col-title { font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--rose, #C4788A); display: block; margin-bottom: 16px; }
footer.site-footer-v2 .footer-links { list-style: none; margin: 0; padding: 0; }
footer.site-footer-v2 .footer-links li { margin-bottom: 8px; }
footer.site-footer-v2 .footer-links a { font-size: 13px; color: #4a3038; text-decoration: none; }
footer.site-footer-v2 .footer-links a:hover { color: var(--rose, #C4788A); }
footer.site-footer-v2 .footer-contact-item { display: flex; gap: 10px; font-size: 13px; color: #4a3038; margin-bottom: 12px; }
footer.site-footer-v2 .footer-contact-icon { color: var(--rose, #C4788A); }
footer.site-footer-v2 .footer-bottom { border-top: 1px solid rgba(196,120,138,0.12); padding: 20px 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1200px; margin: 0 auto; }
footer.site-footer-v2 .footer-copy { font-size: 11px; color: #4a3038; opacity: 0.5; }
footer.site-footer-v2 .footer-bottom-links { display: flex; gap: 20px; }
footer.site-footer-v2 .footer-bottom-links a { font-size: 11px; color: #4a3038; text-decoration: none; opacity: 0.5; }
footer.site-footer-v2 .footer-bottom-links a:hover { opacity: 1; color: var(--rose, #C4788A); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  footer.site-footer-v2 .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  footer.site-footer-v2 .footer-inner { grid-template-columns: 1fr; }
}
