/* ==========================================================================
   Atelier Corium — Layout: Leather-Strap Navbar, Mobile Drawer,
   Chain-with-Leather Footer Divider & 3-Column Footer
   ========================================================================== */

/* ---------- LEATHER STRAP HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--leather-strap);
  color: var(--leather-strap-text);
  box-shadow:
    inset 0 2px 0 rgba(255, 232, 200, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 6px 22px rgba(20, 12, 8, 0.28);
  border-bottom: 2px solid var(--brass-dark);
}

/* Top & bottom saddle-stitching running full width along the bag strap */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  height: 0;
  border-top: 1.5px dashed var(--stitch-light);
  pointer-events: none;
}

.site-header::before {
  top: 7px;
}

.site-header::after {
  bottom: 7px;
}

/* Decorative brass strap rivets at outer edges (desktop) */
.strap-rivet {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  background: radial-gradient(circle at 35% 35%, var(--brass-bright), var(--brass-dark));
  border: 1px solid rgba(30, 18, 10, 0.6);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.strap-rivet--left { left: 10px; }
.strap-rivet--right { right: 10px; }

@media (max-width: 1100px) {
  .strap-rivet { display: none; }
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 12px 0;
}

/* Logo far-left */
.site-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--leather-strap-text);
  padding: 4px 8px 4px 2px;
  border-radius: var(--radius);
}

.site-logo:hover {
  color: var(--brass-bright);
}

.site-logo__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 240, 215, 0.1);
  border: 1px solid rgba(212, 169, 94, 0.55);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.site-logo__name {
  font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.6rem);
  letter-spacing: 0.03em;
  color: var(--leather-strap-text);
}

.site-logo__sub {
  font-size: 0.82rem;
  color: var(--brass-bright);
  letter-spacing: 0.08em;
}

/* Centered main navigation */
.main-nav {
  justify-self: center;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  color: var(--leather-strap-text);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--brass-bright);
  border-radius: var(--radius);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.main-nav__link:hover,
.main-nav__link[aria-current="page"] {
  color: var(--brass-bright);
  background: rgba(255, 240, 215, 0.08);
}

.main-nav__link:hover::after,
.main-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Rightmost controls: EN/RO with flags + Light/Dark handbag toggle */
.header-controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 169, 94, 0.42);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(250, 243, 232, 0.78);
  font-size: 0.95rem;
  line-height: 1;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.lang-btn svg {
  width: 18px;
  height: 12px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.is-active {
  background: rgba(212, 169, 94, 0.24);
  border-color: rgba(212, 169, 94, 0.65);
  color: #FFF9EF;
}

/* Light/Dark toggle with mini handbag turning white or black */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 169, 94, 0.5);
  border-radius: var(--radius);
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  background: rgba(212, 169, 94, 0.24);
  transform: translateY(-1px);
}

.theme-toggle__bag {
  width: 24px;
  height: 24px;
  transition: transform 320ms var(--ease-artisan);
}

.theme-toggle:hover .theme-toggle__bag {
  transform: rotate(-6deg) scale(1.06);
}

/* Light mode -> white mini handbag; Dark mode -> black mini handbag (with clear brass trim so both stay crisp!) */
.theme-toggle__bag .bag-body {
  fill: #FFFFFF;
  stroke: #D4A95E;
  stroke-width: 1.5;
  transition: fill 320ms var(--ease-artisan), stroke 320ms var(--ease-artisan);
}

.theme-toggle__bag .bag-handle {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  transition: stroke 320ms var(--ease-artisan);
}

.theme-toggle__bag .bag-clasp {
  fill: #B0843E;
}

[data-theme="dark"] .theme-toggle__bag .bag-body {
  fill: #111111;
  stroke: #EAC47B;
}

[data-theme="dark"] .theme-toggle__bag .bag-handle {
  stroke: #EAC47B;
}

[data-theme="dark"] .theme-toggle__bag .bag-clasp {
  fill: #EAC47B;
}

/* Mobile 3-line hamburger button (top-right) */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 169, 94, 0.55);
  border-radius: var(--radius);
}

.mobile-menu-btn__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--leather-strap-text);
  border-radius: var(--radius);
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn__line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Dropdown Drawer — stacked links */
.mobile-drawer {
  display: none;
  background: var(--bg-card);
  border-bottom: 2px solid var(--brass);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 420ms var(--ease-artisan), opacity 320ms var(--ease-artisan);
}

