/**
 * Site chrome — topbar, header/navigation and footer.
 * Always present (unlike block styles, which are auto-enqueued per block).
 */

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
	border-bottom: 1px solid var(--border);
	background: var(--panel);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 2.25rem;
	font-size: 0.78rem;
	color: var(--ink-soft);
}

.topbar__address {
	display: none;
}

.topbar__meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-left: auto;
}

.topbar__hours {
	display: none;
}

.topbar__phone:hover {
	color: var(--foreground);
}

@media (min-width: 768px) {
	.topbar__address {
		display: inline;
	}
	.topbar__hours {
		display: inline;
	}
}

/* ==========================================================================
   Header / primary navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--border);
	background: color-mix(in oklch, var(--background) 85%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.site-header--simple {
	position: static;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	height: 3.5rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.brand__mark {
	height: 2.5rem;
	width: auto;
	flex-shrink: 0;
	object-fit: contain;
}

.brand__text {
	line-height: 1;
	min-width: 0;
}

.brand__name {
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brand__tagline {
	margin-top: 0.15rem;
	font-size: 0.7rem;
	color: var(--ink-soft);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.main-nav {
	display: none;
	align-items: center;
	gap: 1.75rem;
	font-size: 0.82rem;
}

.main-nav__link {
	color: color-mix(in oklch, var(--foreground) 80%, transparent);
	text-decoration: none;
}
.main-nav__link:hover {
	color: var(--foreground);
}

.header-cta {
	display: none;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.5rem;
	width: 2.5rem;
	flex-shrink: 0;
	border: 1px solid var(--border);
	border-radius: 2px;
	color: var(--foreground);
	background: transparent;
	cursor: pointer;
}

.nav-toggle__icon-close {
	display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon-open {
	display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon-close {
	display: block;
}

@media (min-width: 768px) {
	.main-nav {
		display: flex;
	}
	.header-cta {
		display: inline-flex;
	}
	.nav-toggle {
		display: none;
	}
}

.mobile-nav {
	border-top: 1px solid var(--border);
	background: var(--background);
}
.mobile-nav[hidden] {
	display: none;
}

.mobile-nav__inner {
	display: flex;
	flex-direction: column;
	padding-block: 0.75rem;
	font-size: 0.95rem;
}

.mobile-nav__link {
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--border);
	color: color-mix(in oklch, var(--foreground) 85%, transparent);
	text-decoration: none;
}
.mobile-nav__link:last-of-type {
	border-bottom: none;
}

.mobile-nav__cta {
	margin-block: 1rem 0.5rem;
	width: 100%;
}

@media (min-width: 768px) {
	.mobile-nav {
		display: none;
	}
}

/* ==========================================================================
   Footer — full (front page)
   ========================================================================== */

.site-footer {
	background: var(--background);
}

.footer__grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 1.5rem;
	padding-block: 2.5rem;
}

.footer__brand-row {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.footer__escribanas {
	margin-top: 1rem;
	max-width: 24rem;
	font-size: 0.85rem;
	line-height: 1.5;
}

.footer__escribana + .footer__escribana {
	margin-top: 0.3rem;
}

.footer__escribana-name {
	font-weight: 600;
	color: var(--foreground);
}

.footer__escribana-registro {
	color: var(--ink-soft);
}

.footer__col-title {
	margin-bottom: 0.75rem;
}

.footer__brand,
.footer__col--contact {
	grid-column: span 12;
}
.footer__col--office,
.footer__col--links {
	grid-column: span 6;
}

.footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.85rem;
}

.footer__contact-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.footer__contact-actions .btn-primary,
.footer__contact-actions .btn-secondary {
	text-align: center;
}

@media (min-width: 768px) {
	.footer__brand {
		grid-column: span 5;
	}
	.footer__col--office {
		grid-column: span 3;
	}
	.footer__col--links {
		grid-column: span 2;
	}
	.footer__col--contact {
		grid-column: span 2;
	}
}

.footer__hairline {
	margin-top: 0.5rem;
}

.footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding-block: 1rem 2rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--ink-soft);
}

@media (min-width: 768px) {
	.footer__bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}

/* ==========================================================================
   Footer — simple (legal / gracias pages)
   ========================================================================== */

.site-footer--simple {
	border-top: 1px solid var(--border);
	padding-block: 1.5rem;
}

.footer__simple-text {
	text-align: center;
	font-size: 0.78rem;
	color: var(--ink-soft);
}
