/* ================================================
   DANGUOLĖ — Layout: Navbar + Footer
   ================================================ */


/* ================================================================
   NAVBAR
   ================================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background-color var(--dur-slow) var(--ease),
    box-shadow       var(--dur-slow) var(--ease);
}

.navbar.scrolled {
  background-color: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--warm-grey);
}

/* Inner: 3-col grid on desktop, flex on mobile */
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
  padding-inline: var(--sp-3);
  max-width: var(--max-width);
  margin-inline: auto;
}


/* --- Brand --- */
.navbar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 0.2rem;
  /* centered between left/right groups on desktop */
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--charcoal);
  line-height: 1;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease);
}

.navbar__brand:hover .navbar__logo {
  color: var(--forest);
}

.navbar__submark {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
  line-height: 1;
  transition: color var(--dur-fast) var(--ease);
}

.navbar__brand:hover .navbar__submark {
  color: var(--forest);
}


/* --- Desktop nav links (hidden on mobile) --- */
.navbar__links {
  display: none;
  align-items: center;
  gap: var(--sp-4);
}

.navbar__links a {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--forest);
  transition: width var(--dur-base) var(--ease-out);
}

.navbar__links a:hover { color: var(--forest); }
.navbar__links a:hover::after { width: 100%; }

.navbar__links a:focus-visible {
  color: var(--forest);
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 2px;
}

/* CTA pill in right nav */
.navbar__cta-link {
  padding: 0.55rem 1.35rem !important;
  border: 1px solid var(--charcoal);
  font-weight: 600 !important;
  transition: background-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease) !important;
}

.navbar__cta-link::after { display: none !important; }

.navbar__cta-link:hover {
  background-color: var(--charcoal) !important;
  color: var(--cream) !important;
  border-color: var(--charcoal) !important;
}


/* --- Social icons (FB + Email) --- */
.navbar__social {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--charcoal);
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

.navbar__social-btn:hover {
  color: var(--forest);
  background-color: rgba(0, 0, 0, 0.05);
}

.navbar__social-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  max-width: none;
}

/* Email popup wrapper */
.navbar__email-wrap {
  position: relative;
}

/* Email popup box */
.navbar__email-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 320px;
  background: var(--cream, #f5f0e8);
  border: 1px solid var(--warm-grey, #ddd);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
  padding: 14px 16px 12px;
  z-index: 200;
}

.navbar__email-popup-addr {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 10px;
  white-space: nowrap;
}

.navbar__email-popup-btns {
  display: flex;
  gap: 8px;
}

.navbar__email-popup-btn {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--charcoal);
  background: none;
  color: var(--charcoal);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.navbar__email-popup-btn:hover {
  background-color: var(--charcoal);
  color: var(--cream, #f5f0e8);
}

.navbar__email-popup-btn--send {
  border-color: var(--forest);
  color: var(--forest);
}

.navbar__email-popup-btn--send:hover {
  background-color: var(--forest);
  color: var(--cream, #f5f0e8);
}


/* --- Right side (links + hamburger) --- */
.navbar__right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}


/* --- Hamburger button --- */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.navbar__toggle-bar {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--charcoal);
  transform-origin: center;
  transition:
    transform var(--dur-base) var(--ease),
    opacity   var(--dur-fast) var(--ease);
}

.navbar__toggle.is-active .navbar__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.navbar__toggle.is-active .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__toggle.is-active .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* --- Mobile menu panel --- */
.navbar__mobile {
  display: none;
  background-color: var(--cream);
  border-top: 1px solid var(--warm-grey);
  padding: var(--sp-4) var(--sp-3) var(--sp-5);
  /* Step 2c: prevent menu running off-screen on short/landscape phones */
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* slide-open handled by JS toggling .is-open */
}

.navbar__mobile.is-open {
  display: block;
}

.navbar__mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.navbar__mobile a {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  text-decoration: none;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--warm-grey);
  transition: color var(--dur-fast) var(--ease);
}

.navbar__mobile a:hover { color: var(--forest); }

.navbar__mobile .mobile-cta {
  display: block;
  margin-top: var(--sp-3);
  padding: 1rem !important;
  text-align: center;
  border: 1px solid var(--forest) !important;
  color: var(--forest) !important;
  font-weight: 600 !important;
  font-size: var(--text-xs) !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  transition: background-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease) !important;
}

.navbar__mobile .mobile-cta:hover {
  background-color: var(--forest) !important;
  color: var(--off-white) !important;
}


/* --- Mobile: navbar brand smaller --- */
@media (max-width: 600px) {
  .navbar__logo    { font-size: 1.15rem; }
  .navbar__submark { font-size: 0.42rem; }
}

/* --- Desktop breakpoint --- */
@media (min-width: 920px) {
  .navbar__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-inline: var(--sp-5);
  }

  .navbar__links { display: flex; }

  .navbar__links--left  { justify-content: flex-end; padding-right: var(--sp-5); }
  .navbar__links--right { padding-left: var(--sp-5); }

  .navbar__right { justify-content: flex-end; }

  .navbar__toggle { display: none; }
}

@media (min-width: 1200px) {
  .navbar__inner { padding-inline: var(--sp-6); }
}


/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  background-color: var(--ink);
  color: var(--taupe);
  padding-top: var(--sp-7);
}

.footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-3);
  padding-bottom: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand column */
.footer__brand {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--off-white);
  text-decoration: none;
  line-height: 1;
  transition: color var(--dur-fast) var(--ease);
}
.footer__logo:hover { color: var(--gold); }

.footer__submark-text {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.3rem;
  line-height: 1;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--taupe);
  margin-top: var(--sp-3);
  line-height: 1.55;
}

/* Nav columns */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.footer__nav-group {
  display: flex;
  flex-direction: column;
}

.footer__nav-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: var(--sp-2);
  display: block;
}

.footer__nav-group a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--taupe);
  text-decoration: none;
  line-height: 2.2;
  transition: color var(--dur-fast) var(--ease);
}
.footer__nav-group a:hover { color: var(--off-white); }

/* Bottom bar */
.footer__bottom {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-3);
  padding-block: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer__bottom p {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 300;
  color: rgba(194,181,164,0.55);
  letter-spacing: 0.05em;
}

.footer__bottom a {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.footer__bottom a:hover { color: var(--off-white); }


/* --- Responsive --- */
@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 2fr;
    padding-inline: var(--sp-5);
  }

  .footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__bottom { padding-inline: var(--sp-5); }
}

@media (min-width: 1200px) {
  .footer__inner   { padding-inline: var(--sp-6); }
  .footer__bottom  { padding-inline: var(--sp-6); }
}
