/* Escuma Marketing Operativo */
:root {
  --bg: #E6E3DE;
  --fg: #121212;
  --muted: #55524D;
  --line: #C4BFB6;
  --band: #DCD8D1;
  --menu-bg: #F3F1ED;
  --ink-off: #BDB8AF;
  --head: 'Anton', Impact, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --body: 'Manrope', system-ui, sans-serif;
}
html[data-theme="dark"] {
  --bg: #121212;
  --fg: #EEEBE6;
  --muted: #B5B1AA;
  --line: #3A3A3A;
  --band: #1C1C1C;
  --menu-bg: #1A1A1A;
  --ink-off: #4A4844;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .6; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.head {
  font-family: var(--head);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
}

/* Logos: one per theme */
html:not([data-theme="dark"]) .logo-dark,
html[data-theme="dark"] .logo-light { display: none !important; }

/* Bars */
.bar {
  padding: 14px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}
.bar img { height: 22px; width: auto; display: block; }
.bar .start { justify-self: start; }
.bar .center { justify-self: center; }
.bar .end { justify-self: end; }
.textbtn {
  min-height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  transition: background .4s;
}

/* Hero */
.hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 24px 16px;
}
.hero-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 0; }
.hero h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(56px, 10.5vw, 176px);
  max-width: 1200px;
}
.hero h1 span { display: block; }
.rotator { transition: opacity .4s ease, transform .4s ease; }
.rotator.out { opacity: 0; transform: translateY(-.3em); }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); }

/* Proposal (pinned, word by word) */
.proposal { height: 260vh; border-top: 1px solid var(--line); }
.proposal-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 96px 24px 48px;
  display: flex;
  align-items: center;
}
.proposal-inner { max-width: 1240px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.proposal h2 { margin: 0; font-weight: 400; color: var(--muted); }
.proposal-text { font-size: clamp(22px, 2.7vw, 44px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.proposal-text p { margin: 0 0 .7em; }
.proposal-text p:last-child { margin-bottom: 0; }
.w { color: var(--ink-off); transition: color .25s ease; }
.w.on { color: var(--fg); }

/* Services */
.services { background: var(--band); padding: 130px 24px; transition: background .4s; }
.wrap { max-width: 1440px; margin: 0 auto; }
.services .wrap { display: flex; flex-direction: column; gap: 64px; }
.section-title { margin: 0; font-size: clamp(56px, 9vw, 150px); }
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.service { padding: 28px 28px 40px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.service .num { color: var(--muted); }
.service h3 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; }
.service p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Reviews */
.reviews { padding: 130px 24px; border-top: 1px solid var(--line); }
.reviews .wrap { display: flex; flex-direction: column; gap: 56px; }
.grid-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review { margin: 0; padding: 32px; border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 280px; }
.review blockquote { margin: 0; font-size: 19px; line-height: 1.55; }
.review figcaption span { display: block; }
.review figcaption span + span { color: var(--muted); margin-top: 4px; }

/* Contact */
.contact { padding: 130px 24px; }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 72px; }
.contact-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact-intro h2 { margin: 0; font-size: clamp(64px, 11vw, 180px); line-height: .88; }
.contact-intro p { margin: 0; font-size: 18px; line-height: 1.6; max-width: 420px; }
.mail { font-size: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--fg); align-self: flex-start; padding-bottom: 4px; }

/* Footer */
.site-footer { background: #121212; color: #EEEBE6; }
.footer-inner { padding: 64px 24px 24px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-top img { width: min(420px, 100%); height: auto; display: block; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #3a3a3a; padding-top: 20px; color: #B5B1AA; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* Floating mail button */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab:hover { opacity: .85; }

/* Fullscreen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--menu-bg);
  color: var(--fg);
  overflow-y: auto;
  display: none;
  flex-direction: column;
  transform-origin: 0 0;
}
.menu.open { display: flex; animation: menuIn .75s cubic-bezier(.7,0,.2,1) both; }
.menu.closing { display: flex; animation: menuOut .55s cubic-bezier(.7,0,.3,1) both; }
@keyframes menuIn { from { transform: translateY(-115%) rotate(-7deg); } to { transform: none; } }
@keyframes menuOut { from { transform: none; } to { transform: translateY(-115%) rotate(-7deg); } }
@keyframes rise { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
.menu-nav { flex: 1; padding: 40px 24px; display: flex; align-items: center; }
.menu-cols { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; align-items: end; }
.menu-cols > li { display: flex; flex-direction: column; }
.menu-cols > li + li { padding-top: .6em; }
.menu-link { display: flex; align-items: center; font-size: clamp(64px, 10vw, 168px); overflow: hidden; }
.menu-link:hover { opacity: 1; }
.menu-link .thumb {
  display: inline-block;
  flex: none;
  height: .74em;
  width: 0;
  margin-right: 0;
  border-radius: 3px;
  transition: width .35s cubic-bezier(.2,.7,.2,1), margin .35s cubic-bezier(.2,.7,.2,1);
}
.menu-link:hover .thumb, .menu-link:focus-visible .thumb { width: 1.15em; margin-right: .15em; }
.menu-link .label { display: inline-block; }
.menu.open .menu-link .label { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, .35s); }
.menu-foot { padding: 16px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; color: var(--muted); }
.pill { background: var(--fg); color: var(--bg); border-radius: 999px; padding: 6px 12px; opacity: 0; transition: opacity .25s; }
.pill.show { opacity: 1; }
body.menu-open { overflow: hidden; }

/* Pages */
.page-main { max-width: 820px; margin: 0 auto; padding: 72px 24px 120px; display: flex; flex-direction: column; gap: 40px; }
.page-main h1 { margin: 0; font-size: clamp(56px, 9vw, 120px); }
.entry { font-size: 17px; line-height: 1.7; }
.entry h2, .entry h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 1; margin: 1.6em 0 .5em; }
.entry h2 { font-size: 44px; }
.entry h3 { font-size: 30px; }
.entry a { text-decoration: underline; }
.entry img { height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* WordPress admin bar */
.admin-bar .site-header { top: 32px; }
.admin-bar .menu { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .menu { top: 46px; }
}

/* Small screens */
@media (max-width: 640px) {
  .bar { grid-template-columns: auto 1fr auto; padding: 10px 16px; }
  .bar .hide-sm { display: none; }
  .bar .center { justify-self: end; }
  .hero, .services, .contact, .reviews { padding-left: 16px; padding-right: 16px; }
  .proposal-pin { padding: 80px 16px 32px; }
  .services, .contact, .reviews { padding-top: 96px; padding-bottom: 96px; }
  .fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}