/* layout.css — header, container, footer */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 98%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
@media (max-width: 768px) {
  .header-inner { height: var(--header-h-mobile); }
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}
.brand-mark {
  width: 36px; height: 36px;
  color: var(--accent);
  flex-shrink: 0;
  background: var(--accent-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 6px;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tag {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 3px;
}
@media (max-width: 640px) {
  .brand-name { font-size: 1.02rem; }
  .brand-tag { display: none; }
}

/* Nav desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  color: var(--text);
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background var(--t-fast), transform var(--t-fast);
}
.header-cta:hover {
  color: #FFFFFF;
  background: oklch(40% 0.13 145);
  transform: translateY(-1px);
}
.header-cta svg { width: 16px; height: 16px; }

@media (max-width: 920px) {
  .nav-desktop { display: none; }
}
@media (max-width: 768px) {
  .header-cta { display: none; }
}

/* Burger */
.burger {
  display: none;
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px; height: 44px;
  z-index: 1101;
  background: transparent;
  border: 0;
  cursor: pointer;
  place-items: center;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--t-base), background var(--t-base), top var(--t-base);
}
.burger span { position: relative; display: block; width: 22px; height: 2px; background: var(--text); }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 920px) {
  .burger { display: grid; }
}

/* Menu mobile */
.menu-mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  z-index: var(--z-menu);
  padding: calc(var(--header-h-mobile) + 24px) 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.menu-mobile a {
  display: block;
  padding: 16px 0;
  font-family: var(--ff-display);
  font-size: 1.55rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.menu-mobile a:hover { color: var(--accent); }
.menu-mobile .menu-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa-green);
  color: #FFFFFF;
  padding: 16px 22px;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 0;
}
.menu-mobile .menu-cta-tel {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 16px 22px;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 0;
}
@media (min-width: 921px) {
  .burger, .menu-mobile { display: none; }
}

/* Footer */
.site-footer {
  background: var(--surface-deep);
  color: rgba(255, 255, 255, 0.86);
  padding: 56px 0 32px;
  margin-top: 0;
}
.site-footer h3,
.site-footer strong { color: #FFFFFF; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}
.footer-col h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: #FFFFFF;
}
.footer-col p,
.footer-col li,
.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-col a:hover { color: var(--accent-on-dark); }
.footer-col ul { list-style: none; padding: 0; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand .brand-mark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-on-dark);
}
.footer-brand .brand-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  color: #FFFFFF;
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
#ml-trigger {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  padding: 0;
  font-size: 0.85rem;
}
#ml-trigger:hover { color: #FFFFFF; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-footer { padding: 44px 0 24px; }
}

/* FAB mobile */
.fab-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 14px 18px;
  border-radius: 100px;
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(44, 58, 42, 0.28);
}
.fab-call svg { width: 18px; height: 18px; }
@media (max-width: 768px) {
  .fab-call { display: inline-flex; }
}
