/* ===========================
   Header + Footer Styles
   =========================== */

/* ---------- Desktop header ---------- */
.site-header-custom .main-nav {
  width: 100%;
  position: relative;
  z-index: 1100;
  overflow-x: clip;
}

.site-header-custom .main-nav .container-nav {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.5rem 4.5rem;
  gap: 2rem;
}

.site-header-custom--glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.6s ease, border-color 0.6s ease;
  overflow-x: clip;
}

.main-nav a,
.nav-toggle {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--nav-text);
  font-size: clamp(0.85rem, 0.8vw + 0.6rem, 1rem);
  letter-spacing: 0.12em;
  transition: color 0.6s ease;
}

.site-header-custom .main-nav .nav-left,
.site-header-custom .main-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-socials a.nav-socials__link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #e4e1db;
  color: #2f3233;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-socials a.nav-socials__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.nav-socials a.nav-socials__link path,
.nav-socials a.nav-socials__link rect,
.nav-socials a.nav-socials__link circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.nav-socials a.nav-socials__link:hover {
  background: #f6f4ef;
  color: #2f3233;
}

body[data-theme="light"] .nav-socials a.nav-socials__link,
body[data-theme="drift-sand"] .nav-socials a.nav-socials__link {
  background: #2f3233;
  color: #f6f4ef;
}

body[data-theme="light"] .nav-socials a.nav-socials__link:hover,
body[data-theme="drift-sand"] .nav-socials a.nav-socials__link:hover {
  background: #3a3e3f;
  color: #b9a999;
}

.site-header-custom .main-nav .nav-left {
  justify-self: start;
}

.site-header-custom .main-nav .nav-right {
  justify-self: end;
}

.site-header-custom .site-logo {
  justify-self: center;
}

.site-header-custom .site-logo img.custom-logo,
.site-header-custom .site-logo img.site-logo-image,
.site-header-custom .site-logo svg {
  max-height: 100px;
  width: auto;
  height: auto;
  display: block;
  filter: var(--nav-logo-filter);
  transition: filter 0.6s ease;
}

.btn-book-visit {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: clamp(0.75rem, 0.6vw + 0.5rem, 0.9rem);
  letter-spacing: -0.03em;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.main-nav .btn-book-visit {
  letter-spacing: -0.03em;
}

.btn-book-visit--outline {
  background: transparent;
  color: var(--nav-text);
  transition: color 0.6s ease, border-color 0.6s ease;
}

.btn-book-visit:hover {
  background: var(--color-ink);
  color: #ffffff;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus,
.nav-toggle:focus-visible {
  background: transparent;
  outline: none;
  box-shadow: none;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--nav-text);
  transition: transform var(--transition-fast);
  transition-property: transform, background;
  transition-duration: var(--transition-fast), 0.6s;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.nav-toggle__icon::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.nav-toggle__label {
  font-weight: 600;
}

.nav-toggle.is-open .nav-toggle__icon {
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__icon::before {
  transform: translateY(7px) rotate(-90deg);
}

.nav-toggle.is-open .nav-toggle__icon::after {
  transform: translateY(-7px);
  opacity: 0;
}

body.desktop-menu-open {
  overflow: hidden;
}

body.desktop-menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #2f3233;
  z-index: 999;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #2f3233;
  z-index: 999;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: #2f3233;
  color: #ffffff;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
  overflow: hidden;
}

.nav-overlay--desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(47, 50, 51, 0.82), rgba(47, 50, 51, 0.82)),
    url("https://maris-aesthetics.com/wp-content/uploads/2026/01/flat-lay-creamy-foundation-advertising-compressed-1600.webp")
      center center / cover no-repeat;
  opacity: 0.46;
  z-index: 0;
}

.nav-overlay.is-open,
body.desktop-menu-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-menu-open .nav-overlay--mobile {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay__inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  padding: 9rem 6vw 4rem;
  position: relative;
  background: #2f3233;
  overflow-x: hidden;
}

.nav-overlay--desktop .nav-overlay__inner {
  background: transparent;
  z-index: 1;
}

body.desktop-menu-open {
  overflow-x: hidden;
}

body.booking-panel-open {
  overflow: hidden;
}

.booking-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.booking-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.booking-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(85vw, 1200px);
  height: 100%;
  background: #2f3233;
  color: #ffffff;
  transform: translateX(100%);
  transition: transform 0.45s ease;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.75rem 2.75rem;
  overflow: hidden;
}

.booking-panel__toolbar {
  display: flex;
  justify-content: flex-start;
}

