/* =========================================================================
   LAYOUT — shell, header, navigation, footer
   ========================================================================= */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell-narrow {
  max-width: var(--shell-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: clamp(36px, 4vw, 56px);
}

.section-cream {
  background: var(--cream);
  border-block: var(--hairline);
}

.section-burgundy {
  background: var(--burgundy-deep);
  color: var(--cream);
}

.section-burgundy h2,
.section-burgundy h3,
.section-burgundy h4 {
  color: var(--paper);
}

.section-burgundy p {
  color: rgba(244, 238, 228, 0.86);
}

/* ---- Top information bar ---- */
.topbar {
  background: var(--burgundy-deep);
  color: rgba(244, 238, 228, 0.92);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 36px;
  padding-block: 7px;
  flex-wrap: wrap;
}

.topbar-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.topbar-list li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-list li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--brass);
  display: inline-block;
}

.topbar-contact {
  margin-left: auto;
  display: flex;
  gap: var(--space-4);
}

.topbar-contact a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(173, 134, 80, 0.7);
  padding-bottom: 1px;
}

.topbar-contact a:hover {
  color: var(--white);
  border-bottom-color: var(--brass);
}

@media (max-width: 720px) {
  .topbar-list li:nth-child(n + 3) {
    display: none;
  }
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: var(--hairline);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(to right, var(--burgundy) 0 30%, transparent 30%);
  opacity: 0.5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-height);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex: none;
  /* Clear space around the supplied artwork. */
  padding: 6px 10px 6px 0;
}

.logo-link img {
  height: 56px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}

.primary-nav a {
  position: relative;
  color: var(--charcoal);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 550;
  letter-spacing: 0.01em;
  padding-block: 6px;
  white-space: nowrap;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.primary-nav a[aria-current="page"] {
  color: var(--burgundy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: var(--hairline);
  border-color: var(--border-strong);
  color: var(--charcoal);
  padding: 9px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  min-height: 44px;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  height: 1.5px;
  background: var(--burgundy);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---- Mobile navigation panel ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height-mobile);
  border-bottom: var(--hairline);
  padding-inline: var(--gutter);
}

.mobile-nav-head img {
  height: 44px;
  width: auto;
}

.mobile-nav-close {
  background: none;
  border: var(--hairline);
  border-color: var(--border-strong);
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  border-radius: var(--radius);
}

.mobile-nav-body {
  overflow-y: auto;
  padding: var(--space-5) var(--gutter) var(--space-8);
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
}

.mobile-nav-list li {
  margin: 0;
  border-bottom: var(--hairline);
}

.mobile-nav-list a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: var(--charcoal);
}

.mobile-nav-list a[aria-current="page"] {
  color: var(--burgundy);
}

.mobile-nav-list .nav-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
}

.mobile-nav-list .nav-hint {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

.mobile-nav-contact {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 2px solid var(--burgundy);
}

@media (max-width: 1000px) {
  .primary-nav,
  .header-actions .button-quote {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-inner {
    min-height: var(--header-height-mobile);
  }
  .logo-link img {
    height: 44px;
  }
  html {
    scroll-padding-top: calc(var(--header-height-mobile) + 12px);
  }
}

/* ---- Fixed mobile enquiry action ---- */
.mobile-cta {
  display: none;
}

@media (max-width: 720px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-auto-flow: column;
    gap: 1px;
    background: var(--border);
    border-top: var(--hairline);
  }

  .mobile-cta a {
    background: var(--paper);
    color: var(--charcoal);
    text-decoration: none;
    text-align: center;
    padding: 13px 8px calc(13px + env(safe-area-inset-bottom, 0px));
    font-size: var(--text-sm);
    font-weight: 600;
    min-height: 48px;
  }

  .mobile-cta a.primary {
    background: var(--burgundy);
    color: var(--paper);
  }

  /* Keeps the bar from covering the end of the page. */
  body {
    padding-bottom: 62px;
  }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  padding-block: var(--space-4);
  border-bottom: var(--hairline);
  background: var(--paper);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumbs li {
  margin: 0;
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--brass);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--burgundy);
}

.breadcrumbs [aria-current="page"] {
  color: var(--charcoal);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--charcoal);
  color: rgba(244, 238, 228, 0.78);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(140px, 1fr));
  gap: var(--space-7) var(--space-5);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(244, 238, 228, 0.16);
}

/* The logo keeps its own light panel rather than being recoloured. */
.footer-logo-plate {
  display: inline-flex;
  background: var(--paper);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.footer-logo-plate img {
  height: 62px;
  width: auto;
}

.footer-brand p {
  color: rgba(244, 238, 228, 0.72);
  max-width: 34ch;
}

.footer-column h2 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-4);
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a,
.footer-brand a {
  color: rgba(244, 238, 228, 0.82);
  text-decoration: none;
}

.footer-column a:hover,
.footer-brand a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  justify-content: space-between;
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  color: rgba(244, 238, 228, 0.6);
}

.footer-bottom p {
  margin: 0;
  max-width: none;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}
