/* ============================================================
   Doremi 2000 — Layout: header, navigation, footer
   ============================================================ */

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease), height var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 66px;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
}

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 32% 22%, rgba(201,162,75,0.18), transparent 66%);
  color: var(--gold);
  transition: transform var(--dur) var(--ease-out);
}
.brand__mark svg { width: 37px; height: 37px; display: block; }
.brand:hover .brand__mark { transform: scale(1.05); }
.brand__text { display: flex; flex-direction: column; gap: 0.3rem; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: 0.004em;
  color: var(--ivory);
  white-space: nowrap;
}
.brand__year {
  margin-left: 0.08em;
  font-weight: 600;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}
.brand__sub {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--gold);
  white-space: nowrap;
}
.brand__rule {
  width: 18px; height: 1px; flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--line-gold), var(--gold));
}
@media (prefers-reduced-motion: reduce) {
  .brand__mark { transition: none; }
  .brand:hover .brand__mark { transform: none; }
}

/* Desktop nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 0.35rem + 0.85vw, 1.55rem);
}
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--muted);
  padding: 0.4rem 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover { color: var(--ivory); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ivory); }

.nav__actions { display: flex; align-items: center; gap: 0.9rem; }
.nav__call {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  color: var(--gold);
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.nav__call svg { width: 18px; height: 18px; }
.nav__call:hover { background: rgba(201,162,75,0.1); border-color: var(--gold); transform: translateY(-2px); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ivory);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--scrim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 4vw, 2.4rem);
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur) var(--ease);
}
.mobile-menu__links a:hover { color: var(--gold); padding-left: 0.6rem; }
.mobile-menu__foot { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1rem; }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  z-index: var(--z-base);
  background: linear-gradient(180deg, var(--bg) 0%, var(--footer-end) 100%);
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 2rem + 5vw, 6rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { font-size: var(--fs-sm); max-width: 32ch; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col li { font-size: var(--fs-sm); color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.9rem; }
.footer-contact-item svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item strong { display: block; color: var(--ivory); font-size: var(--fs-sm); }
.footer-contact-item span { font-size: var(--fs-xs); color: var(--muted-2); }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: all var(--dur) var(--ease);
}
.footer-social a:hover { color: var(--gold); border-color: var(--line-gold); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }

.footer-bottom {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: var(--fs-xs);
  color: var(--muted-2);
}
.footer-bottom a:hover { color: var(--gold); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1240px) {
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  /* Sticky bottom CTA + hamburger cover conversion on phones,
     so free up the header bar to prevent the toggle overflowing. */
  .site-header .nav__actions .btn--gold { display: none; }
}
@media (max-width: 480px) {
  .nav { gap: 0.65rem; }
  .nav__actions { gap: 0.45rem; }
  .brand { gap: 0.5rem; min-width: 0; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__mark svg { width: 32px; height: 32px; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { gap: 0.3rem; font-size: 0.58rem; }
  .brand__rule { width: 12px; }
  .theme-toggle, .nav__toggle { width: 38px; height: 38px; }
  .lang-toggle { padding: 0.38rem 0.5rem; font-size: 0.72rem; }
}
@media (max-width: 360px) {
  .brand__sub, .site-header .theme-toggle { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
