:root {
  --ink: #202124;
  --ink-soft: #4b4d50;
  --muted: #74777b;
  --line: #e4e1dc;
  --surface: #ffffff;
  --surface-warm: #f5f3ef;
  --surface-cool: #eef3f2;
  --brand: #7b1f24;
  --brand-dark: #521419;
  --gold: #c9953d;
  --green: #4f6f64;
  --shadow: 0 18px 42px rgba(26, 25, 24, 0.14);
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 14px 6vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(32, 33, 36, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 1px;
  color: #353536;
  font-size: 42px;
  font-weight: 800;
  line-height: 0.9;
}

.brand-mark span:nth-child(2) {
  color: var(--brand);
}

.brand-name {
  color: #3f4042;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 590px;
  height: 74vh;
  max-height: 690px;
  overflow: hidden;
  isolation: isolate;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 19, 20, 0.78) 0%, rgba(18, 19, 20, 0.54) 40%, rgba(18, 19, 20, 0.08) 100%),
    linear-gradient(0deg, rgba(18, 19, 20, 0.28), rgba(18, 19, 20, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(760px, 88vw);
  min-height: 100%;
  padding: 50px 0 56px 6vw;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow {
  color: #f0c36d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.03;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.16;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.24;
  font-weight: 800;
}

.hero-text {
  max-width: 670px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.58;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.button.secondary.light {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--brand-dark);
}

.button.tertiary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.button.outline {
  background: #ffffff;
  border-color: var(--line);
  color: var(--brand-dark);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.proof-item {
  padding: 28px 6vw;
  background: var(--surface-warm);
}

.proof-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 28px;
  line-height: 1.1;
}

.proof-item span {
  color: var(--ink-soft);
  font-weight: 650;
}

.section {
  padding: 86px 6vw;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  max-width: 710px;
  color: var(--ink-soft);
  font-size: 17px;
}

.section-heading.compact {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(260px, 520px);
  align-items: end;
  gap: 42px;
  width: auto;
}

.services {
  background: #ffffff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: grid;
  grid-template-rows: 240px 1fr;
  min-height: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 33, 36, 0.08);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card div {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.service-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.service-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.feature-strip {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: 60px;
  align-items: center;
  padding: 70px 6vw;
  background: var(--ink);
  color: #ffffff;
}

.feature-strip p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.feature-strip .eyebrow {
  color: #f0c36d;
}

.ongoing {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245, 243, 239, 0.96), rgba(238, 243, 242, 0.94)),
    url("assets/images/catalca-1038.jpg") center / cover;
}

.ongoing-copy {
  max-width: 650px;
}

.novara-logo {
  width: min(360px, 84vw);
  margin: 0 0 28px;
}

.ongoing-lead {
  color: var(--ink-soft);
  font-size: 18px;
}

.ongoing-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.ongoing-meta div {
  min-height: 104px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.ongoing-meta strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 24px;
  line-height: 1.1;
}

.ongoing-meta span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.ongoing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ongoing-media {
  position: relative;
  display: grid;
  grid-template-rows: minmax(390px, 1fr) 118px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ongoing-main-image {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.ongoing-badge {
  position: absolute;
  right: 24px;
  top: 24px;
  width: min(260px, calc(100% - 48px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(30, 30, 30, 0.16);
}

.ongoing-badge span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ongoing-badge strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.ongoing-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #ffffff;
}

.ongoing-gallery img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.projects {
  background: var(--surface-warm);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  min-height: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(30, 30, 30, 0.08);
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.project-body span {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.project-body p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.corporate {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: center;
  background: #ffffff;
}

.corporate-media {
  overflow: hidden;
  border-radius: 8px;
}

.corporate-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.corporate-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 17px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--gold);
  border-radius: 50%;
}

.reference-list {
  background: var(--surface-cool);
}

.reference-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.reference-columns > div {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(79, 111, 100, 0.18);
  border-radius: 8px;
}

.reference-columns h3 {
  color: var(--brand);
}

.reference-columns ul {
  display: grid;
  gap: 11px;
  padding-left: 20px;
  margin: 0;
  color: var(--ink-soft);
}

.contact {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 78px 6vw;
  background:
    linear-gradient(90deg, rgba(82, 20, 25, 0.94), rgba(82, 20, 25, 0.78)),
    url("assets/images/catalca-1038.jpg") center / cover;
  color: #ffffff;
}

.contact h2 {
  max-width: 620px;
  margin-bottom: 12px;
}

.contact p {
  max-width: 590px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.contact-actions {
  justify-content: flex-start;
}

address {
  grid-column: 1 / -1;
  padding-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 18, 0.62);
  backdrop-filter: blur(8px);
}

.email-modal {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 34px;
  background: #ffffff;
  border: 1px solid rgba(32, 33, 36, 0.12);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(10, 10, 10, 0.32);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-heading {
  max-width: 680px;
  margin-bottom: 24px;
  padding-right: 48px;
}

.modal-heading h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.modal-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.email-form {
  display: grid;
  gap: 18px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.email-form label {
  display: grid;
  gap: 7px;
}

.email-form label > span,
.consent-check span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.email-form input,
.email-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.email-form input {
  min-height: 46px;
  padding: 10px 13px;
}

.email-form textarea {
  min-height: 132px;
  padding: 12px 13px;
  resize: vertical;
}

.email-form input:focus,
.email-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(123, 31, 36, 0.1);
}

.consent-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.consent-group details {
  color: var(--ink-soft);
  font-size: 13px;
}

.consent-group summary {
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
}

.consent-group p {
  margin: 8px 0 0;
}

.consent-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.form-note[data-state="loading"] {
  color: var(--ink-soft);
}

.form-note[data-state="error"] {
  color: var(--brand);
}

.email-form button[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6vw;
  background: #151617;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer strong {
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

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

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

  .service-card {
    grid-template-rows: 280px 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 78px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 12px 22px;
  }

  .brand-mark {
    font-size: 36px;
  }

  .brand-name {
    font-size: 17px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 22px 22px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .hero {
    min-height: 560px;
    height: 70vh;
  }

  .hero img {
    object-position: center top;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 19, 20, 0.82), rgba(18, 19, 20, 0.24)),
      linear-gradient(0deg, rgba(18, 19, 20, 0.46), rgba(18, 19, 20, 0.08));
  }

  .hero-content {
    width: min(560px, 100%);
    padding: 42px 22px 46px;
  }

  h1 {
    font-size: 45px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-text {
    font-size: 17px;
  }

  .proof-band,
  .feature-strip,
  .section-heading.compact,
  .ongoing,
  .corporate,
  .contact {
    grid-template-columns: 1fr;
  }

  .proof-item {
    padding: 22px;
  }

  .section {
    padding: 64px 22px;
  }

  .feature-strip,
  .contact {
    padding: 58px 22px;
    gap: 26px;
  }

  .corporate-media img {
    height: 360px;
  }

  .ongoing-media {
    grid-template-rows: minmax(360px, 1fr) 104px;
  }

  .ongoing-main-image {
    min-height: 360px;
  }

  .ongoing-gallery img {
    height: 104px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 560px;
    height: 68vh;
  }

  .hero-content {
    justify-content: flex-end;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .modal {
    align-items: end;
    padding: 12px;
  }

  .email-modal {
    max-height: 92vh;
    padding: 26px 18px 20px;
  }

  .modal-heading {
    padding-right: 42px;
  }

  .modal-heading h2 {
    font-size: 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .novara-logo {
    width: min(300px, 84vw);
    margin-bottom: 24px;
  }

  .ongoing-actions {
    flex-direction: column;
  }

  .service-card {
    grid-template-columns: 1fr;
    grid-template-rows: 210px 1fr;
    min-height: auto;
  }

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

  .ongoing-meta {
    grid-template-columns: 1fr;
  }

  .ongoing-badge {
    right: 16px;
    top: 16px;
    width: calc(100% - 32px);
  }

  .ongoing-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .project-card {
    grid-template-rows: 220px 1fr;
    min-height: auto;
  }

  .project-body h3 {
    min-height: 0;
  }

  .reference-columns > div {
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
