@import url("./modern-normalize.css");

/* ==========================================================================
   Imprenta Disgraf - Static site prototype
   Methodology: BEM + custom properties + progressive enhancement.
   ========================================================================== */

:root {
  --color-ink: #1d1d1f;
  --color-muted: #706968;
  --color-soft: #f4f1ef;
  --color-paper: #fffdfb;
  --color-line: #eadfdb;
  --color-brand: #c90f1d;
  --color-brand-dark: #960814;
  --color-panel: #2a2a28;
  --color-panel-text: #f6efec;
  --shadow-soft: 0 24px 70px rgba(29, 29, 31, 0.11);
  --sidebar-width: clamp(17.5rem, 20vw, 22rem);
  --content-width: min(100%, 82rem);
  --space-page: clamp(1.25rem, 3vw, 3rem);
  --font-system: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-system);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(201, 15, 29, 0.4);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border: 1px solid var(--color-brand);
  background: var(--color-paper);
  color: var(--color-brand);
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
}

/* Sidebar keeps navigation, contact and legal links visible on desktop. */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid var(--color-line);
  background: #fbfaf8;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 6rem;
  padding: 1.25rem clamp(1rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--color-line);
  background-color: var(--color-brand);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  width: min(100%, 58vw);
  height: auto;
  display: block;
}

.sidebar__toggle {
  display: none;
}

.sidebar__nav {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.25rem;
  border-left: 4px solid transparent;
  padding: 0 0.9rem;
  color: #625d5b;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar__link:hover,
.sidebar__link--active {
  border-left-color: var(--color-brand);
  background: #fff;
  color: var(--color-brand);
}

.sidebar__icon {
  width: 1.35rem;
  color: currentColor;
  font-size: 1rem;
  text-align: center;
}

.sidebar__panel {
  margin: auto 1rem 1rem;
  padding: 1rem;
  background: var(--color-soft);
}

.sidebar__eyebrow,
.section-kicker,
.spec-card__kicker {
  margin: 0 0 0.85rem;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-card {
  display: grid;
  gap: 0.8rem;
  font-style: normal;
}

.contact-card__item {
  display: grid;
  gap: 0.15rem;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-card__label {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar__map-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--color-brand);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar__footer {
  display: grid;
  gap: 0.6rem;
  padding: 5rem 2rem 1.3rem;
}

.sidebar__footer a {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar__footer-button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  padding: 0;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar__footer-button:hover {
  color: var(--color-brand);
}

.main {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
}

.hero {
  position: relative;
  min-height: 42rem;
  display: grid;
  align-items: end;
  padding: clamp(3rem, 6vw, 6rem) var(--space-page);
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
  background: #ece8e4;
}

.hero__picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--home {
  min-height: auto;
  align-items: stretch;
  padding: 0;
}

.hero--home .hero__picture {
  position: relative;
  inset: auto;
  min-height: clamp(22rem, 43vw, 40rem);
}

.hero--home .hero__image {
  min-height: inherit;
}

.hero--home::after {
  content: none;
}

.hero--projects::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(236, 232, 228, 0.82) 0 30%, rgba(236, 232, 228, 0.28) 62%, rgba(236, 232, 228, 0.08) 100%),
    linear-gradient(0deg, rgba(42, 42, 40, 0.18), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(46rem, 100%);
  border: 1px solid rgba(201, 15, 29, 0.22);
  background: rgba(255, 253, 251, 0.91);
  padding: clamp(1.5rem, 4vw, 3.2rem);
  backdrop-filter: blur(12px);
}

.hero--home .hero__content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(14rem, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  border-right: 0;
  border-left: 0;
  background: #fffdfb;
  padding: clamp(1.5rem, 4vw, 3.25rem) var(--space-page);
  backdrop-filter: none;
}

.hero--home .section-kicker,
.hero--home .hero__title {
  grid-column: 1;
}

.hero--home .hero__lead,
.hero--home .hero__actions {
  grid-column: 2;
}

.hero--home .hero__lead {
  margin-top: 0;
}

.hero--services .hero__content {
  animation: services-hero-drift 60s ease-in-out infinite;
  will-change: transform;
}

.hero--service-detail::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(236, 232, 228, 0.78) 0 30%, rgba(236, 232, 228, 0.25) 58%, rgba(42, 42, 40, 0.18) 100%),
    linear-gradient(0deg, rgba(42, 42, 40, 0.2), transparent 42%);
}

@keyframes services-hero-drift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(calc(100vw - var(--sidebar-width) - min(46rem, 100%) - (var(--space-page) * 2)));
  }
}

.hero__title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: #685f5c;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 650;
}

.hero__actions,
.section__header--inline,
.process-list,
.quote-form {
  display: flex;
  gap: 1rem;
}

.hero__actions {
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.55rem;
  border: 1px solid var(--color-brand);
  padding: 0 1.45rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button--primary {
  background: var(--color-brand);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-brand-dark);
}

.button--secondary {
  background: rgba(255, 253, 251, 0.76);
  color: var(--color-brand);
}