.booking-panel__toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.booking-panel__toggle:hover,
.booking-panel__toggle:focus {
  background: #ffffff;
  color: #2f3233;
  border-color: #ffffff;
}

.booking-panel__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
  padding-top: 1.5rem;
}

.booking-panel__frame {
  flex: 1 1 auto;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.booking-panel__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.booking-panel__brand {
  display: flex;
  justify-content: center;
}

.booking-panel__brand img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
}

.booking-panel.is-open {
  pointer-events: auto;
}

.booking-panel.is-open .booking-panel__backdrop {
  opacity: 1;
}

.booking-panel.is-open .booking-panel__drawer {
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .booking-panel__drawer {
    width: 100vw;
    padding: 2rem 1.5rem 2.25rem;
  }
}

@media (max-width: 680px) {
  .booking-panel__drawer {
    width: 100vw;
    padding: 1.5rem 1.25rem 2rem;
  }

  .booking-panel__brand img {
    max-width: 180px;
  }
}

.nav-overlay__left,
.nav-overlay__right {
  position: relative;
}

.nav-overlay__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.nav-overlay__kicker {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}

.nav-overlay__socials {
  display: flex;
  gap: 1.5rem;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  justify-content: flex-start;
  width: auto;
}

.nav-overlay__socials a {
  color: #ffffff;
}

.nav-overlay__socials a:hover,
.nav-overlay__socials a:focus,
.nav-overlay__contacts a:hover,
.nav-overlay__contacts a:focus {
  color: #f6f4ef;
}

.nav-overlay__contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}

.nav-overlay__contact {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: center;
}

.nav-overlay__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-overlay__icon::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.7;
}

.nav-overlay__label {
  display: block;
  font-size: 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 0;
}

.nav-overlay__contacts a,
.nav-overlay__contacts span:not(.nav-overlay__label) {
  color: #ffffff;
  font-size: 1rem;
}

.nav-overlay__contacts .nav-overlay__label {
  font-size: 0.75rem;
}

.nav-overlay__address {
  line-height: 1.125;
}

.nav-overlay__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  gap: 1.25rem;
  min-height: 0;
  height: 100%;
}

.nav-overlay__service-media {
  margin-top: auto;
  width: min(320px, 100%);
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.nav-overlay__service-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav-overlay__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.nav-overlay__menu li {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.6rem;
}

.nav-overlay__menu li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.6rem;
}

.nav-overlay__menu a {
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  width: 100%;
  color: #ffffff;
  text-decoration: none;
  white-space: normal;
}

.nav-overlay__menu a span {
  display: inline-block;
}

.nav-overlay__menu a:hover span,
.nav-overlay__menu a:focus span {
  animation: none;
}

.nav-overlay__menu a:hover,
.nav-overlay__menu a:focus {
  color: #f6f4ef;
}

.nav-overlay__menu a.is-active {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-overlay__preview {
  display: none;
}

.nav-overlay__preview.is-visible {
  display: none;
}

.nav-overlay__preview img {
  display: none;
}

@keyframes nav-menu-loop {
  0% {
    transform: translateY(0);
  }
  49% {
    transform: translateY(-120%);
  }
  50% {
    transform: translateY(120%);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .site-header-custom {
    display: none;
  }
}

/* ---------- Mobile header ---------- */
.site-header-mobile {
  display: none;
  background: rgba(47, 50, 51, 0.92);
  border-bottom: 1px solid rgba(228, 225, 219, 0.18);
  z-index: 1002;
  backdrop-filter: blur(16px) saturate(120%);
}

@media (max-width: 1024px) {
  .site-header-mobile {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1005;
  }
}

.site-header-mobile .mobile-header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  background: var(--nav-bg);
}

.site-header-mobile .site-logo img.custom-logo,
.site-header-mobile .site-logo svg {
  max-height: clamp(28px, 7vh, 46px);
  height: auto;
  width: auto;
  display: block;
}

.site-header-mobile .site-logo img.site-logo-image {
  max-height: clamp(28px, 7vh, 46px);
  height: auto;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(95%) sepia(3%) saturate(241%)
    hue-rotate(7deg) brightness(92%) contrast(90%);
}

.site-header-mobile .mobile-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  right: 1rem;
}

