/* Shared Church Point Manor header. */
.estate-site {
  --estate-paper: #fbf9f3;
  --estate-ink: #352c29;
  --estate-wine: #743b42;
  --estate-muted: #716a60;
  --estate-line: #dcd6c9;
  --estate-height: 124px;
}
/* Existing page anchors and sticky navigation inherit the measured header height. */
.estate-site:not([data-header-variant="current"]) {
  --info-bar-height: 0px;
  --nav-height: var(--estate-height);
  margin-top: var(--estate-height);
}
.estate-header, .estate-menu, .estate-noscript { color: var(--estate-ink); font-family: var(--font-sansserif), sans-serif; }
.estate-header *, .estate-menu * { box-sizing: border-box; }
.estate-header a, .estate-menu a { color: inherit; text-decoration: none; }
.estate-header button, .estate-menu button { color: inherit; font: inherit; cursor: pointer; }
.estate-header button:focus:not(:focus-visible), .estate-menu button:focus:not(:focus-visible) { outline: none; }
.estate-header a:focus-visible, .estate-header button:focus-visible,
.estate-menu :is(a, button, summary):focus-visible {
  outline: 2px solid var(--estate-wine); outline-offset: 4px;
}
.estate-header {
  position: fixed; z-index: 10001; inset: 0 0 auto; background: var(--estate-paper);
  border-top: 3px solid var(--estate-wine); border-bottom: 1px solid var(--estate-line);
  box-shadow: 0 4px 18px #30251e08;
}
.estate-masthead {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 30px;
  height: 70px; width: calc(100% - 96px); max-width: 1500px; margin: auto;
  transition: height .22s ease;
}
.estate-location { justify-self: start; align-self: center; display: flex; align-items: center; min-height: 44px; }
.estate-small { font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.estate-location-line { font-family: 'Playfair Display', Georgia, serif; font-size: 13px; line-height: 1.5; color: var(--estate-muted); }
.estate-location-line > span { display: inline-block; }
.estate-location:hover .estate-location-line { color: var(--estate-wine); }
.estate-brand { display: block; width: 330px; line-height: 0; }
.estate-brand img { display: block; width: 100%; height: auto; opacity: .88; }
.estate-invitation { justify-self: end; display: flex; align-items: center; gap: 25px; }
.estate-tour {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 30px;
  min-height: 46px; padding: 12px 20px; background: linear-gradient(135deg, var(--bloom-green-base-2), var(--bloom-green-base-1)); color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 5px; background-clip: padding-box;
  box-shadow: 0 2px 8px #0003, inset 0 1px 0 #ffffff40;
  font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .045em;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.estate-tour span { font-size: 21px; line-height: 1; font-weight: 400; }
.estate-tour:hover { background: linear-gradient(135deg, var(--bloom-green-hover-2), var(--bloom-green-hover-1)); border-color: rgba(255, 255, 255, .45); box-shadow: 0 4px 12px #00000040, inset 0 1px 0 #ffffff59; }
.estate-tour:active { box-shadow: 0 2px 6px #0003, inset 0 2px 4px #0003, inset 0 1px 0 #ffffff33; }
.estate-phone { order: -1; font-size: 12px; line-height: 1.4; white-space: nowrap; letter-spacing: .025em; padding: 10px 0; border-bottom: 1px solid transparent; }
.estate-phone:hover { border-color: var(--estate-wine); }
.estate-nav { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: stretch; gap: clamp(24px, 3vw, 44px); height: 50px; border-top: 1px solid var(--estate-line); }
.estate-nav-group { display: flex; align-items: stretch; gap: clamp(20px, 2.8vw, 38px); min-width: 0; }
.estate-nav-group--left { justify-content: flex-end; }
.estate-nav-group--right { justify-content: flex-start; }
.estate-nav-group > a, .estate-nav-group > button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 2px; margin: 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; white-space: nowrap;
  font-family: var(--font-sansserif), sans-serif; line-height: 1.5; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.estate-nav-group > :is(a, button)::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--estate-wine);
  transform: scaleX(0); transition: transform .2s ease;
}
.estate-nav-group > :is(a, button):hover::after, .estate-nav-group > :is(a, button):focus-visible::after,
.estate-nav-group > [aria-current], .estate-nav-group > [data-current], .estate-nav-group > [aria-expanded="true"] { color: var(--estate-wine); }
.estate-nav-group > [aria-current]::after, .estate-nav-group > [data-current]::after, .estate-nav-group > [aria-expanded="true"]::after { transform: scaleX(1); }
.estate-nav-group > :is(a, button):hover::after, .estate-nav-group > :is(a, button):focus-visible::after { transform: scaleX(1); }
.estate-nav-ornament { align-self: center; justify-self: center; color: #9c8b6b; font-size: 20px; line-height: 1; }
.estate-photos-toggle svg { transition: transform .2s ease; }
.estate-photos-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Compress the link row gently while preserving the masthead breathing room. */
.estate-nav { transition: height .22s ease; }
@media (min-width: 901px) {
  .estate-header.is-scrolled .estate-nav { height: 44px; }
}
.estate-header.is-scrolled .estate-masthead { height: 68px; }
.estate-header.is-scrolled { box-shadow: 0 4px 16px #30251e12; }
.estate-menu-toggle, .estate-mobile-strip { display: none; }
.estate-shade { position: fixed; inset: 0; z-index: 10000; background: #211b193d; }
.estate-shade[hidden], .estate-photos[hidden] { display: none; }
.estate-photos {
  position: absolute; top: 100%; left: 50%; width: min(1050px, calc(100vw - 64px)); transform: translateX(-50%);
  max-height: calc(100dvh - var(--estate-height) - 16px); overflow-y: auto;
  padding: 24px 32px 30px; background: var(--estate-paper); border: 1px solid var(--estate-line); border-top: 0;
  box-shadow: 0 22px 34px #30251e20;
}
.estate-photos-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.estate-photos-heading p { margin: 0; font: 400 italic 22px/1.4 'Playfair Display', Georgia, serif; }
.estate-photos-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--estate-line); background: transparent; font-size: 27px !important; line-height: 1 !important; }
.estate-photos-close:hover { background: #eee9df; }
.estate-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.estate-gallery { display: block; }
.estate-gallery-image { display: block; aspect-ratio: 1.7; overflow: hidden; background: #e8e5dc; }
.estate-gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.estate-gallery:hover img { transform: scale(1.035); }
.estate-gallery-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; font: 400 23px/1.3 'Playfair Display', Georgia, serif; }
.estate-gallery-title > span { font-family: var(--font-sansserif), sans-serif; font-size: 24px; color: var(--estate-wine); }
.estate-gallery-detail { display: block; margin-top: 7px; font-size: 12px; color: var(--estate-muted); }
.estate-menu {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none;
  border: 0; border-top: 3px solid var(--estate-wine); padding: 0; margin: 0; background: var(--estate-paper); overflow-y: auto;
}
.estate-menu::backdrop { background: #29211e80; }
html.estate-menu-open { overflow: hidden; }
.estate-menu-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 28px; border-bottom: 1px solid var(--estate-line); }
.estate-menu-head .estate-brand { width: min(280px, 73%); }
.estate-menu-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--estate-line); border-radius: 50%; background: transparent; line-height: 1 !important; }
.estate-menu-close svg { display: block; }
.estate-menu-body { max-width: 650px; margin: auto; padding: 28px; }
.estate-menu-welcome { margin: 0 0 18px; color: var(--estate-wine); }
.estate-menu-links > a, .estate-menu-photos > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 59px; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--estate-line); font: 400 29px/1.25 'Playfair Display', Georgia, serif; }
.estate-menu-links > a > span, .estate-menu-photos summary > span { font: 400 23px/1 var(--font-sansserif), sans-serif; color: #9a8a75; }
.estate-menu-links > a:hover, .estate-menu-links > a[aria-current] { color: var(--estate-wine); }
.estate-menu-photos > summary { list-style: none; cursor: pointer; }
.estate-menu-photos > summary::-webkit-details-marker { display: none; }
.estate-menu-photos[open] > summary > span { transform: rotate(45deg); }
.estate-menu-photos > div { display: grid; padding: 8px 0 10px 16px; background: #f0ece3; }
.estate-menu-photos > div > a { padding: 11px 8px; font-size: 15px; line-height: 1.5; }
.estate-menu-foot { margin-top: 30px; }
.estate-menu-foot > .estate-tour { width: 100%; min-height: 52px; font-size: 14px; }
.estate-menu-contact { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-top: 23px; padding-bottom: env(safe-area-inset-bottom, 0px); font-size: 12px; line-height: 1.8; color: var(--estate-muted); }
.estate-menu-contact p { margin: 0; }
.estate-menu-contact > a { white-space: nowrap; padding: 5px 0; border-bottom: 1px solid var(--estate-line); }
.estate-noscript { padding: 20px; display: flex; gap: 20px; flex-wrap: wrap; background: var(--estate-paper); }
.estate-skip { position: fixed; left: 15px; top: -100px; z-index: 10004; padding: 12px 20px; background: #fff; color: #352c29; }
.estate-skip:focus { top: 10px; }
@media (max-width: 1250px) {
  .estate-masthead { width: calc(100% - 64px); gap: 20px; }
  /* The two-line address and stacked tour/phone need consistent breathing
     room. Keep this row at 70px when scrolling instead of compressing it. */
  .estate-header.is-scrolled .estate-masthead { height: 70px; }
  .estate-location-line > span { display: block; }
  .estate-invitation { gap: 4px; flex-direction: column; }
  .estate-phone { order: 0; padding: 0; font-size: 12px; }
  .estate-masthead .estate-brand { width: clamp(260px, 25vw, 290px); }
  .estate-invitation .estate-tour { min-height: 38px; padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 900px) {
  .estate-site { --estate-height: 108px; }
  .estate-masthead, .estate-header.is-scrolled .estate-masthead { height: 64px; width: calc(100% - 40px); grid-template-columns: 1fr auto; gap: 20px; }
  .estate-location, .estate-invitation, .estate-nav { display: none; }
  .estate-masthead .estate-brand { width: min(300px, 100%); }
  .estate-menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 52px; width: 48px; padding: 0; background: transparent; border: 0; font-size: 9px !important; line-height: 1 !important; letter-spacing: .1em; text-transform: uppercase; }
  .estate-menu-lines { display: block; width: 24px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .estate-mobile-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 40px; padding: 0 20px; background: #f2eee5; border-top: 1px solid var(--estate-line); font-size: 10px; line-height: 1.5; }
  .estate-mobile-strip > span { letter-spacing: .065em; text-transform: uppercase; }
  .estate-mobile-strip > span > span { padding: 0 4px; }
  .estate-mobile-strip > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: stretch; color: var(--estate-wine); font-weight: 700; padding-left: 16px; border-left: 1px solid var(--estate-line); font-size: 12px; }
  .estate-mobile-strip > a > span { font-size: 19px; }
  .estate-photos, .estate-shade { display: none; }
}
@media (max-width: 480px) {
  .estate-masthead .estate-brand { width: min(270px, 100%); }
  .estate-masthead { gap: 12px; }
  .estate-menu-head { padding: 16px 20px; }
  .estate-menu-body { padding: 25px 24px; }
}
@media (max-width: 370px) {
  .estate-mobile-strip { padding: 0 16px; gap: 8px; }
  .estate-mobile-strip > span { font-size: 8px; }
  .estate-mobile-strip > a { font-size: 11px; gap: 8px; padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .estate-header *, .estate-menu * { transition: none !important; animation: none !important; }
}

@media print {
  .estate-header, .estate-menu, .estate-shade, .estate-skip { display: none !important; }
  .estate-site:not([data-header-variant="current"]) { margin-top: 0 !important; }
}
