/* Load as a theme asset on the front end and in the block editor. */
/* No global CSS reset, no fixed-position header, no changes to poem content. */
.aviator-native-header, .aviator-native-header *,
.aviator-footer, .aviator-footer * { box-sizing: border-box; }
.aviator-native-header { padding-block: 20px; }
.aviator-template-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 999;
}
html.aviator-has-sticky-header { scroll-padding-top: var(--aviator-header-offset, 140px); }
.aviator-native-header .aviator-header {
  position: relative;
  isolation: isolate;
  width: 92%;
  max-width: none;
  margin: 0 auto;
  padding: 24px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}
/* Blur lives on a pseudo-element so the native fixed overlay stays viewport-sized. */
.aviator-native-header .aviator-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(236, 233, 228, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  pointer-events: none;
}
.aviator-native-header .aviator-header.scrolled::before {
  background: rgba(236, 233, 228, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.aviator-native-header .header-logo {
  flex-shrink: 0;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
}
.aviator-native-header .header-logo a { color: #111; text-decoration: none; }
.aviator-native-header .header-nav { margin: 0; }
.aviator-native-header .header-nav .wp-block-navigation__container { gap: 42px; }
.aviator-native-header .header-nav .wp-block-navigation-item__content {
  position: relative;
  min-height: 44px;
  padding-block: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.aviator-native-header .header-nav .wp-block-navigation-item__content:hover,
.aviator-native-header .header-nav .wp-block-navigation-item__content[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.aviator-native-header .header-cta { flex-shrink: 0; margin: 0; }
.aviator-native-header .header-btn .wp-block-button__link,
.aviator-native-header .wp-block-navigation__responsive-container-open,
.aviator-native-header .wp-block-navigation__responsive-container-close {
  min-height: 44px;
  border: 1px solid #111;
  border-radius: 0;
  padding: 14px 24px;
  background: #111;
  color: #ece9e4;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
}
.aviator-native-header :is(a, button):focus-visible {
  outline: 2px solid #111;
  outline-offset: 5px;
}
.aviator-native-header .header-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: #ece9e4;
  color: #111;
  padding: max(28px, env(safe-area-inset-top)) 7% max(32px, env(safe-area-inset-bottom));
}
.aviator-native-header .header-nav .is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 88px;
  align-items: flex-start;
}
.aviator-native-header .header-nav .is-menu-open .wp-block-navigation__container {
  align-items: flex-start;
  gap: 18px;
}
.aviator-native-header .header-nav .is-menu-open .wp-block-navigation-item__content {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.4;
  padding: 8px;
}
@media (max-width: 1080px) {
  .aviator-native-header .aviator-header { padding: 20px 5%; gap: 18px; }
  .aviator-native-header .header-logo { font-size: 22px; }
  .aviator-native-header .header-cta { display: none; }
  .aviator-native-header .header-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }
  .aviator-native-header .header-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }
  .aviator-native-header .wp-block-navigation__responsive-container-open,
  .aviator-native-header .wp-block-navigation__responsive-container-close { padding: 12px 16px; font-size: 14px; }
}
@media (min-width: 1081px) {
  .aviator-native-header .header-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none; }
}
@media (max-width: 380px) {
  .aviator-native-header .aviator-header { gap: 10px; padding-inline: 4%; }
  .aviator-native-header .header-logo { font-size: 18px; letter-spacing: 1px; }
}
@media (max-width: 600px) { body.admin-bar .aviator-template-header { top: 0; } }
@media (prefers-reduced-motion: reduce) {
  .aviator-native-header .aviator-header::before { transition: none; }
}

