:root {
  --ink: #25192b;
  --ink-soft: #59475e;
  --plum: #332139;
  --plum-2: #4b2e50;
  --rose: #eaa7a1;
  --coral: #f2c3b5;
  --cream: #fff8f4;
  --paper: rgba(255, 250, 247, 0.95);
  --line: rgba(72, 41, 72, 0.16);
  --shadow: 0 24px 70px rgba(36, 16, 41, 0.22);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--plum);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-anchor: none; }
body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  background: var(--plum) url("/assets/equipurus-bg-light.png") center top / cover fixed;
  background-blend-mode: soft-light;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.site-shell { min-height: 100vh; width: 100%; max-width: 100%; overflow-x: clip; background: linear-gradient(180deg, rgba(51,33,57,.08), rgba(51,33,57,.34)); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: .55rem clamp(1rem, 3vw, 3.5rem);
  background: rgba(48, 29, 53, 0.88);
  color: #fff8f4;
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; max-width: 42%; flex: 0 1 auto; padding: .15rem .35rem; border: 1px solid transparent; border-radius: 1rem; background: transparent; box-shadow: none; }
.brand-logo { display: block; width: auto; height: clamp(3rem, 5.2vw, 4.25rem); max-width: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 1px 1px rgba(39,18,51,.72)); }
.brand-mark {
  display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid rgba(255,255,255,.42);
  border-radius: 50% 50% 48% 52%; color: var(--coral); font-weight: 800; letter-spacing: -.08em;
}
.brand-copy { display: grid; gap: .05rem; }
.brand-copy strong { font-size: 1.45rem; letter-spacing: -.04em; }
.brand-copy small { color: #efc0bb; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-content: flex-start; gap: .55rem; flex: 1 1 auto; min-width: 0; max-width: 100%; flex-wrap: wrap; overflow-x: clip; }
.main-nav > a, .nav-group > summary {
  color: rgba(255,248,244,.9); font-size: .98rem; text-decoration: none; padding: .55rem .75rem; border-radius: 999px;
  cursor: pointer; list-style: none; white-space: nowrap;
}
.main-nav > a:hover, .main-nav > a[aria-current="page"], .nav-group > summary:hover, .nav-group > summary.is-active { background: rgba(255,255,255,.12); color: #fff; }
.nav-group { position: relative; }
.nav-group > summary::-webkit-details-marker { display:none; }
.nav-group > summary::after { content: "⌄"; margin-left: .35rem; font-size: .85em; }
.nav-group[open] > summary { background: rgba(255,255,255,.12); }
.nav-menu {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 14rem; padding: .5rem; margin: 0; list-style: none;
  display: grid; gap: .15rem; border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; background: rgba(48,29,53,.97); box-shadow: var(--shadow);
}
.nav-menu a { display: block; padding: .6rem .75rem; border-radius: .7rem; color: #fff8f4; text-decoration: none; font-size: .88rem; }
.nav-menu a:hover { background: rgba(255,255,255,.11); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: #fff; padding: .55rem .8rem; font: inherit; }

#app { width: min(1180px, calc(100% - 2rem)); max-width: calc(100vw - 2rem); margin: 0 auto; padding: 0; }
.home-logo-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  padding-inline: clamp(1rem, 5vw, 5rem);
  display: grid;
  place-items: center;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  overflow: hidden;
}
.home-logo-crop { width: min(100%, 72rem); aspect-ratio: 1988 / 604; overflow: hidden; line-height: 0; }
.home-logo-crop img { display: block; width: 100%; height: auto; transform: translateY(-13.3%); filter: none; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); align-items: end; gap: clamp(1.5rem, 5vw, 5rem); margin-bottom: 2rem; }
.page-hero.no-image { grid-template-columns: minmax(0, 1fr); }
.eyebrow { margin: 0 0 .65rem; color: var(--coral); text-transform: uppercase; letter-spacing: .18em; font-size: clamp(.82rem, 1.4vw, .92rem); font-weight: 700; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { margin: 0; color: #fff8f4; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: .98; max-width: 100%; overflow-wrap: break-word; }
.page-hero.no-image h1 { max-width: 18ch; }
.hero-sub { color: rgba(255,248,244,.84); font-size: clamp(1.12rem, 1.65vw, 1.2rem); line-height: 1.55; max-width: 42rem; margin: 1.1rem 0 0; }
.hero-photo { width: 100%; max-height: 28rem; object-fit: cover; border-radius: 2rem; border: 1px solid rgba(255,255,255,.25); box-shadow: var(--shadow); }
.hero-photo-contain { height: auto; max-height: none; object-fit: contain; }
img[src="/assets/photos/keyvisual-about.jpg"] { filter: brightness(.84) contrast(1.05) saturate(.95); }
.content-card { padding: clamp(1.3rem, 4vw, 3.5rem); background: var(--paper); border: 1px solid rgba(255,255,255,.42); border-radius: 2rem; box-shadow: var(--shadow); }
.content-card > :first-child { margin-top: 0; }
.content-card p, .content-card li { font-size: 1.03rem; line-height: 1.72; }
.content-card p { margin: 0 0 1.15rem; }
.content-card h2 { margin: 2rem 0 .65rem; font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--plum-2); }
.content-card h3 { margin: 1.5rem 0 .45rem; font-size: 1.35rem; color: var(--plum-2); }
.content-card ul, .content-card ol { padding-left: 1.3rem; margin: .45rem 0 1.25rem; }
.content-card li { margin: .45rem 0; }
.content-card strong { color: var(--plum-2); }
.content-card a { color: #8e3b5f; font-weight: 700; text-underline-offset: .18em; }
.lead { font-size: 1.2rem !important; color: var(--plum-2); }
.quote { margin: 1.8rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--rose); color: var(--plum-2); font-family: Georgia, serif; font-size: 1.2rem; font-style: italic; }
.callout { margin: 1.5rem 0; padding: 1.1rem 1.2rem; background: #fbe4dd; border: 1px solid rgba(142,59,95,.18); border-radius: 1rem; }
.callout p:last-child { margin-bottom: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 0; }
.button { display: inline-flex; align-items: center; gap: .45rem; padding: .8rem 1.1rem; border-radius: 999px; background: var(--plum); color: #fff8f4 !important; text-decoration: none; }
.button.secondary { background: transparent; color: var(--plum) !important; border: 1px solid var(--line); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .85rem; margin: 1.7rem 0 2rem; }
.media-grid figure { margin: 0; overflow: hidden; border-radius: 1rem; background: #edd8d3; min-height: 8rem; }
.media-grid img { display: block; width: 100%; height: 13rem; object-fit: cover; transition: transform .35s ease; }
.media-grid figure:hover img { transform: scale(1.03); }
.page-note { margin: 0 0 1.5rem; color: rgba(255,248,244,.78); font-size: .94rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.blog-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.2rem; background: rgba(255,250,247,.95); border-radius: 1.3rem; border: 1px solid rgba(255,255,255,.4); box-shadow: 0 10px 35px rgba(36,16,41,.12); }
.blog-card h2 { margin: 0; color: var(--plum-2); font-size: 1.35rem; }
.blog-card p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.blog-card a { margin-top: auto; color: #8e3b5f; font-weight: 700; text-decoration: none; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-item { padding: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.contact-item strong { display: block; color: var(--plum-2); margin-bottom: .3rem; }
.contact-link { display: inline-flex; align-items: center; gap: .35rem; }
.contact-item > .contact-link { margin-top: .15rem; }
.contact-socials { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.contact-whatsapp { display: none; margin-left: .75rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem clamp(1rem, 3vw, 3.5rem); background: rgba(32,19,36,.92); color: rgba(255,248,244,.74); }
.site-footer p { margin: .2rem 0; }
.footer-brand { color: #fff8f4; font-family: Georgia, serif; font-size: 1.35rem; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .9rem; }
.footer-contact a { color: #f3c1ba; text-underline-offset: .16em; }
.footer-link { display: inline-flex; align-items: center; gap: .35rem; }
.footer-icon { display: inline-block; width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; line-height: 1; object-fit: contain; vertical-align: middle; }
.footer-whatsapp { display: none; }
.error-card { text-align: center; }

@media (max-width: 860px) {
  body { background-attachment: scroll; background-position: 58% top; }
  .site-header { flex-wrap: wrap; }
  .brand { max-width: 72%; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; justify-content: flex-start; gap: .35rem; padding-top: .5rem; }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-group > summary { font-size: .9rem; padding: .5rem .65rem; }
  .nav-menu { position: static; margin-top: .3rem; box-shadow: none; }
  .page-hero { grid-template-columns: 1fr; }
  .hero-photo { max-height: 22rem; }
  .hero-photo-contain { max-height: none; }
}
@media (max-width: 560px) {
  .site-header { padding: .4rem .75rem; gap: .75rem; }
  .brand { padding: .15rem .4rem; }
  .brand-logo { height: 2.6rem; max-width: 70vw; }
  .home-logo-crop { width: min(100%, 22rem); }
  .main-nav { display: none; flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-group > summary { display: block; }
  .menu-toggle { padding: .45rem .7rem; }
  .page-hero { gap: .85rem; margin-bottom: 1rem; }
  .content-card { padding: 1rem; border-radius: 1.25rem; }
  .content-card p, .content-card li { font-size: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: .6rem; padding: .85rem .75rem; }
  .footer-contact { justify-content: flex-start; gap: .6rem; }
  .footer-whatsapp { display: inline-flex; }
  .contact-whatsapp { display: inline-flex; }
}
