/* Namirembe Guest House — shared styles */

:root {
  /* Palette derived from the NGH logo (magenta #A7228E) */
  --paper: #F6F1EC;
  --paper-deep: #ECE2DC;
  --ink: #271A22;
  --ink-soft: #574A52;
  --ink-muted: #8A7C84;
  --cathedral: #3A2233;      /* deep plum (was cathedral green) */
  --cathedral-deep: #241620; /* near-black plum */
  --clay: #A7228E;           /* brand magenta (primary accent) */
  --clay-deep: #7E1A6C;
  --earth: #5C4533;
  --gold: #B89968;
  --line: rgba(39, 26, 34, 0.14);
  --line-strong: rgba(39, 26, 34, 0.28);

  --font-display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --max-w: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --radius: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- TYPE ---- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.italic { font-style: normal; font-family: var(--font-display); }
/* Sans-serif site-wide: collapse italic accents on display headings */
h1 em, h2 em, h3 em, h4 em,
.display em,
.hero em, .marquee em,
.intro em, .offerings em, .orient em,
.testimonial em, .cta-band em,
.footer-brand em,
.dine-hero-img em, .menu-paper em, .dine-story em, .chef em, .chef-quote em,
.hall em, .package em,
.contact-grid em, .form-card em, .map-band em, .dir-card em, .faq em, .addr em, .channel em,
.room em, .ex-hero em,
.page-header em, .page-hero-img em,
.nav-account .acct-menu .who em,
.brand-text em { font-style: normal; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

/* ---- TOP UTILITY BAR ---- */
/* Not sticky: it scrolls away as you move down the page, leaving the main
   nav pinned to the top. */
.topbar, .topbar-util {
  position: relative; z-index: 60;
  background: var(--cathedral-deep);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex; align-items: center; gap: 18px;
}
.topbar a, .topbar-util a { color: rgba(245, 240, 228, 0.86); display: inline-flex; align-items: center; gap: 8px; }
.topbar a, .topbar-util a:hover { color: var(--paper); }
.topbar .tb-contact, .topbar-util .tb-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-social, .topbar-util .tb-social { margin-left: auto; display: flex; gap: 12px; }
.topbar .tb-social a, .topbar-util .tb-social a { padding: 4px; }
.topbar svg, .topbar-util svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) {
  .topbar-inner { gap: 10px; padding: 7px 14px; }
  .topbar .tb-contact, .topbar-util .tb-contact { gap: 12px; font-size: 10px; letter-spacing: 0.1em; }
  .topbar .tb-contact .tb-email, .topbar-util .tb-contact a[href^="mailto:"] { display: none; }
  .topbar .tb-social, .topbar-util .tb-social { gap: 8px; }
}

/* ---- TOP NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-logo {
  height: 42px; width: auto; display: block;
  flex: none;
}
.brand-mark {
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 18px; font-style: italic;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--ink-muted);
  margin-top: 4px;
  text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 28px; justify-content: center;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--clay);
}
.nav-cta {
  display: flex; justify-content: flex-end; align-items: center; gap: 14px;
}

/* ---- TOP UTILITY BAR (above the main nav) ---- */
.topbar-util {
  background: var(--cathedral-deep);
  color: rgba(245,240,228,0.82);
}
.topbar-util .topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
}
.topbar-util .tb-contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-util .tb-contact a { color: rgba(245,240,228,0.82); display: inline-flex; align-items: center; gap: 7px; }
.topbar-util .tb-contact a:hover { color: var(--paper); }
.topbar-util .tb-contact svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }
.topbar-util .tb-social { display: flex; align-items: center; gap: 12px; }
.topbar-util .tb-social a {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(245,240,228,0.28);
  color: rgba(245,240,228,0.82);
}
.topbar-util .tb-social a:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.topbar-util .tb-social svg { width: 14px; height: 14px; }
@media (max-width: 620px) {
  .topbar-util .tb-contact a:nth-child(2) { display: none; }
  .topbar-util .topbar-inner { font-size: 10px; gap: 12px; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: all 0.2s ease;
}
.btn:hover { background: var(--cathedral); border-color: var(--cathedral); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.clay { background: var(--clay); border-color: var(--clay); }
.btn.clay:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn.sm { padding: 8px 14px; font-size: 11px; }
.btn .arrow { font-family: var(--font-display); font-size: 16px; line-height: 1; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(60px, 8vw, 120px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }

/* ---- PAGE HEADER (used by sub-pages) ---- */
.page-header {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.page-header .lede {
  margin-top: 28px;
  max-width: 640px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---- IMG PLACEHOLDERS ---- */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(31,42,31,0.04) 0 8px,
      rgba(31,42,31,0.07) 8px 16px);
  border: 1px solid var(--line);
  overflow: hidden;
  color: var(--ink-muted);
}
.placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 12px 12px auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--line);
}
.placeholder.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(42,58,42,0.85) 0 8px,
      rgba(26,37,25,0.95) 8px 16px);
  color: var(--paper);
}
.placeholder.dark::after {
  background: var(--cathedral-deep);
  color: var(--paper);
  border-color: rgba(255,255,255,0.2);
}
.placeholder.clay-bg {
  background:
    repeating-linear-gradient(135deg,
      rgba(167,34,142,0.78) 0 8px,
      rgba(126,26,108,0.92) 8px 16px);
  color: var(--paper);
}
.placeholder.clay-bg::after { background: var(--clay-deep); color: var(--paper); border-color: rgba(255,255,255,0.2); }
.placeholder.img {
  background: var(--cathedral-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.placeholder.img::after { display: none; }
.placeholder.img.tint::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,37,25,0) 50%, rgba(26,37,25,0.45));
  pointer-events: none;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--cathedral-deep);
  color: var(--paper);
  padding: clamp(60px, 7vw, 100px) 0 32px;
  margin-top: clamp(60px, 7vw, 100px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,228,0.6);
  margin-bottom: 20px;
}
.footer .footer-brand { font-family: var(--font-display); font-size: 36px; line-height: 1; margin-bottom: 18px; }
.footer .footer-brand em { font-style: italic; color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(245,240,228,0.78); font-size: 14px; }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,240,228,0.14);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245,240,228,0.5);
  text-transform: uppercase;
}