.site-header-mobile .btn-book-visit {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.site-header-mobile .menu__btn {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  transition: border-radius 0.3s ease;
}

.site-header-mobile .menu__btn:hover,
.site-header-mobile .menu__btn:focus,
.site-header-mobile .menu__btn:focus-visible {
  background: transparent;
  outline: none;
  box-shadow: none;
}

.site-header-mobile .menu__burger,
.site-header-mobile .menu__burger::before,
.site-header-mobile .menu__burger::after {
  content: "";
  display: block;
  position: absolute;
  width: 22px;
  height: 2px;
  background: #e4e1db;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-header-mobile .menu__burger {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
}

.site-header-mobile .menu__burger::before {
  top: -8px;
}

.site-header-mobile .menu__burger::after {
  top: 8px;
}

.site-header-mobile .menu__exit,
.site-header-mobile .menu__exit::before,
.site-header-mobile .menu__exit::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 3px;
  background: #e4e1db;
  transition: opacity 300ms ease, transform 300ms ease;
}

body[data-theme="light"] .site-header-mobile {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(246, 244, 239, 0.35) 100%
  );
  border-bottom: 1px solid rgba(47, 50, 51, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
}

body[data-theme="light"] .site-header-mobile .site-logo img.site-logo-image {
  filter: brightness(0) saturate(100%) invert(15%) sepia(9%) saturate(313%)
    hue-rotate(145deg) brightness(95%) contrast(92%);
}

body[data-theme="light"] .site-header-mobile .menu__burger,
body[data-theme="light"] .site-header-mobile .menu__burger::before,
body[data-theme="light"] .site-header-mobile .menu__burger::after,
body[data-theme="light"] .site-header-mobile .menu__exit,
body[data-theme="light"] .site-header-mobile .menu__exit::before,
body[data-theme="light"] .site-header-mobile .menu__exit::after {
  background: #2f3233;
}

body.desktop-menu-open .site-header-custom--glass,
body.mobile-menu-open .site-header-mobile {
  background: #2f3233 !important;
  background-color: #2f3233 !important;
  --nav-bg: #2f3233;
  --nav-border: rgba(255, 255, 255, 0.18);
  --nav-text: #f6f4ef;
  --nav-logo-filter: brightness(0) saturate(100%) invert(1);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  opacity: 1;
  backdrop-filter: none;
  z-index: 3005;
}

body.mobile-menu-open .site-header-mobile .mobile-header-inner {
  background: #2f3233;
}

body.mobile-menu-open .site-header-mobile .site-logo img.site-logo-image {
  filter: brightness(0) saturate(100%) invert(1);
}

body.mobile-menu-open .nav-overlay--mobile {
  z-index: 3000;
}

body.desktop-menu-open .site-header-custom--glass .nav-toggle__icon,
body.desktop-menu-open .site-header-custom--glass .nav-toggle__icon::before,
body.desktop-menu-open .site-header-custom--glass .nav-toggle__icon::after,
body.mobile-menu-open .site-header-mobile .menu__burger,
body.mobile-menu-open .site-header-mobile .menu__burger::before,
body.mobile-menu-open .site-header-mobile .menu__burger::after,
body.mobile-menu-open .site-header-mobile .menu__exit,
body.mobile-menu-open .site-header-mobile .menu__exit::before,
body.mobile-menu-open .site-header-mobile .menu__exit::after {
  background: #f6f4ef;
}

.site-header-mobile .menu__exit {
  left: 10px;
  top: 18px;
  opacity: 0;
  transform: translateX(-45px);
}

.site-header-mobile .menu__exit::before {
  transform: rotate(45deg);
}

.site-header-mobile .menu__exit::after {
  transform: rotate(-45deg);
}

.site-header-mobile .menu__btn.is-open .menu__burger {
  opacity: 0;
  transform: translateX(45px);
}

.site-header-mobile .menu__btn.is-open .menu__exit {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1024px) {
  body.mobile-menu-open::before {
    content: none;
  }

  .nav-overlay--mobile {
    top: var(--mobile-header-height);
    height: calc(100vh - var(--mobile-header-height));
  }

  .nav-overlay--mobile .nav-overlay__inner {
    grid-template-columns: 1fr;
    padding: 5rem 8vw 3rem;
  }

  .nav-overlay--mobile .nav-overlay__right {
    padding-top: 1.25rem;
    align-items: flex-start;
  }

  .nav-overlay--mobile .nav-overlay__menu a {
    font-size: clamp(1.04rem, 4vw, 1.76rem);
  }

  .nav-overlay--mobile .nav-overlay__kicker {
    display: none;
  }

  .nav-overlay--mobile .nav-overlay__menu::before {
    content: "Menu";
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1rem;
  }

  .nav-overlay--mobile .nav-overlay__socials {
    justify-content: space-between;
    width: 100%;
  }

  .nav-overlay__contacts {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .site-content {
    margin-top: var(--mobile-header-height);
  }

  .site-header-mobile .mobile-menu {
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--mobile-header-height));
    background: var(--color-bg);
    padding: 150px 25px 25px;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    visibility: hidden;
    pointer-events: none;
    transition:
      clip-path 0.5s cubic-bezier(0.3, 0, 0.7, 1),
      visibility 0s linear 0.5s;
    z-index: 1004;
  }

  .site-header-mobile .mobile-menu.is-open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    visibility: visible;
    pointer-events: auto;
    transition:
      clip-path 0.5s cubic-bezier(0.3, 0, 0.7, 1),
      visibility 0s linear 0s;
  }

  body.mobile-menu-open .site-header-mobile .mobile-header-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1006;
  }

  .site-header-mobile .menu-overlay {
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--mobile-header-height));
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1003;
  }

  .site-header-mobile .menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* Mobile menu content */
