body.aehf-header-enabled > header:not(.aehf-header),
body.aehf-header-enabled .site-header:not(.aehf-header),
body.aehf-header-enabled > .header:not(.aehf-header),
body.aehf-header-enabled #page > .header:not(.aehf-header),
body.aehf-header-enabled .elementor-location-header {
  display: none !important;
}

body.aehf-footer-enabled > footer:not(.aehf-footer),
body.aehf-footer-enabled .site-footer:not(.aehf-footer),
body.aehf-footer-enabled > .footer:not(.aehf-footer),
body.aehf-footer-enabled #page > .footer:not(.aehf-footer),
body.aehf-footer-enabled .elementor-location-footer {
  display: none !important;
}

.aehf-header,
.aehf-footer,
.aehf-header *,
.aehf-footer * {
  box-sizing: border-box;
}

.aehf-header {
  position: relative;
  z-index: 9990;
  width: 100%;
  color: var(--aehf-header-text) !important;
  background: color-mix(in srgb, var(--aehf-header-bg) 96%, transparent) !important;
  border-bottom: 1px solid var(--aehf-border);
  box-shadow: 0 6px 30px rgba(92, 64, 51, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.aehf-header.is-sticky {
  position: sticky;
  top: 0;
}

.admin-bar .aehf-header.is-sticky { top: 32px; }

.aehf-header-inner {
  width: min(92%, 1440px);
  min-height: var(--aehf-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: clamp(18px, 2.4vw, 42px);
}

.aehf-header a,
.aehf-footer a {
  color: inherit !important;
  text-decoration: none !important;
}

.aehf-brand,
.aehf-footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--aehf-header-text) !important;
  font: 500 20px/1 Georgia, serif;
  letter-spacing: 0.1em;
}

.aehf-brand img,
.aehf-footer-brand img {
  display: block;
  width: auto !important;
  max-width: var(--aehf-logo-width) !important;
  height: auto !important;
  max-height: calc(var(--aehf-height) - 20px) !important;
  object-fit: contain !important;
  filter: none !important;
}

.aehf-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
}

.aehf-navigation a {
  position: relative;
  padding: 10px 0;
  color: var(--aehf-header-text) !important;
  font: 600 10px/1.2 Manrope, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aehf-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--aehf-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.aehf-navigation a:hover::after,
.aehf-navigation a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.aehf-header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 14px;
  color: #fffdf9 !important;
  background: var(--aehf-header-text) !important;
  border: 1px solid var(--aehf-header-text);
  font: 600 9px/1.2 Manrope, Arial, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.aehf-header-cta:hover,
.aehf-header-cta:focus-visible {
  color: var(--aehf-header-text) !important;
  background: var(--aehf-header-bg) !important;
  transform: translateY(-1px);
}

.aehf-menu-toggle { display: none; }

.aehf-footer {
  position: relative;
  z-index: 10;
  padding: clamp(65px, 8vw, 110px) max(4vw, 20px) 24px;
  color: var(--aehf-footer-text) !important;
  background: var(--aehf-footer-bg) !important;
  border-top: 1px solid var(--aehf-border);
}

.aehf-footer-inner,
.aehf-footer-bottom {
  width: min(100%, 1380px);
  margin-inline: auto;
}

.aehf-footer-inner {
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) minmax(150px, 0.5fr) minmax(220px, 0.65fr);
  gap: clamp(42px, 8vw, 130px);
  padding-bottom: clamp(52px, 7vw, 90px);
}

.aehf-footer-brand { margin-bottom: 34px; color: var(--aehf-footer-text) !important; }
.aehf-footer-lead h2 { max-width: 700px; margin: 0 0 22px; color: var(--aehf-header-text) !important; font: 400 clamp(38px, 4.5vw, 68px)/0.98 Georgia, serif; letter-spacing: -0.035em; }
.aehf-footer-lead p { max-width: 570px; margin: 0; color: var(--aehf-footer-text) !important; font: 400 17px/1.7 Georgia, serif; }
.aehf-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.aehf-footer-column h3 { margin: 0 0 12px; color: var(--aehf-accent) !important; font: 700 9px/1.2 Manrope, Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
.aehf-footer-column a,
.aehf-footer-column p { margin: 0; color: var(--aehf-footer-text) !important; font: 500 13px/1.55 Manrope, Arial, sans-serif; }
.aehf-footer-column a:hover { color: var(--aehf-accent) !important; }

.aehf-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--aehf-border);
}

.aehf-footer-bottom p,
.aehf-footer-bottom a { margin: 0; color: var(--aehf-footer-text) !important; font: 600 9px/1.5 Manrope, Arial, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.aehf-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.aehf-footer-bottom a:hover { color: var(--aehf-accent) !important; }

@media (max-width: 950px) {
  .admin-bar .aehf-header.is-sticky { top: 46px; }
  .aehf-header-inner { min-height: 66px; grid-template-columns: 1fr auto; gap: 14px; }
  .aehf-brand img { max-width: min(var(--aehf-logo-width), 135px) !important; max-height: 44px !important; }
  .aehf-menu-toggle { display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; padding: 0; color: var(--aehf-header-text); background: transparent !important; border: 1px solid var(--aehf-border); cursor: pointer; }
  .aehf-menu-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  .aehf-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .aehf-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .aehf-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .aehf-navigation { position: absolute; top: 100%; right: 0; left: 0; display: grid; gap: 0; max-height: 0; padding: 0 4%; overflow: hidden; visibility: hidden; background: var(--aehf-header-bg); border-bottom: 1px solid var(--aehf-border); opacity: 0; transition: max-height 240ms ease, padding 240ms ease, opacity 180ms ease, visibility 180ms ease; }
  .aehf-navigation.is-open { max-height: 440px; padding-block: 10px 18px; visibility: visible; opacity: 1; }
  .aehf-navigation a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--aehf-border); }
  .aehf-header-cta { grid-column: 1 / -1; display: none; }
  .aehf-navigation.is-open + .aehf-header-cta { position: absolute; top: calc(100% + 262px); right: 4%; left: 4%; z-index: 2; display: flex; }
  .aehf-footer-inner { grid-template-columns: 1fr 1fr; }
  .aehf-footer-lead { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .aehf-header-inner { width: calc(100% - 28px); }
  .aehf-footer { padding-inline: 20px; }
  .aehf-footer-inner { grid-template-columns: 1fr; gap: 42px; }
  .aehf-footer-lead { grid-column: auto; }
  .aehf-footer-bottom { align-items: flex-start; flex-direction: column; }
}
