/* layout.css — header, footer, page-level structure — Royal Cafe Westminster */

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(30,32,34,.05);
  background: color-mix(in srgb, var(--cream) 96%, transparent);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand span { color: var(--clay); }
.site-header .brand { display: inline-flex; align-items: center; line-height: 0; }
.site-header .brand img { height: 44px; width: auto; display: block; }
@media (max-width: 640px) { .site-header .brand img { height: 38px; } }
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-weight: 600; font-size: 1rem; color: var(--ink);
  position: relative; padding-block: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--clay); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: none; }

/* mobile menu button */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; margin-inline: auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: .5rem var(--gutter) 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: .85rem 0; font-weight: 600; font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .btn { margin-top: 1rem; width: 100%; text-align: center; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(48px, 7vw, 80px) 2rem;
}
.site-footer a { color: var(--cream); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
.footer-brand .brand { color: var(--cream); font-size: 1.6rem; display: inline-flex; line-height: 0; }
.footer-brand .brand img { height: 54px; width: auto; display: block; }
.footer-brand .brand span { color: #C98A62; }
.footer-brand p { color: rgba(240,236,227,.72); margin-top: 1rem; max-width: 36ch; }
.footer-col h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--cream); margin-bottom: 1rem; letter-spacing: .04em; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: rgba(240,236,227,.78); transition: color .2s; }
.footer-col a:hover { color: #C98A62; }
.footer-contact li { color: rgba(240,236,227,.78); margin-bottom: .55rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(240,236,227,.18);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .9rem; color: rgba(240,236,227,.6);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 3rem; }
}

/* ---------- generic section head ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }
