@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap");

:root {
  --ink: #192f01;
  --muted: #192f01;
  --paper: #fafafa;
  --panel: #f8feea;
  --line: rgba(25, 47, 1, 0.12);
  --accent: #e0475b;
  --accent-deep: #e0475b;
  --sea: #192f01;
  --shadow: 0 24px 60px rgba(25, 47, 1, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body.catalog-body {
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #fafafa 0%, #ded369 100%);
  min-height: 100vh;
}

main {
  padding-bottom: 4rem;
}

a {
  color: inherit;
}

.flash {
  position: sticky;
  top: 1rem;
  z-index: 20;
  width: min(960px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  text-align: center;
  box-shadow: var(--shadow);
}

.flash--success,
.flash--notice {
  background: #e7f7eb;
  color: #1d6a38;
}

.flash--error,
.flash--alert {
  background: #fdeceb;
  color: #9b2f22;
}

.catalog-hero,
.service-detail {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.catalog-page {
  width: min(1280px, calc(100% - 4rem));
  margin: 0 auto;
}

.catalog-hero {
  padding: 4rem 0 2rem;
}

.catalog-hero__inner,
.service-detail__header,
.service-profile,
.contact-panel,
.catalog-sidebar,
.catalog-empty-state {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.catalog-hero__inner {
  border-radius: 2rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.catalog-hero__inner::after {
  content: "";
  position: absolute;
  inset: auto -5% -45% 40%;
  height: 260px;
  background: linear-gradient(120deg, rgba(224, 71, 91, 0.14), rgba(222, 211, 105, 0.2));
  border-radius: 50%;
  transform: rotate(-8deg);
}

.catalog-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea);
}

.catalog-hero h1,
.service-detail h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  max-width: 12ch;
  color: var(--accent);
  font-weight: 800;
}

.catalog-hero__lead {
  margin: 1.25rem 0 0;
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.catalog-page,
.service-detail__grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
}

.catalog-sidebar,
.service-profile,
.contact-panel {
  border-radius: 1.5rem;
}

.catalog-sidebar {
  padding: 1.5rem;
  align-self: start;
  position: sticky;
  top: 1rem;
}

.catalog-filters {
  display: grid;
  gap: 1.25rem;
}

.catalog-label,
.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.catalog-input,
.catalog-select,
.catalog-textarea {
  width: 100%;
  border: 1px solid rgba(17, 36, 60, 0.14);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.catalog-textarea {
  resize: vertical;
}

.filter-group {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.filter-group h2,
.contact-panel__header h2,
.catalog-empty-state h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 800;
}

.filter-option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
}

.filter-option input {
  margin-top: 0.2rem;
}

.catalog-filters__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.catalog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.catalog-button:hover {
  transform: translateY(-1px);
}

.catalog-button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  box-shadow: 0 18px 30px rgba(143, 54, 18, 0.22);
}

.catalog-button--ghost {
  background: rgba(17, 36, 60, 0.06);
  color: var(--ink);
}

.catalog-button--full {
  width: 100%;
}

.catalog-results__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.catalog-results__count {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 1.25rem;
  justify-content: start;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 1.5rem;
  text-decoration: none;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(17, 36, 60, 0.1);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(17, 36, 60, 0.18);
}

.service-card__media,
.service-profile__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(224, 71, 91, 0.16), rgba(222, 211, 105, 0.24));
}

.service-card__image,
.service-profile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__placeholder,
.service-profile__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
}

.service-card__content,
.service-profile__body,
.contact-panel {
  padding: 1.4rem;
}

.service-card__content h2,
.service-profile__body h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 800;
}

.service-card__content p,
.service-profile__summary,
.service-profile__description,
.contact-panel__header p,
.catalog-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-detail {
  padding-top: 2rem;
}

.service-detail__header {
  border-radius: 1.75rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.catalog-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-deep);
}

.service-profile__body {
  display: grid;
  gap: 1.5rem;
}

.service-profile__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0;
}

.service-profile__meta dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.35rem;
}

.service-profile__meta dd {
  margin: 0;
}

.contact-panel__header {
  margin-bottom: 1.5rem;
}

.field,
.field-grid {
  margin-bottom: 1rem;
}

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

.form-errors {
  margin-bottom: 1rem;
  border: 1px solid rgba(155, 47, 34, 0.2);
  background: #fff2f0;
  border-radius: 1rem;
  padding: 1rem;
  color: #9b2f22;
}

.form-errors h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 800;
}

h1,
h2,
h3 {
  font-weight: 800;
}

h3,
p {
  color: var(--ink);
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.catalog-empty-state {
  border-radius: 1.5rem;
  padding: 2rem;
}

@media (max-width: 960px) {
  .catalog-page,
  .service-detail__grid {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .catalog-hero,
  .service-detail {
    width: min(100% - 1rem, 100%);
  }

  .catalog-hero__inner,
  .service-detail__header,
  .catalog-sidebar,
  .service-profile,
  .contact-panel,
  .catalog-empty-state {
    border-radius: 1.25rem;
  }

  .catalog-hero__inner,
  .service-detail__header,
  .catalog-sidebar,
  .service-profile__body,
  .contact-panel {
    padding: 1.2rem;
  }

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