/* ---- CTA band: give the big heading room for descenders (g, y, p) ---- */
.cta-band h2 { line-height: 1.1 !important; padding-bottom: 0.06em; }

/* ---- REVIEWS (hydrated) ---- */
.ngh-reviews-band { background: var(--paper-deep); }
.ngh-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.ngh-review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex; flex-direction: column;
}
.ngh-review-stars { color: var(--clay); letter-spacing: 2px; margin-bottom: 10px; }
.ngh-review h3 { font-size: 18px; line-height: 1.2; margin: 4px 0 10px; }
.ngh-review p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; }
.ngh-review cite {
  margin-top: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 900px) { .ngh-reviews-grid { grid-template-columns: 1fr; } }

.ngh-google-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.ngh-google-badge .r { font-family: var(--font-display); font-size: 22px; color: var(--ink); letter-spacing: 0; text-transform: none; }
.ngh-google-badge .s { color: var(--clay); letter-spacing: 1px; }

/* ---- UTILITIES ---- */
.divider { height: 1px; background: var(--line); width: 100%; }
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
}
.tag.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag.clay { background: var(--clay); color: var(--paper); border-color: var(--clay); }
.tag.green { background: var(--cathedral); color: var(--paper); border-color: var(--cathedral); }

/* ---- HAMBURGER + MOBILE NAV ---- */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  width: 40px; height: 40px; border-radius: 8px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px);
  background: var(--paper);
  z-index: 90;
  padding: 24px;
  flex-direction: column; gap: 14px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -20px 0 50px rgba(0,0,0,0.18);
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile .nm-head { display: flex; justify-content: flex-end; }
.nav-mobile .nm-close {
  background: none; border: none; cursor: pointer; padding: 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
}
.nav-mobile .nm-links { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.nav-mobile .nm-links a {
  padding: 12px 6px;
  font-size: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.nav-mobile .nm-links a.active { color: var(--clay); }
.nav-mobile .nm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.nav-mobile .nm-actions .btn { justify-content: center; }
.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(36,22,32,0.45);
  z-index: 85;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .nav-mobile { display: flex; }
  .brand-text { font-size: 16px; }
  .brand-logo { height: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Rounded corners — softer geometry (site-wide) ===== */
.placeholder { border-radius: var(--radius-sm); }

/* Card containers across every page */
.offer-card, .map-card,
.policy, .menu-paper,
.hall, .package,
.channel, .addr, .form-card, .dir-card, .map-frame,
.kt, .act, .day, .attr-card,
.ex-hero .compass, .dine-hero-img {
  border-radius: var(--radius);
}

/* Seamless hairline grids: round the outer frame and clip children */
.meals-grid { border-radius: var(--radius); overflow: hidden; }

/* Cards with edge-to-edge images: clip the image to the card's radius */
.hall, .dine-hero-img { overflow: hidden; }
.hall .img .placeholder,
.dine-hero-img > .placeholder { border-radius: 0; }

/* ===== Footer logo ===== */
.footer-logo { height: 56px; width: auto; display: block; margin-bottom: 18px; }

/* ===== Shared sub-page hero image (rooms / conferences / contact) ===== */
.page-hero-img {
  height: clamp(300px, 44vh, 480px);
  margin-top: clamp(28px, 4vw, 44px);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.page-hero-img .placeholder { height: 100%; width: 100%; border-radius: 0; }
.page-hero-img .tag-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px clamp(20px, 4vw, 40px);
  background: linear-gradient(180deg, transparent, rgba(36,22,32,0.72));
  display: flex; justify-content: space-between; align-items: end;
  gap: 18px; color: var(--paper);
}
.page-hero-img .tag-strip .when {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.page-hero-img .tag-strip .what {
  font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 3vw, 30px);
}

/* ===== Dining split hero ===== */
.dine-hero-img.split {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px;
  background: transparent; border-radius: 0;
}
.dine-hero-img.split .split-pane { position: relative; border-radius: var(--radius); overflow: hidden; }
.dine-hero-img.split .split-pane .placeholder { height: 100%; width: 100%; border-radius: 0; }
.dine-hero-img.split .tag-strip { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
@media (max-width: 760px) {
  .dine-hero-img.split { grid-template-columns: 1fr; }
  .dine-hero-img.split .split-pane:last-child { display: none; }
}

/* ===== Account control in the nav (sign in / avatar) ===== */
.nav-account { position: relative; display: inline-flex; align-items: center; }
.nav-account .signin-btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
  background: none; border: none; padding: 6px 4px; cursor: pointer;
}
.nav-account .signin-btn:hover { color: var(--ink); }
.nav-account .avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--clay); color: #fff; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.nav-account .acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  min-width: 220px; padding: 14px; z-index: 80; display: none;
}
.nav-account.open .acct-menu { display: block; }
.nav-account .acct-menu .who { font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.nav-account .acct-menu .who small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.nav-account .acct-menu hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.nav-account .acct-menu button.link {
  background: none; border: none; padding: 4px 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.nav-account .acct-menu button.link:hover { color: var(--clay); }