/* Footer keeps the original black-and-ivory literary composition. */
.aviator-footer {
  position: relative;
  width: 100%;
  background: #111;
  color: #ece9e4;
  padding: 120px 7% 60px;
  overflow: hidden;
}
.aviator-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .03;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, white 1px, transparent 1px), radial-gradient(circle at 80% 40%, white 1px, transparent 1px), radial-gradient(circle at 40% 80%, white 1px, transparent 1px);
  background-size: 120px 120px;
}
.aviator-footer::after {
  content: '';
  position: absolute;
  right: 80px;
  top: 60px;
  width: 120px;
  height: 120px;
  opacity: .04;
  pointer-events: none;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ctext x='8' y='92' font-size='100' fill='%23ece9e4'%3E%E2%9C%88%3C/text%3E%3C/svg%3E");
  transform: rotate(-15deg);
  animation: aviatorPlaneFloat 5s ease-in-out infinite;
}
.aviator-footer :is(h2, h3, p) { margin-top: 0; }
.aviator-footer .footer-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  margin: 0 0 90px;
}
.aviator-footer .footer-left { max-width: 620px; }
.aviator-footer .footer-small {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 7px;
  font-size: 14px;
  line-height: 1.5;
  opacity: .7;
  margin-bottom: 25px;
}
.aviator-footer .footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 82px;
  line-height: .92;
  font-weight: 700;
  color: #ece9e4;
  margin-bottom: 35px;
}
.aviator-footer .footer-description {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  line-height: 1.7;
  color: rgba(236, 233, 228, .8);
  margin-bottom: 0;
}
.aviator-footer .footer-right { display: flex; gap: 90px; margin: 0; }
.aviator-footer .footer-column h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  line-height: 1.3;
  color: #ece9e4;
  margin-bottom: 25px;
}
.aviator-footer .footer-navigation,
.aviator-footer .footer-navigation .wp-block-navigation__container { gap: 4px; margin: 0; align-items: flex-start; }
.aviator-footer .footer-column a {
  display: block;
  min-height: 44px;
  padding-block: 5px;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  line-height: 1.4;
  color: rgba(236, 233, 228, .72);
  margin-bottom: 0;
  transition: color .3s ease;
}
.aviator-footer .footer-column a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.aviator-footer a:focus-visible { outline: 2px solid #ece9e4; outline-offset: 5px; }
.aviator-footer .footer-divider {
  max-width: none;
  width: 100%;
  height: 1px;
  border: 0;
  opacity: 1;
  background: rgba(255, 255, 255, .08);
  margin: 0 0 35px;
}
.aviator-footer .footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0;
}
.aviator-footer .footer-copy { font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.5; color: rgba(236, 233, 228, .65); margin: 0; }
.aviator-footer .footer-quote { font-family: 'Cormorant Garamond', serif; font-size: 24px; line-height: 1.5; font-style: italic; color: rgba(236, 233, 228, .55); margin: 0; }
@keyframes aviatorPlaneFloat {
  0%, 100% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(-12px) rotate(-13deg); }
}
@media (max-width: 1100px) {
  .aviator-footer .footer-top { flex-direction: column; }
  .aviator-footer .footer-right { gap: 50px; flex-wrap: wrap; }
  .aviator-footer .footer-title { font-size: 58px; }
}
@media (max-width: 768px) {
  .aviator-footer { padding: 90px 25px 40px; }
  .aviator-footer .footer-top { gap: 48px; margin-bottom: 56px; }
  .aviator-footer .footer-title { font-size: 42px; }
  .aviator-footer .footer-description { font-size: 22px; }
  .aviator-footer .footer-column a { font-size: 21px; }
  .aviator-footer .footer-copy, .aviator-footer .footer-quote { font-size: 18px; }
  .aviator-footer::after { width: 80px; height: 80px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .aviator-footer::after { animation: none; }
  .aviator-footer a { transition: none; }
}
@media(max-width:1080px){
 .aviator-native-header{padding-block:12px}
 .aviator-native-header .aviator-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
 .aviator-native-header .header-logo{grid-column:1;grid-row:1}
 .aviator-native-header .header-nav{grid-column:2;grid-row:1}
}
@media(max-width:1080px){
 .aviator-native-header .header-logo{white-space:nowrap}
 .aviator-native-header .wp-block-navigation__responsive-container-open{width:100px}
}
