/* Header, navigation and footer. */

.btn--sm { padding: 0.3em 1.1em; font-size: 1rem; }

/* Header: navy bar with a white logo tab that hangs below it. */
.site-header { position: relative; z-index: 50; }
.site-header__bar {
	position: relative; display: flex; align-items: center; justify-content: flex-end;
	min-height: 82px; padding: 0 clamp(1rem, 5.8vw, 5.25rem) 0 calc(clamp(1rem, 2.6vw, 2.25rem) + 210px);
	background: var(--night); color: var(--white);
}
.site-header__tab {
	position: absolute; top: 40px; left: clamp(1rem, 2.6vw, 2.25rem); z-index: 2;
	display: grid; place-items: center; width: 190px; min-height: 122px; padding: 0.75rem 1rem;
	background: var(--white); color: var(--night); text-decoration: none;
	border-radius: 32px 0 32px 0; /* leaf shape from the design: round top-left and bottom-right, square top-right and bottom-left */
}
.logo-img { width: 100%; height: auto; max-height: 96px; object-fit: contain; }

.wordmark { display: grid; justify-items: center; line-height: 1; color: var(--night); }
.wordmark__star { margin-bottom: 0.25rem; }
.wordmark__name { font: italic 800 1.5rem/1 var(--font-heading); letter-spacing: 0.04em; }
.wordmark__sub { margin-top: 0.2rem; font: 700 0.62rem/1 var(--font-body); letter-spacing: 0.3em; color: var(--orange-aa); }
.wordmark--light { color: var(--white); }
.wordmark--light .wordmark__sub { color: var(--orange); }

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 4.7vw, 4.5rem); }
.nav-list { display: flex; align-items: center; gap: clamp(1.25rem, 4.7vw, 4.5rem); }
.nav-list a, .site-nav__login {
	position: relative; display: inline-block; padding-block: 0.25rem; color: var(--white);
	font: 700 1.0625rem/1.2 var(--font-body); text-decoration: none;
}
.nav-list a::after, .site-nav__login::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--floodlight); transform: scaleX(0); transition: transform 0.15s ease;
}
.nav-list a:hover::after, .nav-list a:focus-visible::after, .site-nav__login:hover::after,
.nav-list .current-menu-item > a::after, .nav-list .current_page_item > a::after { transform: scaleX(1); }
.site-nav__actions { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-header :focus-visible { outline-color: var(--floodlight); box-shadow: none; }
.site-header__tab:focus-visible { outline-color: var(--night); }

.nav-toggle { display: none; }

/* White text strip under the navigation (the logo tab overlaps its left end). */
/* an empty bar (Contact page) keeps the same height as a filled one */
.site-header__strip:empty { height: 2.25rem; }
.site-header__strip { margin: 0; padding: 0.35rem var(--gutter); background: var(--white); color: var(--night); text-align: center; font: 600 1.125rem/1.4 var(--font-body); }

/* Footer */
.site-footer { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--night); color: var(--white); font-size: 1.0625rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer__brand p { max-width: 24rem; margin: 1.5rem 0 0; }
.site-footer .wordmark { justify-items: start; } /* logo left-aligned with the tagline below it */
.site-footer__logo { display: inline-block; width: 200px; text-decoration: none; }
.site-footer__title { margin-bottom: 1rem; font-size: 1.5rem; }
.footer-list li { margin-bottom: 0.75rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.social__link { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--orange); color: var(--white); }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
	margin-top: clamp(2.5rem, 5vw, 5rem); padding-block: 2rem; border-top: 1px solid rgb(255 255 255 / 30%);
}
.site-footer__bottom p { margin: 0; }
.section--below-header { padding-top: 11rem; }

@media (max-width: 1100px) {
	.site-header__bar { min-height: 72px; padding: 0 var(--gutter) 0 calc(clamp(1rem, 2.6vw, 2.25rem) + 130px); }
	.site-header__tab { top: 14px; width: 112px; min-height: 80px; padding: 0.5rem; border-radius: 20px 0 20px 0; }
	.wordmark__name { font-size: 1rem; }
	.wordmark__sub { font-size: 0.45rem; }
	.wordmark__star { width: 16px; height: 16px; }

	.nav-toggle {
		display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 2px solid var(--white);
		border-radius: 50%; background: transparent; color: var(--white); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.25rem; height: 2px; background: currentcolor; content: ""; transition: transform 0.2s ease; }
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before { position: absolute; top: -6px; }
	.nav-toggle__bars::after { position: absolute; top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

	.site-header__strip:empty { height: 2rem; }
	.site-header__strip { padding-left: 9rem; font-size: 0.9375rem; text-align: left; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem var(--gutter) 2rem; background: var(--night); border-top: 1px solid rgb(255 255 255 / 20%); }
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list a, .site-nav__login { display: block; padding-block: 0.9rem; font-size: 1.125rem; }
	.nav-list a::after, .site-nav__login::after { display: none; }
	.nav-list .current-menu-item > a, .nav-list .current_page_item > a { text-decoration: underline 3px var(--floodlight); text-underline-offset: 6px; }
	.site-nav__actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-top: 1rem; }
	.section--below-header { padding-top: 8rem; }
}

@media (max-width: 800px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}