.mobile-primary-menu,
.mobile-secondary-menu {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.mobile-primary-menu li,
.mobile-secondary-menu li {
  margin-bottom: 1rem;
}

.mobile-primary-menu a,
.mobile-secondary-menu a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--color-ink);
}

.mobile-primary-menu .menu-item-has-children > a::after {
  content: "▼";
  float: right;
}

.mobile-primary-menu .menu-item-has-children ul {
  display: none;
  padding-left: 1rem;
}

.mobile-primary-menu .menu-item-has-children.is-expanded > ul {
  display: block;
}

.site-header-mobile .mobile-top-bar {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.site-header-mobile .mobile-top-bar .contact-list,
.site-header-mobile .mobile-top-bar .social-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header-mobile .mobile-top-bar .social-list {
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://maris-aesthetics.com/wp-content/uploads/2026/01/round-glass-mirror-beach-reflecting-landscape-compressed-1600.webp")
    center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: lighten;
  z-index: 0;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer.grid-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.site-footer a {
  color: var(--color-footer-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-faq {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--color-footer-border);
}

.footer-faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 4.5rem;
  width: 100%;
}

.footer-faq__intro h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-faq__intro p {
  margin: 0 0 1.5rem;
  color: var(--color-footer-link);
  max-width: 26rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-footer .footer-cta {
  color: #000000;
}

.footer-cta:hover {
  color: #000000;
  opacity: 0.85;
}

.site-footer .footer-cta:hover {
  color: #000000;
}

.footer-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-faq__item {
  border-top: 1px solid var(--color-footer-border);
  padding: 1rem 0;
  position: relative;
}

.footer-faq__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.footer-faq__item.is-open::before {
  transform: scaleX(1);
}

.footer-faq__item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  position: relative;
  padding-right: 2rem;
  font-size: 1.25rem;
}

.footer-faq__item summary::-webkit-details-marker {
  display: none;
}

.footer-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-footer-link);
  transition: transform var(--transition-fast);
}

.footer-faq__item[open] summary::after {
  transform: rotate(45deg);
}

.footer-faq__answer {
  color: var(--color-footer-link);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.3s ease;
  will-change: max-height, opacity;
}

.footer-faq__answer-inner {
  display: flex;
  flex-direction: column;
  padding-top: 0.75rem;
  min-height: 100%;
}

.footer-faq__item.is-open .footer-faq__answer {
  opacity: 1;
}

.footer-faq__answer p {
  margin: 0;
}

.footer-faq__link {
  display: inline-flex;
  margin-top: 1.5rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
  align-self: flex-start;
}

.footer-faq__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.footer-faq__link:hover {
}

.footer-faq__link:hover::after {
  transform: scaleX(1);
}

.footer-main {
  padding: 3.5rem 0 2.5rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.footer-main__inner {
  display: grid;
  width: 100%;
  margin: 0 auto;
  padding: 0 4.5rem;
  max-width: var(--container-width);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}


.footer-logo img {
  max-height: 160px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo__text {
  font-family: var(--font-highlight);
  font-size: 2rem;
  color: var(--color-footer-text);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  justify-self: end;
  text-align: right;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.footer-socials a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-footer-link);
}

.footer-address {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-footer-link);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.75rem;
}

.footer-links a,
.footer-cookie {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.footer-links a::after,
.footer-socials a::after,
.footer-cookie::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-links a:hover::after,
.footer-socials a:hover::after,
.footer-cookie:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .footer-faq__inner,
  .footer-main__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-faq__inner {
    padding: 0 1.25rem;
  }

  .footer-main__inner {
    padding: 0 1.25rem;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .footer-socials,
  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-links {
    gap: 0.75rem;
  }

  .footer-meta {
    order: 2;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-copy {
    order: 3;
    text-align: center;
  }

  .footer-links {
    order: 2;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-socials {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-copy {
    margin-left: auto;
    margin-right: auto;
  }
}