.section {
  padding: clamp(3.5rem, 7vw, 7rem) var(--space-page);
  border-bottom: 1px solid var(--color-line);
}

.section__header {
  max-width: 52rem;
  margin-bottom: 2.2rem;
}

.section__header--inline {
  align-items: end;
  justify-content: space-between;
  max-width: none;
}

.section__title,
.quote__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section__intro {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 1.08rem;
  font-weight: 620;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
}

.service-card {
  min-height: 19rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 1.25rem;
  background: var(--color-panel);
  color: var(--color-panel-text);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.service-card:hover,
.service-card:focus-within {
  background: #fff;
  color: var(--color-ink);
  transform: translateY(-0.2rem);
}

.service-card__number {
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-card__title {
  margin: 1.4rem 0 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.service-card__text {
  margin: 1rem 0;
  color: inherit;
}

.service-card__link,
.text-link {
  color: var(--color-brand);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.project-card__figure {
  margin: 0;
  border: 1px solid var(--color-line);
  background: #fff;
}

.project-card__picture {
  display: block;
  overflow: hidden;
  background: var(--color-soft);
}

.project-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.project-card__caption {
  padding: 0.85rem;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.project-card__title {
  margin: 1rem 0 0.25rem;
  font-size: 1.15rem;
}

.project-card__text {
  margin: 0;
  color: var(--color-muted);
  font-weight: 650;
}

.contact-banner {
  margin: var(--space-page) var(--space-page) 0;
  border: 1px solid var(--color-line);
  background: var(--color-soft);
}

.contact-banner__picture,
.contact-banner__image {
  display: block;
}

.contact-banner__image {
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 1;
  object-fit: cover;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
}

.story-card {
  min-height: 13rem;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: clamp(1.15rem, 2vw, 1.6rem);
  background: #fff;
}

.story-card__title {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
  line-height: 1.1;
}

.story-card p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 650;
}

.seo-copy {
  max-width: 72rem;
  display: grid;
  gap: 1.2rem;
  color: var(--color-muted);
  font-size: 1.06rem;
  font-weight: 620;
  line-height: 1.65;
}

.seo-copy p {
  margin: 0;
}

.seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.seo-panel {
  border: 1px solid var(--color-line);
  background: #fff;
  padding: clamp(1.2rem, 2vw, 1.8rem);
}

.seo-panel__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.seo-list,
.faq-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-muted);
  font-weight: 650;
}

.faq-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-left: 0;
  list-style: none;
}

.faq-list__item {
  border: 1px solid var(--color-line);
  background: #fff;
  padding: clamp(1.1rem, 2vw, 1.5rem);
}

.faq-list__question {
  margin: 0 0 0.65rem;
  color: var(--color-ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.faq-list__answer {
  margin: 0;
  color: var(--color-muted);
  font-weight: 650;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-links a {
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-brand);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quote,
.location {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: var(--space-page);
  padding: clamp(1.5rem, 4vw, 4rem);
  border: 1px solid var(--color-line);
  background: var(--color-soft);
}

.quote__content p {
  max-width: 34rem;
  color: var(--color-muted);
  font-size: 1.12rem;
  font-weight: 620;
}

.quote-form {
  flex-wrap: wrap;
  align-content: start;
  border: 1px solid #e4d4d0;
  background: rgba(255, 253, 251, 0.78);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.quote-form__field {
  flex: 1 1 14rem;
  display: grid;
  gap: 0.45rem;
}

.quote-form__field--full,
.quote-form__button {
  flex-basis: 100%;
}

.quote-form__field--bot {
  position: absolute;
  left: -999rem;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form__label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-form__input {
  width: 100%;
  min-height: 3.3rem;
  border: 1px solid #dfcfca;
  background: #fff;
  color: var(--color-ink);
  padding: 0.8rem 0.95rem;
}

.quote-form__textarea {
  resize: vertical;
}

.quote-form__status {
  flex-basis: 100%;
  margin: 0;
  color: var(--color-muted);
  font-weight: 800;
}

.quote-form__status[data-status="success"] {
  color: #216b3a;
}

.quote-form__status[data-status="error"] {
  color: var(--color-brand);
}

.seo-banner {
  margin: 0 var(--space-page) var(--space-page);
  border: 1px solid var(--color-line);
  background: #fff;
}

.seo-banner picture {
  display: block;
  background: var(--color-soft);
}

.seo-banner__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.seo-banner__caption {
  display: grid;
  gap: 0.45rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.seo-banner__caption strong {
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  line-height: 1.1;
}

.seo-banner__caption span:last-child {
  color: var(--color-muted);
  font-weight: 650;
}

.location {
  align-items: stretch;
  margin-top: 0;
  background: #fff;
}

.location__title {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.location__content p {
  max-width: 36rem;
  color: var(--color-muted);
  font-size: 1.12rem;
  font-weight: 620;
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.7rem;
}

.map-panel {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: #ebe5df;
}

.map-panel__iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.reviews {
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.review-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 15rem;
  border: 1px solid var(--color-line);
  background: var(--color-soft);
  padding: clamp(1.15rem, 2vw, 1.6rem);
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.review-card__name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.1;
}

.review-card__stars {
  margin: 0;
  color: var(--color-brand);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.review-card__meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.55;
}

.legal-page {
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem) 1.25rem;
}

.legal-content {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
  color: var(--color-muted);
}

.legal-content h2 {
  margin: 2rem 0 0;
  color: var(--color-ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
}

.legal-content p,
.legal-content li {
  margin: 0;
}

.legal-content ul,
.legal-content ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--color-brand);
  font-weight: 800;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 50;
  width: min(42rem, calc(100vw - 2rem));
  display: grid;
  gap: 1.2rem;
  border: 1px solid rgba(201, 15, 29, 0.26);
  background: rgba(255, 253, 251, 0.96);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.1rem, 2vw, 1.5rem);
  backdrop-filter: blur(16px);
}

.cookie-banner__title,
.cookie-modal__title {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.1;
}

.cookie-banner__text {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  font-weight: 650;
}

.cookie-modal__description {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  font-weight: 650;
}

.cookie-banner__actions,
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(29, 29, 31, 0.52);
  padding: 1rem;
}

.cookie-modal-open {
  overflow: hidden;
}

.cookie-modal__dialog {
  width: min(46rem, 100%);
  max-height: min(48rem, calc(100vh - 2rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(201, 15, 29, 0.24);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.cookie-modal__header {
  position: relative;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-bottom: 1px solid var(--color-line);
}

.cookie-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-modal__body {
  display: grid;
  gap: 0.9rem;
  overflow: auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.cookie-modal__actions {
  justify-content: flex-end;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.cookie-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--color-line);
  background: #fff;
  padding: 1rem;
}

.cookie-toggle__text {
  display: grid;
  gap: 0.25rem;
}

.cookie-toggle__text strong {
  font-size: 1rem;
}

.cookie-toggle__text span {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.cookie-toggle__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle__control {
  position: relative;
  width: 3.4rem;
  height: 1.8rem;
  border: 1px solid #c7bbb7;
  border-radius: 999px;
  background: #efe8e5;
  transition: background-color 180ms ease;
}

.cookie-toggle__control::after {
  position: absolute;
  top: 0.2rem;
  left: 0.22rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(29, 29, 31, 0.22);
  content: "";
  transition: transform 180ms ease;
}

.cookie-toggle__input:checked + .cookie-toggle__control {
  background: var(--color-brand);
}

.cookie-toggle__input:checked + .cookie-toggle__control::after {
  transform: translateX(1.55rem);
}

.cookie-toggle__input:focus-visible + .cookie-toggle__control {
  outline: 3px solid rgba(201, 15, 29, 0.4);
  outline-offset: 4px;
}

.cookie-toggle--locked {
  background: var(--color-soft);
}

@media (max-width: 1180px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .quote,
  .location {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --sidebar-width: 100%;
  }

  .site-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    max-height: 100vh;
  }

  .sidebar__brand {
    min-height: 4.5rem;
  }

  .sidebar__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    background: transparent;
    color: #fff;
  }

  .sidebar__toggle-line {
    width: 1.65rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .sidebar__toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 0.25rem;
  }

  .sidebar__nav,
  .sidebar__panel,
  .sidebar__footer {
    display: none;
  }

  .sidebar--open .sidebar__nav,
  .sidebar--open .sidebar__panel,
  .sidebar--open .sidebar__footer {
    display: grid;
  }

  .main {
    width: 100%;
    margin-left: 0;
  }

  .hero {
    min-height: 42rem;
  }

  .hero--home {
    min-height: auto;
  }

  .hero--projects::after,
  .hero--service-detail::after {
    background:
      linear-gradient(0deg, rgba(236, 232, 228, 0.82) 0 36%, rgba(236, 232, 228, 0.2) 100%),
      linear-gradient(0deg, rgba(42, 42, 40, 0.16), transparent 45%);
  }

  .hero__title {
    max-width: 11ch;
  }

  .hero--home .hero__content {
    grid-template-columns: 1fr;
  }

  .hero--home .section-kicker,
  .hero--home .hero__title,
  .hero--home .hero__lead,
  .hero--home .hero__actions {
    grid-column: 1;
  }

  .hero--home .hero__lead {
    margin-top: 1rem;
  }

  .section__header--inline,
  .project-grid,
  .story-grid,
  .reviews__grid,
  .seo-grid,
  .faq-list {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--services .hero__content {
    animation: none;
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero,
  .section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero--home {
    padding-right: 0;
    padding-left: 0;
  }

  .hero__content {
    padding: 1.25rem;
  }

  .hero__picture {
    left: -300px;
  }

  .hero--home .hero__picture {
    left: auto;
  }

  .button {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .project-grid--featured {
    grid-template-columns: 1fr;
  }

  .service-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .quote,
  .location,
  .seo-banner,
  .contact-banner {
    margin: 1rem;
    padding: 1rem;
  }

  .cookie-banner__actions,
  .cookie-modal__actions {
    display: grid;
  }
}
