/* Shared chrome for guide pages — fonts & layout match src/App.css */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

:root { --primary-color: #c53744; }

body,
.nav,
.footer,
.enquiry-form input,
.enquiry-form select,
.enquiry-form button,
.btn {
  font-family: "Nunito", Arial, sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  letter-spacing: -0.5px;
}

.site-register,
site-register,
.site-footer,
site-footer {
  display: block;
}

site-nav {
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Sticky on <site-nav> host — inner .nav must not be its own sticky box */
site-nav .nav {
  position: static;
  top: auto;
  z-index: auto;
}

/* Register + footer: single continuous dark block (no white gap) */
site-register .section.cta,
.site-register .section.cta {
  padding-bottom: 0;
}

site-register + site-footer .footer-inner,
.site-register + .site-footer .footer-inner {
  padding-top: 24px;
}

.section { padding: 80px 20px; background: #fff; }
.section.alt { background: #f7f7f7; }
.container { max-width: 1200px; margin: auto; }
.center { text-align: center; }
.subtext { font-size: 15px; color: #6b6b6b; max-width: 700px; margin: 0 auto 40px; }
.font-bold { font-weight: 700; }

.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.nav-inner {
  margin: 0 8%;
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand a { display: block; line-height: 0; }

.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.links a {
  margin-left: 18px;
  text-decoration: none;
  color: #444;
  font-size: 15px;
  position: relative;
  transition: 0.2s;
}

.links a:hover { color: var(--primary-color); }
.links a.active { color: var(--primary-color); }

.links a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.links a.active::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #444;
  transition: 0.3s;
}

.hamburger-line.open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-line.open:nth-child(2) { opacity: 0; }
.hamburger-line.open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cta { background: #111; color: #fff; }
.cta .subtext { color: #aaa; }
.cta h2 { color: #fff; font-size: 34px; margin-bottom: 10px; }

.btn {
  padding: 8px 35px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  transition: 0.2s;
  font-weight: 700;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn.primary {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
}

.btn.full { width: 100%; }

.btn-small {
  padding: 5px 40px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-small.primary {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.m-3 {
  margin-top: 12px;
}

.enquiry-form {
  max-width: 420px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.enquiry-form input,
.enquiry-form select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
  color: #4e4e4e;
  background: #fff;
  font-family: inherit;
}

.enquiry-form input:focus,
.enquiry-form select:focus { border-color: var(--primary-color); }

.footer { background: #111; color: #ccc; padding: 0; }

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.footer-links a:hover { color: var(--primary-color); }

.footer-rights { font-size: 12px; color: #666; margin: 0; }

@media (max-width: 768px) {
  .nav-inner { margin: 0 4%; }
  .hamburger { display: flex; }

  .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 4%;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .links.mobile-open { display: flex; }
  .links a { margin: 0; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
  .links a:last-child { border-bottom: none; }
  .nav-right { position: relative; }
}
