:root {
  --nav-height: 5.5rem;
  --nav-height-shrink: 4.25rem;
  --radius-card: 12px;
  --radius-button: 0px;
  --radius-input: 6px;
  --radius-image: 8px;
  --shadow-tint: 0 8px 24px rgba(189, 64, 69, 0.12);
  --shadow-offset: 3px 3px 0 var(--color-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

img {
  border-radius: var(--radius-image);
}

.container-shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.section-alt {
  background: var(--color-surface);
}

.section-base {
  background: var(--color-background);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 180ms ease, box-shadow 180ms ease, min-height 180ms ease, padding 180ms ease;
  min-height: var(--nav-height);
  background: rgba(37, 14, 14, 0.2);
}

.site-header.is-scrolled {
  min-height: var(--nav-height-shrink);
  background: rgba(255, 243, 230, 0.96);
  box-shadow: 0 8px 24px rgba(189, 64, 69, 0.1);
  backdrop-filter: blur(10px);
}

.nav-inner {
  transition: padding 180ms ease;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.site-header.is-scrolled .nav-inner {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  transition: width 180ms ease, height 180ms ease;
}

.site-header.is-scrolled .brand-mark {
  width: 2.35rem;
  height: 2.35rem;
}

.brand-text,
.nav-link {
  color: #ffffff;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled .brand-text,
.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .menu-toggle {
  color: var(--color-text-primary);
}

.nav-link:hover,
.nav-link:focus-visible,
.footer-link:hover,
.footer-link:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.menu-panel {
  display: none;
}

.menu-panel.is-open {
  display: block;
}

.hero-overlay {
  background: linear-gradient(rgba(37, 14, 14, 0.28), rgba(37, 14, 14, 0.28));
}

.card-soft {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tint);
  border: 1px solid rgba(189, 64, 69, 0.12);
  background: var(--color-surface);
}

.team-card,
.service-card {
  height: 100%;
}

.btn-brutal,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-surface);
  color: var(--color-primary);
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-offset);
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
}

.btn-brutal:hover,
.btn-brutal:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  box-shadow: 0 0 0 transparent;
  transform: translate(3px, 3px);
  background: var(--color-primary);
  color: #ffffff;
}

.input-brutal,
textarea.input-brutal,
select.input-brutal {
  width: 100%;
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-input);
  background: #fffaf5;
  padding: 0.9rem 1rem;
  color: var(--color-text-primary);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.input-brutal:focus,
textarea.input-brutal:focus,
select.input-brutal:focus {
  outline: none;
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 4px rgba(189, 64, 69, 0.12);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 32rem;
  margin-left: auto;
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-offset), var(--shadow-tint);
  padding: 1rem;
}

.cookie-banner[hidden] {
  display: none;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-image);
}

.footer-link {
  transition: color 140ms ease, transform 140ms ease;
}

@media (max-width: 767px) {
  .site-header {
    background: rgba(37, 14, 14, 0.28);
  }

  .site-header.menu-open {
    background: rgba(255, 243, 230, 0.98);
    box-shadow: 0 8px 24px rgba(189, 64, 69, 0.1);
  }

  .site-header.menu-open .brand-text,
  .site-header.menu-open .nav-link,
  .site-header.menu-open .menu-toggle {
    color: var(--color-text-primary);
  }
}