.mobile-drawer.is-open {
  max-height: 540px;
  opacity: 1;
}

.mobile-drawer__inner {
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.3rem;
}

.mobile-drawer__link[aria-current="page"] {
  border-color: var(--brass);
  color: var(--leather);
}

.mobile-drawer__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--stitch);
}

.mobile-drawer__tools .lang-switcher,
.mobile-drawer__tools .theme-toggle {
  background: var(--leather-deep);
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .main-nav,
  .header-controls .lang-switcher,
  .header-controls .theme-toggle {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mobile-drawer {
    display: block;
  }
}

/* ---------- CHAIN WITH LEATHER WEAVE FOOTER DIVIDER ---------- */
.chain-leather-divider {
  position: relative;
  width: 100%;
  height: 46px;
  margin-top: clamp(48px, 6vw, 84px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, transparent 45%, var(--bg-elevated) 55%, var(--bg-elevated) 100%);
}

.chain-leather-divider__track {
  width: 100%;
  height: 36px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 112px 36px;
  /* Repeating interlocking antique brass chain links with rich cognac leather woven through them */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='36' viewBox='0 0 112 36'%3E%3Cdefs%3E%3ClinearGradient id='gBrass' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23E7C278'/%3E%3Cstop offset='50%25' stop-color='%23B0843E'/%3E%3Cstop offset='100%25' stop-color='%236F4D1C'/%3E%3C/linearGradient%3E%3ClinearGradient id='gLeather' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%238B512B'/%3E%3Cstop offset='50%25' stop-color='%23693A1D'/%3E%3Cstop offset='100%25' stop-color='%23472510'/%3E%3C/linearGradient%3E%3C/defs%3E%3C!-- Back chain segments --%3E%3Crect x='4' y='7' width='36' height='22' rx='5' fill='none' stroke='url(%23gBrass)' stroke-width='4.5'/%3E%3Crect x='60' y='7' width='36' height='22' rx='5' fill='none' stroke='url(%23gBrass)' stroke-width='4.5'/%3E%3C!-- Leather strap woven through the links --%3E%3Cpath d='M0 18 C14 10, 26 26, 42 18 C56 10, 70 26, 86 18 C98 12, 106 22, 112 18' fill='none' stroke='url(%23gLeather)' stroke-width='8.5' stroke-linecap='round'/%3E%3Cpath d='M0 18 C14 10, 26 26, 42 18 C56 10, 70 26, 86 18 C98 12, 106 22, 112 18' fill='none' stroke='%23E8CFA3' stroke-opacity='0.45' stroke-width='1.1' stroke-dasharray='4 4'/%3E%3C!-- Interlocking middle chain links over leather --%3E%3Crect x='32' y='8' width='36' height='20' rx='5' fill='none' stroke='url(%23gBrass)' stroke-width='4.5'/%3E%3Crect x='88' y='8' width='36' height='20' rx='5' fill='none' stroke='url(%23gBrass)' stroke-width='4.5'/%3E%3Crect x='-24' y='8' width='36' height='20' rx='5' fill='none' stroke='url(%23gBrass)' stroke-width='4.5'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 5px rgba(24, 14, 8, 0.25));
}

/* ---------- 3-COLUMN FOOTER ---------- */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px dashed var(--stitch);
  padding: clamp(38px, 5vw, 60px) 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.35fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col__title {
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--stitch);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 1.15rem;
  padding: 2px 0;
}

.footer-links a:hover {
  color: var(--leather);
  transform: translateX(3px);
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), background-color var(--transition);
}

.social-pill:hover {
  border-color: var(--brass);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.social-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--leather);
}

.footer-contact-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.footer-contact-list strong {
  font-weight: 400;
  color: var(--ink);
}

.footer-map {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  height: 156px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: sepia(0.22) contrast(0.96);
}

[data-theme="dark"] .footer-map iframe {
  filter: invert(0.88) hue-rotate(180deg) sepia(0.25) contrast(0.9);
}

.footer-map__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 9px;
  background: var(--bg-card);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--ink);
  pointer-events: none;
}

.neamt-svg-map {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-map__live-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.footer-map__live-btn:hover {
  background: var(--leather);
  color: #FAF3E8;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.footer-bottom__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-text-btn {
  background: none;
  border: 0;
  padding: 2px 4px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
  font-size: 0.98rem;
}

.footer-text-btn:hover {
  color: var(--leather);
}
